Expression Calculator
Evaluate math expressions with functions, constants, variables, and history, entirely in your browser.
This tool runs entirely in your browser. Your input is never uploaded.
—
Variables
Type x = 3 to store a variable.
History
Press Enter to add a calculation to the history.
Expressions
Type a formula and the result updates as you go: 2^10 + sqrt(144), 1000*12%, sin(90) in degree mode, 3(4+5) with implicit multiplication. A missing closing parenthesis is completed for you, and the keyboard and the on-screen keypad stay in sync.
Functions, constants, and bases
The function set covers trigonometry, logarithms, roots, rounding, min/max/hypot and factorials, with pi, e, tau and phi as constants. Numbers may be written as 0x1f, 0b1010 or 0o17, integer results also show their hex, octal and binary forms, and <<, >>, ~ plus and(), or(), xor(), not() handle bitwise work. ^ stays a power operator.
Variables and history
Assign a value (x = 3) to store a variable, reuse ans for the previous result, and press Enter to push a calculation onto the history list. An entry that starts with an operator continues from the last result, so 7*8= followed by +2= gives 58. Click any history entry or variable to put it back into the expression, or use the up and down arrow keys to walk the history.
Privacy
Every calculation runs locally in your browser. Expressions, variables and history never leave the device.
Related tools
Percentage Calculator
Calculate percentages of values, ratios, and percentage changes with instant results.
Open ToolUnit Converter
Convert length, mass, data storage, time, and temperature units instantly in your browser.
Open ToolBase Converter
Convert numbers between binary, octal, decimal, and hexadecimal (2–36) locally in your browser.
Open Tool