Basic Calculator
Perform everyday arithmetic — addition, subtraction, multiplication and division — using on-screen keys or your keyboard. Recent results are kept in a history panel while the page is open.
History
How the Basic Calculator Works
Press digits and an operator, then another number, and press = to get the result. When you chain operators (for example 5 + 3 × 2) the calculator completes the pending step as soon as you press the next operator, so 5 + 3 becomes 8 and is then multiplied by 2 to give 16.
Keyboard Shortcuts
- 0–9 and . : type numbers
- + − * / : choose an operation
- Enter or = : show the result
- Backspace : delete the last digit
- Delete : clear the current number (CE)
- Escape : clear everything (AC)
Getting a PEMDAS-Correct Answer
If an expression mixes operations, work it out in the correct order yourself. For 2 + 3 × 4, first calculate 3 × 4 = 12, then add 2 to get 14. The history panel makes it easy to reuse the intermediate result.
Limits and Privacy
The calculator uses standard 64-bit floating-point numbers and rounds results to 12 significant digits. All calculations run in your browser; nothing you type is sent to a server.
Frequently Asked Questions
Can I use my computer keyboard?
Yes. Use the number keys, + − * /, Enter or = for the result, Backspace to delete a digit, Delete for CE and Escape for AC.
Does it keep a history?
Yes. The last 20 calculations are listed in the History panel while the page is open. Click one to reuse its result. History is not saved to a server and is cleared when you reload the page.
Does it follow the order of operations (PEMDAS)?
No. Chained calculations are evaluated left to right as you enter them. For 2 + 3 × 4 the calculator returns 20. To follow PEMDAS, calculate the multiplication first (3 × 4 = 12) and then add 2.
What happens when I divide by zero?
The display shows Error. Press AC to start again.
What do AC and CE do?
AC clears everything including the pending operation. CE clears only the number currently shown.
How many digits are supported?
Up to 14 digits can be typed. Results are rounded to 12 significant digits to hide floating-point noise such as 0.1 + 0.2 = 0.30000000000000004.