Scientific Calculator

Powers, roots, trig in degrees, logs, π, e, and factorial — with clear errors on bad input.

Calculator on a bright desk

Illustrative image

Scientific calculator

Tap the buttons, or type in the box and press Enter. Angles for sin, cos, and tan are in degrees.

This calculator does not use eval on your input: it parses the expression itself, so a typo gives a clear error message instead of a crash or a wrong answer.

How it works

Type an expression with +, −, ×, ÷, parentheses, powers (^), square root, sin, cos, tan (in degrees), log (base 10), ln (natural log), π, e, % (percent, as in 50% = 0.5), and ! (factorial, whole numbers 0–170 only). Standard order of operations applies: parentheses first, then powers, then multiplication and division, then addition and subtraction — so 2+3×4 is 14, not 20.

Frequently asked questions

Are angles in degrees or radians?

Degrees, the way most school and everyday calculators work. sin(30°) = 0.5.

What does % do?

It divides the number before it by 100, so 50% becomes 0.5 and 200×10% is 20.

Why do I see an error?

Usually a missing closing parenthesis, a function without an argument, a square root or log of a number that does not allow it, or a factorial that is not a whole number. Fix the highlighted part and try again.