Scientific calculator with keypad and history

Type your expression on the keyboard or use the keypad. This scientific calculator follows the order of operations (PEMDAS) and handles sin, cos, tan, ln, log, square roots, exponents, factorials, pi and e. Switch between degrees and radians, see the result as you type, and reuse past calculations from the history.
🔒 Everything runs in your browser. Your data and files never leave your device.
Order of operations (PEMDAS) used by the calculator
The calculator evaluates your expression the way a math teacher would: parentheses first, then functions, factorials and percents, then exponents, then multiplication and division from left to right, and finally addition and subtraction from left to right.
| Expression | Work | Result |
|---|---|---|
| 2 + 3 × 4 | 2 + 12 | 14 |
| (2 + 3) × 4 | 5 × 4 | 20 |
| −2^2 | −(2²) | −4 |
| 2^3^2 | 2^(3²) = 2^9 | 512 |
| 100 ÷ 10 ÷ 5 | 10 ÷ 5 | 2 |
Implicit multiplication works too: 2(3 + 4) equals 14, 2π equals 6.28318… and 3sin(90) equals 3 in degree mode.
Degrees or radians: which mode to use
radians = degrees × π ÷ 180
Geometry and most high school trigonometry use degrees. Precalculus, calculus and physics use radians. The Degrees / Radians switch changes how sin, cos, tan and their inverses read and return angles.
| Degrees | Radians | sin | cos | tan |
|---|---|---|---|---|
| 0° | 0 | 0 | 1 | 0 |
| 30° | π/6 ≈ 0.5236 | 1/2 | √3/2 ≈ 0.8660 | √3/3 ≈ 0.5774 |
| 45° | π/4 ≈ 0.7854 | √2/2 ≈ 0.7071 | √2/2 ≈ 0.7071 | 1 |
| 60° | π/3 ≈ 1.0472 | √3/2 ≈ 0.8660 | 1/2 | √3 ≈ 1.7321 |
| 90° | π/2 ≈ 1.5708 | 1 | 0 | undefined |
Functions available and precision
- sin, cos, tan and the inverses asin, acos, atan (also written sin⁻¹, cos⁻¹, tan⁻¹), plus sinh, cosh, tanh.
- ln (natural log), log (common log, base 10) and exp (e to the power x).
- √ or sqrt (square root), cbrt (cube root) and abs (absolute value).
- ^ (exponent), ! (factorial of a whole number from 0 to 170), % (divides by 100), π, e and Ans (the last result).
Results are rounded to 12 significant digits, which is why 0.1 + 0.2 shows 0.3 and sin(180°) shows exactly 0. Whole numbers below 1015 are shown in full; beyond that, 2.4329E18 means 2.4329 × 1018.
3 real-life examples
Order of operations: 3 + 4 × 2^3
Exponent first: 2³ = 8. Then multiplication: 4 × 8 = 32. Finally addition: 3 + 32 = 35. If you type (3 + 4) × 2^3 instead, you get 7 × 8 = 56.
Trig in degrees: sin(30) + cos(60)
In degree mode, sin 30° = 1/2 and cos 60° = 1/2, so the sum is 1. In radian mode the same keystrokes mean 30 and 60 radians and give a different answer, so always check the angle unit.
Factorials: 5! ÷ (3! × 2!)
5! = 120, 3! = 6 and 2! = 2. So 120 ÷ (6 × 2) = 120 ÷ 12 = 10. That is the number of ways to choose 2 items from 5, written C(5, 2).