Scientific Calculator
A general-purpose calculator for everyday and scientific math — real operator precedence, parentheses, and trig, log, and power functions.
0
Calculated locally. Your numbers never leave your browser.
Keyboard support: digits, + − * / ^ ( ) . %, Enter to evaluate, Backspace to delete, Escape for All Clear.
Common questions
Does typing an expression run as real JavaScript code?
No — every expression is parsed into a small internal structure and evaluated by hand-written logic, never passed to JavaScript's eval() or Function(). This also means a few symbols work differently than in raw JavaScript — ^ means exponent here, not JavaScript's bitwise XOR.
Why does -2^2 equal -4 and not 4?
Because unary minus is applied after exponentiation, matching standard math and calculator convention: -2² means -(2²), not (-2)². If you want (-2)², wrap it in parentheses: (-2)^2.
What does the DEG/RAD toggle actually affect?
Only the trig functions — sin, cos, tan, and their inverses. Everything else (arithmetic, logarithms, roots, powers) is unaffected by the toggle either way. It starts in degrees.
How precise are the results, and what happens with very large or small numbers?
Results display up to 12 significant figures and clean up ordinary floating-point noise, so 0.1 + 0.2 shows as 0.3, not 0.30000000000000004. Numbers larger than 10¹⁵ or smaller than 10⁻⁹ switch to scientific notation automatically instead of showing a long string of digits.
Is my calculation history saved permanently?
No — history is kept only for your current visit (up to the most recent 50 calculations) and clears when you reload the page. Nothing is stored on your device between visits.