Expression Calculator

Evaluate math expressions with parentheses, operator precedence, and functions — type naturally.

Result

History

Press Enter after an expression to save it here — saved in this browser, so it's still here next time you visit.

About this tool

Type a math expression the way you'd write it on paper — with parentheses, correct operator precedence (× and ÷ before + and −, ^ before × and ÷), and functions like sqrt(), sin(), log() — and get the result live as you type. Unlike a button-based calculator, you can nest parentheses as deeply as you need, and the underlying parser actually respects standard math precedence rather than evaluating strictly left to right.

Supported: + - * / % ^, parentheses, sqrt cbrt abs exp floor ceil round, trig sin cos tan asin acos atan (radians), log (base 10), ln (natural log), and the constants pi and e. Press Enter to save an expression and its result to the history below — it's saved in this browser's local storage, so it's still there next time you visit. Remove one entry at a time or clear it all with the buttons provided.

Frequently asked questions

Does this support implicit multiplication, like "2(3+4)" or "2pi"?
No — write it explicitly as 2*(3+4) or 2*pi. This keeps every expression unambiguous rather than guessing what you meant.
Are trig functions in radians or degrees?
Radians. Multiply degrees by pi/180 first — e.g. sin(90*pi/180) for the sine of 90 degrees.
Where is my history stored?
In this browser's local storage, on your own device only — it's never uploaded anywhere. It won't follow you to a different browser or device, and clearing your browser's site data will erase it.
What does ^ do, and which way does it associate?
^ is exponentiation (power) and is right-associative, matching standard math notation — 2^2^3 means 2^(2^3) = 256, not (2^2)^3 = 64.
Is my expression sent anywhere?
No — a small parser runs entirely in your browser to evaluate it; nothing is uploaded, logged, or sent anywhere.