Scientific Calculator
A scientific calculator supporting arithmetic, parentheses, powers, square roots, trigonometric and inverse trigonometric functions, logarithms, and the constants π and e — in degree or radian mode.
Everything you enter is processed in your browser and isn't sent to our servers.
How to use Scientific Calculator
- 1Type or tap an expression using the buttons.
- 2Switch between degree and radian mode for trig functions.
- 3The result updates live as you type.
About this tool
This calculator parses your expression using its own small, purpose-built parser rather than JavaScript's eval() or the Function constructor — meaning it can only ever evaluate arithmetic, never execute arbitrary code, which matters since eval()-based calculators are a well-known way to accidentally create a code-injection risk.
It supports standard operator precedence (multiplication and division before addition and subtraction), right-associative exponentiation (2^3^2 is 2^(3^2), not (2^3)^2), parentheses, square roots, sin/cos/tan in your chosen angle mode, base-10 and natural logarithms, and the constants π and e.
Frequently asked questions
Yes — the calculator only recognizes numbers, the supported operators and functions, and parentheses. Anything else produces a clear parse error instead of being executed, since this never uses eval() or the Function constructor.
It changes how sin, cos and tan interpret their input. In degree mode, sin(90) = 1 (90 degrees). In radian mode, sin(pi/2) = 1 instead, since π/2 radians equals 90 degrees. Use whichever matches the convention you're working in.
Exponentiation is right-associative by mathematical convention, meaning 2^3^2 is evaluated as 2^(3^2) = 2^9 = 512, not (2^3)^2 = 64. This matches how scientific calculators and most programming languages evaluate chained exponents.
Yes. Type directly into the expression box — for example sqrt(2)^2 or asin(0.5) — and the result updates as you type. Press Escape to clear. Function names are sin, cos, tan, asin, acos, atan, sqrt, log (base 10), ln and abs; constants are pi and e.
Because the tangent of 90° (or π/2 radians) is undefined — it's a division by zero. Rather than show a meaningless huge number caused by floating-point rounding, the calculator reports it as undefined. Results are also rounded to 12 significant digits for display, so 0.1 + 0.2 shows as 0.3.
Related tools
Fraction Calculator
Add, subtract, multiply and divide fractions with exact simplified answers.
Percentage Calculator
Calculate percentages, increases and decreases.
Triangle Calculator
Solve a triangle's missing sides and angles, plus its area and perimeter.
Standard Deviation Calculator
Find the mean, variance and standard deviation of a list of numbers.
Unit Converter
Convert length, weight, temperature, area, volume and speed.