Expression Evaluator

Define variables and evaluate maths formulas with powers, roots and brackets.

Evaluate an expression

Result: —
Variables in use: —
An assignment can hold any expression, so a = 2 * pi / 3 works too.

How to use the Expression Evaluator

  1. Enter one assignment per line in the variables box, such as a = 3.
  2. Type the formula you want to evaluate in the expression box.
  3. Press Evaluate and copy the answer with the Copy result button.

Features

Advertisement

Frequently Asked Questions

Common questions about the free online expression evaluator.

Write one assignment per line such as a = 3, type your formula below using those names, and the result updates as you type.
Yes. Define a first and then b = a * 2 on the next line. Each line can use any variable defined above it.
Addition, subtraction, multiplication, division, the caret for powers, the percent sign for remainders and round brackets.
sqrt, cbrt, abs, ln, log, log2, exp, round, floor, ceil, sin, cos and tan, plus the constants pi, e and tau.
Implicit multiplication is not supported. Write 2 * a with an explicit asterisk between the number and the variable name.
The tool reports the unknown variable or function in the note under the result instead of returning a wrong answer.
No. The whole evaluator runs locally in your browser, so your formulas and values never leave your device.
Yes. The evaluator is responsive and works in any modern browser on desktop, tablet and phone.

Last updated: October 10, 2026