Online Calculator
A free calculator for addition, subtraction, multiplication, division, exponents, percentages and parentheses, with a running history.
You can also use your keyboard: press Enter or = to calculate and Esc to clear.
This runs entirely in your browser. We don’t store any data.
History
Your recent calculations will show up here. Click one to use it again.
How to use it
- 01
Type your calculation on the keyboard or click the calculator buttons.
- 02
Use parentheses to group operations and the xʸ button for exponents (for example, 2^10).
- 03
Press = or Enter to get the answer. You’ll see a live preview as you type.
- 04
Check the history and click any earlier calculation to bring it back.
How it works
The calculator follows the order of operations (PEMDAS): parentheses first, then exponents, then multiplication and division, and finally addition and subtraction. That’s why 2 + 3 × 4 equals 14, not 20.
The % key works like it does on a pocket calculator: “200 + 10%” adds 10% of 200 (result: 220), while “200 × 10%” finds 10% of 200 (result: 20).
Results are rounded to 15 significant digits to hide the tiny errors of binary arithmetic, so 0.1 + 0.2 shows 0.3 instead of 0.30000000000000004. For security, expressions are read by a dedicated parser — no code is ever executed.
Examples
- Order of operations
(12 + 8) × 3 − 10 ÷ 2 = 55: the parentheses come first (20), then 20 × 3 = 60 and 10 ÷ 2 = 5, and last 60 − 5.
- Adding sales tax
To add 8% sales tax to a $45 purchase, type 45 + 8% and you’ll get 48.6, or $48.60.
- Exponents
2 ^ 10 = 1024. Keep in mind that −2 ^ 2 = −4, because the exponent is applied before the minus sign.
Frequently asked questions
Why does −2^2 equal −4?
By math convention, exponents come before the negative sign: −2^2 = −(2^2). To square −2, type (−2)^2, which gives 4.
Can I do square roots?
Yes, with fractional exponents: the square root of 9 is 9^0.5 = 3, and the cube root of 27 is 27^(1÷3) = 3.
Is my history saved?
Only while the page is open. It’s cleared when you reload or close the page, and it’s never sent to a server.
Related tools
- 01.02
Percentage Calculator
Calculators - 01.01
Age Calculator
Calculators - 07.01
Random Number Generator
GeneratorsRandom - 01.03
Rule of Three Calculator
Calculators - 01.04
Mean, Median and Mode Calculator
Calculators - 01.06
Scientific Calculator
Calculators - 02.01
VAT & Sales Tax Calculator
Finance - 03.01
Length Converter
Converters