Scientific Calculator

A full scientific calculator with trigonometry, logarithms, powers, roots, factorials and memory - plus a simple mode for everyday arithmetic.

Calculated in your browser. No data sent to servers.

Formula reviewed Jan 2025

 
0

How to use this calculator

The General tab covers basic arithmetic. Click Scientific for trigonometry, logarithms, powers, factorials, constants and rounding. Choose degrees, radians or gradians for angle-based functions. Use the keyboard for fast entry - digits, operators, Enter to evaluate and Escape to clear.

The formula behind this result

Expressions are parsed by a hand-written recursive-descent parser. Operator precedence matches standard mathematical notation: factorial > powers (right-associative) > multiplication/division > addition/subtraction. Trigonometry honours the selected angle unit. Factorial is computed iteratively and capped at 170! because 171! overflows IEEE 754 double precision. There is no use of JavaScript's eval() - every input is tokenised and evaluated step by step, which prevents the calculator from running arbitrary code.

Frequently asked questions

Why is my sin(30) result not 0.5?

Make sure the angle unit is set to Degrees, not Radians. Radians and degrees give different answers for the same numeric input.

What does the Ans button do?

It inserts the result of the previous calculation, so you can chain operations like (2 + 3) × Ans.

Is there a limit to how large a factorial I can compute?

The calculator caps at 170! because 171! exceeds the largest number JavaScript can represent. Beyond that the result would be Infinity.

Can I use my keyboard?

Yes. Type digits, +, -, *, /, ^, parentheses and Enter. Backspace deletes, Escape clears everything.

Why do I see so many decimal places?

The result is displayed to 12 significant figures. Trailing zeros are trimmed, and very large or very small numbers are shown in scientific notation.

Explore more