The formula
Order of operations: brackets → functions → factorial and % → powers (right to left) → × and ÷ → + and −
sin, cos, tan use degrees or radians as selected; asin, acos, atan return angles in the same unit
ln = natural log (base e); log = base 10; log2 = base 2
n! = 1 × 2 × … × n (the gamma function extends it to non-integers)
Worked example
- 2 × sin(30°) + √16 ÷ 3² + 5!
- = 2 × 0.5 + 4 ÷ 9 + 120
- = 1 + 0.4444 + 120 = 121.4444.
How to use this scientific calculator
Type a complete expression and the answer updates as you type. You can use the familiar symbols + − × ÷ or the keyboard versions + - * /, ^ for powers, ! for factorials and % for percentages. Brackets work to any depth, and functions take their argument in brackets: sqrt(2), sin(45), ln(10). Implicit multiplication is supported, so 2pi, 3(4 + 1) and 2sin(30) all work. Type ans to reuse the previous result. Your expression is evaluated by a safe parser in your browser, never sent to a server.
Order of operations
The calculator follows the standard order of operations, often remembered as BODMAS or PEMDAS: brackets first, then powers, then multiplication and division from left to right, then addition and subtraction from left to right. Powers are evaluated right to left, so 2^3^2 is 2^9 = 512, not 8^2 = 64. A leading minus sign applies after powers, so −3^2 = −9, which matches mathematical convention and most scientific calculators; use (−3)^2 to get 9. When in doubt, add brackets: they never hurt.
Degrees or radians?
Trigonometric functions depend on the angle unit. In degrees, a full turn is 360°, and sin(30) = 0.5. In radians, a full turn is 2π, and sin(π/6) = 0.5. Use degrees for most geometry, surveying, navigation and construction problems, and radians for calculus, physics and programming, where most software libraries use radians. Forgetting to switch is one of the most common calculator mistakes, so the current mode is shown with every answer. To solve whole triangles, use the triangle solver.
Logarithms and exponentials
The natural logarithm, ln, uses base e ≈ 2.71828 and is the inverse of exp. The common logarithm, log, uses base 10 and appears in pH, decibels and the Richter scale. log2 is used in computing and information theory. To find a logarithm in any other base, use the change-of-base rule: log_b(x) = ln(x) ÷ ln(b), so log base 5 of 125 is ln(125)/ln(5) = 3. For growth and decay problems, our population growth calculator and half-life calculator use these functions behind the scenes.
Factorials, gamma and big numbers
The factorial n! multiplies all whole numbers from 1 to n and grows extremely fast: 10! is 3,628,800 and 20! is about 2.4 × 10^18. Factorials beyond 170! exceed the largest number a standard double-precision float can hold, so they show as infinity. For non-whole numbers, the calculator uses the gamma function, so 0.5! = √π/2 ≈ 0.8862. Results over 10^15 or smaller than 10^-6 are shown in scientific notation. For exact large integers, use the modulo and big-integer power calculator, and for counting arrangements the permutations and combinations calculator.
Constants you can use
Type pi (or π) for 3.14159…, e for 2.71828…, tau for 2π and phi for the golden ratio 1.618…. These are stored to full double precision, which is more accurate than typing 3.14.
Precision and rounding
Like all computer calculators, this one uses binary floating-point numbers with about 15–17 significant digits of precision. Some decimals can't be stored exactly in binary, so 0.1 + 0.2 is computed as 0.30000000000000004; the calculator rounds the display to 12 decimal places to hide these tiny errors. For money calculations, results are accurate to far more than a cent. The fraction line shows when a result matches a simple fraction, and integers are also shown in hexadecimal and binary, which is handy for programming.