Scientific Calculator
A full scientific calculator that runs in your browser: type an expression or use the keys, switch between degrees, radians and gradians, and get answers shown to 12 significant digits. It has sin, cos, tan and their inverses, logarithms, powers, roots, factorials, combinations, memory keys and a history of past answers. Free, no sign-up, and nothing you type leaves your device.
Results
Memory: empty
History
Answers you work out appear here.
Answers use IEEE 754 double precision and are shown to 12 significant digits.
How to Use the Scientific Calculator
- 1. Enter an expression. Tap the keys, or click the display and type: digits, + − × ÷ (or * and /), ^ for powers, brackets, and function names such as sin(30) or sqrt(2). Functions open a bracket for you, and a bracket left open at the end is closed automatically.
- 2. Set the angle unit. Choose degrees, radians or gradians before using sin, cos, tan and their inverses. The answers to the inverse functions come back in the same unit.
- 3. Press = or Enter. The answer appears with a copy button and joins the history. An operator pressed straight afterwards continues from that answer, as on a handheld calculator; a number starts a new calculation.
- 4. Use memory and history. M+ and M− add or subtract the number on screen, MS stores it, MR types it into the expression and MC clears it. In the history, “Reuse” puts a past expression back and “Use answer” inserts its result.
Functions You Can Type
| Name | What it does | Example |
|---|---|---|
| sin, cos, tan | Trigonometric functions in the chosen angle unit | sin(30) = 0.5 in degrees |
| asin, acos, atan | Inverse trig; the answer is an angle in the chosen unit | atan(1) = 45 in degrees |
| sinh, cosh, tanh, asinh, acosh, atanh | Hyperbolic functions and their inverses | cosh(0) = 1 |
| ln, log, log2, log10 | Natural log; base 10; base 2; base 10 | log(8, 2) = 3 |
| exp, ^ | e to a power; any power | exp(1) = 2.71828182846 |
| sqrt or √, cbrt, root(x, n) | Square root, cube root, n-th root | root(−8, 3) = −2 |
| n! | Factorial of 0 to 170, or via the gamma function for decimals | 5! = 120 |
| nCr(n, r), nPr(n, r) | Combinations and permutations | nCr(52, 5) = 2598960 |
| abs, floor, ceil, round, sign | Absolute value, rounding down, up, to nearest (halves away from zero), sign | round(2.5) = 3 |
| mod(a, b) | Remainder with the sign of b (floored) | mod(−7, 3) = 2 |
| %, ², ³ | Divide by 100; square; cube | 50% = 0.5 |
| pi (π), e, tau (τ), ans | Constants and the previous answer | 2π = 6.28318530718 |
Degrees, Radians and Gradians
A full turn is 360 degrees, 2π radians or 400 gradians. The same call means different things in each mode: sin(90) is 1 in degrees, 0.893997… in radians and 0.987688… in gradians. If a trig answer looks wrong, check the angle unit first. At exact multiples of a right angle the calculator returns the exact value instead of a rounded one, so sin(180°) is 0 rather than 1.2246 × 10⁻¹⁶ and tan(90°) is reported as undefined. In radians, a trig result smaller than 10⁻¹⁵ from an angle that is not itself tiny is treated as rounding noise and shown as 0, so sin(π) gives 0.
Order of Operations, Percent and Implicit Multiplication
- Order. Brackets, then powers (right to left, so 2^3^2 = 512), then a minus sign (so −2^2 = −4), then multiplication and division left to right, then addition and subtraction left to right. The Order of Operations Calculator shows each step of any expression.
- Percent divides by 100 and nothing else: 50% = 0.5 and 200 × 15% = 30. It does not adjust the number before it, so 200 + 10% is 200.1, not the 220 some handheld calculators show.
- Implicit multiplication. 2π and 3(4 + 1) multiply, in turn with × and ÷ by default. Tick “Treat 2π as one unit” to give juxtaposition priority over division, the convention on many scientific calculators, so that 1 ÷ 2π means 1 ÷ (2π).
Accuracy and Errors
The calculator uses standard double-precision floating point (IEEE 754), good to about 15 to 16 significant digits, and shows 12 so that rounding noise does not show: 0.1 + 0.2 appears as 0.3. When exact arithmetic matters, use the Order of Operations Calculator, which keeps exact fractions, or the Factorial Calculator and Exponent Calculator for big integers. An answer is refused with a message when it is outside a function’s domain (√−4, ln 0, asin 2), when it divides by zero, or when it overflows beyond about 1.8 × 10³⁰⁸. Expressions are read by a small parser of our own, never run as code.
Keyboard shortcuts
Click the display and type. Enter works out the answer, Esc clears the expression, and the arrow keys move the caret so you can edit in the middle. Typing * or / works as × or ÷, and the words pi, tau and ans are understood.
Frequently Asked Questions
- How do I switch a calculator between degrees and radians?
- Choose Degrees, Radians or Gradians above the keypad. The setting applies to sin, cos, tan and to the angle that asin, acos and atan return. A quick check: sin(30) should be 0.5 in degrees and −0.988 in radians.
- How do I calculate a logarithm to another base?
- Type log(x, b): log(8, 2) is 3. The log key alone is base 10, ln is base e, and log2(x) is a shortcut for base 2.
- Why does sin(π) show 0 instead of 1.2246 × 10⁻¹⁶?
- π cannot be stored exactly, so the true floating-point sine of the stored value is about 1.2 × 10⁻¹⁶. The calculator treats a trig result below 10⁻¹⁵ as rounding noise from an ordinary-sized angle and shows 0, which is what the exact answer is.
- What does Ans do?
- Ans is the answer to your last calculation. Press an operator right after = and the calculator starts from it automatically, or type ans anywhere in an expression, as in ans × 2.
- How do I calculate a percentage?
- Put a % sign after a number to divide it by 100, then multiply as usual: 15% × 80 = 12, the same as 0.15 × 80. For percentage change, difference or error, see the Percentage Calculator.
- Is my input sent anywhere?
- No. The calculator runs entirely in your browser: nothing you type is uploaded, and history and memory are kept only on the page until you close it.