Scientific Calculator

Trig, logs, powers and parentheses, with a visible history.

Using it

Type a whole expression โ€” sin(30) + 2^10 / (4 - 1.5) โ€” or build it from the keypad; the result updates as you type, and Enter pushes it into a clickable history. Operator precedence is honoured properly: powers before multiplication before addition, with parentheses overriding everything, so 2 + 3 ร— 4 is 14 here as it is in mathematics.

Functions: sin/cos/tan and their inverses, log (base 10), ln, sqrt, abs and factorial, plus ฯ€ and e. Trig defaults to degrees โ€” sin(30) = 0.5 โ€” with a radians toggle for calculus work.

Degrees, radians, and the classic wrong answers

The most common "broken calculator" report is a mode mismatch: sin(30) is 0.5 in degrees and โˆ’0.988 in radians, both correct. School trigonometry lives in degrees; anything involving calculus or programming expects radians. The toggle shows which is active at all times.

The other classic is floating point: computers cannot represent 0.1 exactly in binary, so naive arithmetic yields 0.1 + 0.2 = 0.30000000000000004. Results here are rounded to ten decimals so ordinary sums look ordinary โ€” worth knowing when comparing against a program's raw output. For fractions kept exact rather than decimalised, the fraction calculator never converts at all, and day-to-day percentage work has its own calculator.

Frequently asked questions

Why does sin(30) give a strange answer?

You are in radians. sin(30ยฐ) = 0.5; sin(30 radians) โ‰ˆ โˆ’0.988. Both are right โ€” check the degrees/radians toggle.

Does it follow order of operations?

Yes โ€” full precedence with parentheses: 2 + 3 ร— 4 = 14, and 2^3^2 evaluates right-to-left as 512, matching mathematical convention.

What is the largest factorial it can compute?

170! โ€” beyond that the result exceeds what floating point can hold and shows as Infinity.

Can I reuse a previous result?

Press Enter to commit a calculation to the history, then click any history line to drop its result back into the input.