Scientific Calculator

A full scientific calculator with trigonometry, logarithms, powers, roots, constants and DEG/RAD modes. Safe expression parser, no eval.

Runs in your browser
Loading Scientific Calculator...

How to use

  1. 1

    Type an expression such as "sin(30) + sqrt(16)" or use the on-screen buttons.

  2. 2

    Pick DEG or RAD mode for angles.

  3. 3

    Press equals or = to see the result.

How it works

Expressions are tokenized and parsed with a recursive-descent parser into an evaluation tree - no eval() is ever used. The full expression is evaluated and the result is shown with up to 10 significant digits.

Frequently asked questions

What do DEG and RAD mean?

They set the unit for trigonometric functions. DEG uses degrees (a full circle is 360), RAD uses radians (a full circle is 2pi).

Why does the tool show an error for "1/0"?

Division by zero is not defined, so the parser reports it clearly instead of showing a meaningless value.

Can I calculate factorials?

Yes - use the ! operator, for example "7!". The limit is 170! because larger values overflow a double.

Related tools