Loading Techie Utils…

Online Scientific Calculator

Expressions with functions, constants and brackets. Free, and runs entirely in your browser — nothing you enter is uploaded, stored or sent to a server.

About Scientific Calculator

An expression calculator: type the sum the way you would write it, brackets and functions included, and it works out the answer. Several lines are evaluated in turn, so a piece of working can be kept together rather than retyped.

It parses the expression rather than evaluating it as code. That distinction is the whole security story: the usual way to build this in a browser is to hand the text to eval, which gives whatever was typed — or pasted from a chat — the page's own privileges. Here, anything that is not a number, an operator, a bracket, a known function or a known constant is an error.

Trigonometry works in degrees or radians, chosen with a switch, because getting that wrong is the classic wrong answer. Beyond the arithmetic operators there are roots, logarithms, hyperbolic functions, factorials with !, and the constants pi, e, tau and phi.

The answer is shown rounded to a precision you choose, and — for whole numbers — in hex and binary as well, which saves a trip to another tool.

Where it helps

  • Parses rather than evaluates: nothing typed or pasted can run as code.
  • Degrees or radians, chosen explicitly, so trigonometry cannot silently mean the wrong thing.
  • Several lines at once, with each answer shown next to its expression.
  • Gives whole-number answers in hex and binary as well as decimal.
  • Runs locally, like every calculator here.

Limits

  • Double precision, so about 15 significant digits — big factorials and long chains lose accuracy at the end.
  • No variables, no memory and no previous-answer reference: each line stands alone.
  • No complex numbers, so the square root of a negative number is an error rather than an imaginary result.
  • It is a calculator, not a computer algebra system: it will not simplify or solve symbolically.

Frequently asked questions

Why not just use eval?

Because eval runs whatever it is given with the page's privileges, and expressions get pasted from all sorts of places. A parser can only ever produce a number or an error.

Are the trigonometric functions in degrees?

Whichever you choose — the switch is next to the expression, and the result says which mode it used, because sin(45) means two very different things.

What functions does it know?

Roots, powers, logarithms in three bases, all six trigonometric functions and their inverses, hyperbolics, rounding, min, max, hypot and factorial. The result lists the constants too.

Can I use previous answers?

Not as a reference, but each line is evaluated and shown, so working can be laid out step by step and read down the output.

Related tools

More Calculators tools