Toolkitbar

Online Calculator — Type the Whole Expression

Write the sum the way you would on paper, and get every line answered.

Options

Runs on your device What you paste is processed by your own browser. It is never sent to a server, and it is not stored anywhere after you leave the page.

Short answer

A mathematical expression can be evaluated for free in a web browser by typing it out in full, with brackets, powers written as ^, roots, logarithms and trigonometric functions. Each line is evaluated independently, so a column of sums is answered in one pass. Angles are read as degrees by default, and the result is rounded to twelve significant digits so that binary floating-point noise does not appear in the answer.

At a glance

AcceptsOne expression per line
ProducesEach expression with its result
ProcessingIn your browser
PriceFree, no limits
AccountNot required

The advantage of typing the whole expression rather than pressing keys is that you can see it. A long calculation entered one button at a time is impossible to check afterwards and impossible to adjust without starting over; written out as text, the mistake is visible and one character fixes it.

Supported throughout: + − × ÷, ^ for powers, % for remainder, brackets, and the functions sqrt, cbrt, abs, round, floor, ceil, trunc, sign, exp, ln, log (base 10), log2, sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, min, max, pow, mod and fact, plus the constants pi and e.

How to use it

  1. 1

    Type your expression

    Something like (12.5 + 3) * 2 ^ 4. Put one sum per line to work through several at once.

  2. 2

    Set the angle unit if you use trig

    Degrees is the default, so sin(30) is 0.5. Switch to radians if that is what your formula means.

  3. 3

    Convert

    Each line comes back with its answer beside it. A malformed expression says what it choked on.

  4. 4

    Copy the results

    Copy the whole block to the clipboard, or download it as a text file.

Frequently asked questions

Does it handle brackets and operator precedence?

Yes, properly. Multiplication and division bind tighter than addition and subtraction, powers bind tighter still and are right-associative, so 2^3^2 is 2^9. Unary minus binds loosest of all, which is why -2^2 is −4 — the same convention every maths textbook uses.

Is log base 10 or base e?

Base 10, matching the LOG key on a physical calculator. Use ln for the natural logarithm and log2 for base 2. This deliberately differs from most programming languages, where log means ln.

What does % do?

Remainder, not percentage: 17 % 5 is 2. For percentage work use the percentage calculator, where the mode you want is explicit instead of guessed at.

Why not use my browser's address bar or a spreadsheet?

Both work for one sum. Neither answers forty lines in one go, and neither keeps the expressions beside the answers where you can check them.

Is anything I type sent to a server?

No. The expression is parsed and evaluated in your own tab by a parser written for this page — not by eval, which would be the wrong language as well as the wrong idea.

Related tools

Browse all maths tools →