Online Calculator with History

A standard calculator with full keyboard support, calculation history, and memory functions. No download needed.

Runs in your browser. No data leaves your device.

About this tool

A basic four-function calculator with memory keys, keyboard input and a saved history of results. It works like a pocket calculator: each operation is applied as soon as you press the next operator (immediate execution), so it is suited to quick everyday arithmetic rather than typed formulas.

Features
  • Add, subtract, multiply, divide, sign toggle (+/-), decimal point and backspace
  • Immediate execution: 2 + 3 x 4 evaluates as (2 + 3) x 4 = 20 because each operator applies the pending one first
  • Pressing = again repeats the last operation (e.g. + 5 = = keeps adding 5)
  • Pressing a second operator right after the first replaces it (5 + - 3 = 2)
  • % key divides the current number by 100
  • Memory keys MC, MR, M+ and M-, with an "M: value" indicator when memory is not zero
  • Display shows the expression being built and the completed equation after =
  • History panel of the last 50 calculations (expression, full result, date/time): tap an entry to copy its result; the panel's Pipeline button sends the entry tapped last (the newest until then); Clear empties it after a confirmation
  • Copy and Pipeline buttons on the main display to reuse the result or send it to another tool
How to use it
  1. Click the keys or type on your keyboard.
  2. Press = or Enter for the result.
  3. Use M+ / M- to accumulate values and MR to recall them.
  4. Reuse an earlier result: tap its entry in the History panel to copy it.
Outputs
  • Result on the display (copyable)
  • History entries in the form "a op b =" with the result and a timestamp
Limits and notes
  • No operator precedence and no parentheses; operations chain left to right as entered
  • Division by zero shows "Cannot divide by zero" (and overflow shows "Error"); operators are ignored until you type a digit or press Clear, which starts a new calculation. Errors are not added to the history
  • Results are rounded to 15 significant digits, so floating-point noise is hidden (0.1 + 0.2 shows 0.3) and integers up to 1e15 keep every digit
  • History is saved in localStorage (overtooled:calculator:history, max 50 entries); memory is not saved and resets on reload
  • Keyboard input is captured page-wide while the tool is open, except while typing in a text field (such as the sidebar search) or holding Ctrl/Cmd/Alt
  • Runs entirely in the browser; nothing is uploaded
Keyboard shortcuts
  • 0-9 and .: enter digits
  • + - * /: add, subtract, multiply, divide
  • Enter or =: equals
  • Escape: clear all
  • Backspace: delete last digit
  • %: divide current number by 100

Frequently Asked Questions

How does the Online Calculator work?

It works like a pocket calculator using immediate execution: when you press an operator, the pending operation is applied to the number on screen, so operations chain left to right (2 + 3 x 4 gives 20). Pressing = again repeats the last operation. Memory (M+, M-, MR, MC) lives in the page while it is open, and the last 50 calculations are saved to your browser's localStorage.

Can I use my keyboard instead of clicking buttons?

Yes. Type numbers and operators directly on your keyboard. Press Enter or = for the result, Escape to clear, and Backspace to delete the last digit.

Is my calculation history saved?

Yes. Your calculations are stored in your browser's local storage and persist between visits. You can clear the history at any time from the history panel.

What are the memory functions (M+, M-, MR, MC)?

M+ adds the current value to memory, M- subtracts it, MR recalls the stored value, and MC clears memory. These let you store intermediate results during complex calculations.