Math Expression Evaluator
Work out a maths expression with functions, constants and proper operator precedence.
Runs entirely in your browser.
Evaluate a Maths Expression
About Math Expression Evaluator
Type an expression and get the answer, with the precedence you expect: multiplication before addition, powers before that, and parentheses over everything. Implicit multiplication works too, so 2(3+4), 3pi and 2sqrt(9) all mean what they look like.
This parses the expression rather than handing it to eval. That matters twice over: eval would run any JavaScript that was pasted in, and it would report a typo in a sum as a syntax error rather than telling you which character it choked on.
Note that ^ is the power operator and is right-associative, so 2^3^2 is 29 = 512, not 82. % is the remainder, not a percentage.
Other Calculators
- Number Sequence Generator — a list from start, end and step
- Arithmetic Sequence Calculator — nth term and sum
- Number to Words — English words, ordinals and currency
- Sum a List of Numbers — total, mean and range
- Ohm's Law Calculator — voltage, current, resistance, power
- Random Port Generator — a free port number
- Percentage Calculator — percentages and change
- Binary Calculator — arithmetic in binary
- Random Number Generator — numbers in a range
- Unit Converter — length, weight, temperature and more