calculator
A free online calculator that works like the one on your phone: tap the buttons or type on your keyboard, press = or Enter, and tap any past answer in the history to use it again. Need trig, logs or powers? Switch to scientific mode.
How to use this calculator
- Tap the buttons, or type numbers and + − * / straight from your keyboard.
- Press = or Enter to get the answer. Backspace deletes the last character and Esc clears everything.
- Keep going from an answer: press an operator right after = and the answer becomes the first number.
- The small line above the result shows a live preview while you type, so you can spot mistakes early.
- Tap any line in the history to reuse that answer. History stays on this device only.
- Use copy result to paste the answer into a message, spreadsheet or document.
Order of operations
The calculator follows the standard order of operations (often remembered as PEMDAS or BODMAS): brackets first, then powers, then multiplication and division from left to right, then addition and subtraction. So 2 + 3 × 4 is 14, not 20. Add brackets, (2 + 3) × 4, if you want 20.
Some cheap pocket calculators work strictly left to right and would show 20 for 2 + 3 × 4. If you get a different answer from an old calculator, that is usually why.
| You type | Answer | Why |
|---|---|---|
| 2 + 3 × 4 | 14 | multiplication before addition |
| (2 + 3) × 4 | 20 | brackets first |
| 10 − 4 − 3 | 3 | same-level operations go left to right |
| 2 ^ 3 ^ 2 | 512 | powers are worked out right to left: 3² = 9, then 2⁹ |
| −3 ^ 2 | −9 | the power applies before the minus sign; use (−3)^2 for 9 |
How the % key works
The percent key behaves like most phone and desk calculators. On its own, 25% means 0.25. After a plus or minus, the percentage is taken of the number before it, which is handy for tax, tips and discounts: 80 + 15% gives 92, and 80 − 20% gives 64. With × or ÷ it is just the plain fraction: 80 × 15% gives 12.
Why 0.1 + 0.2 shows 0.3 here
Computers store decimals in binary, so 0.1 + 0.2 really comes out as 0.30000000000000004 inside any program. This calculator rounds every answer to 12 significant digits and trims trailing zeros, so you see the answer you expect: 0.3. Very large or very small answers switch to scientific notation, for example 1.5e17 means 1.5 × 10¹⁷.
Working out a percentage, discount or tip? The percentage calculator answers “X% of Y”, percentage change and reverse percentages directly. For loans and savings, see the money calculators.
Frequently asked questions
Can I use my keyboard?
Yes. Type digits, a dot for decimals, + − * / for the four operations, ^ for powers, ( ) for brackets and % for percent. Press Enter or = to calculate, Backspace to delete, and Esc to clear. You can also type p for π, and in scientific mode e for Euler's number.
Does the calculator save my history?
Your last 20 calculations are saved in your own browser so they are still there when you come back. Nothing is sent to a server. Use clear in the history panel to wipe it.
What happens if I divide by zero?
You'll see "Can't divide by zero". Division by zero has no answer in ordinary arithmetic, so the calculator tells you instead of showing infinity or an error code.
Does it follow BODMAS / PEMDAS?
Yes. Brackets, then powers, then multiplication and division, then addition and subtraction, so 2 + 3 × 4 = 14. Unclosed brackets are closed for you when you press =.
Does it work offline and on my phone?
Yes. Once the page has loaded, the calculator runs entirely in your browser, so it keeps working without a connection. The buttons are sized for thumbs and the layout fits small screens.