About Scientific Calculator
Type an expression or tap it out on the keypad and the result updates as you go. Press = or Enter to keep it: it moves to the history tape, and Ans carries it into the next calculation. Trigonometry works in degrees or radians, with exact answers at the familiar angles, so sin(30) is 0.5 and cos(90) is 0.
The usual order of operations applies, brackets nest as deep as you like, and you can write 2π or 3(4 + 1) without a multiplication sign. Negative numbers have real cube roots, and an even root of a negative gives the complex answer, written with i.
How it works
- The expression is parsed by mathjs into a tree, and this tool walks that tree itself, allowing only numbers, the listed functions and constants, arithmetic and brackets. Nothing you type is ever run as code.
- Calculation happens in a background worker with a five-second time limit, so even a very long expression cannot freeze the page.
- Results are shown to 12 significant digits, which hides the tiny binary rounding errors that make 0.1 + 0.2 come out as 0.30000000000000004 elsewhere.
- The angle setting is kept in the page address; the history lives only in this tab and is gone when you close it.
Questions
What can I type?
Numbers (including 1e-5), + − × ÷ ^ ! %, brackets, and the functions sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, sqrt, cbrt, root(x, n), abs, exp, ln, log, log(x, base), log2, round, floor, ceil and mod, with the constants pi, e, tau, phi, i and ans.
Does log mean base 10 or base e?
As on a desk calculator, log is base 10 and ln is the natural logarithm. For any other base write log(x, base), for example log(8, 2) = 3.
How does % work?
After a number, % means percent: 50% is 0.5. Between two numbers it is the remainder: 17 % 5 is 2. Write mod(a, n) to be explicit.
What are the limits?
An expression can be up to 300 characters long. Results beyond about 1.8 × 10³⁰⁸ are too large for the browser’s numbers and are reported as such, and factorials are available up to 170!.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.