Online Calculator

A plain four-function calculator that runs inside your browser. Tap the keys or type on your keyboard, and every finished sum goes into a history list you can click to carry on from.

0

On a computer you can type straight away: digits, + − * /, Enter or = for equals, % for percent, Backspace to delete, C or Esc to clear. Click the icon next to the result to copy it; tap any History line to bring that result back and keep calculating.

How to use

  1. Type the first number: Tap the digits on the keypad, or just start typing on your keyboard — the matching key flashes. Press ⌫ to drop the last digit while you are still typing a number.
  2. Choose an operator and the second number: Press +, −, × or ÷ (or type + - * / on a keyboard). The small line above the big number shows the sum in progress, such as '12 +'.
  3. Press = for the answer: Press = or Enter. The finished sum is added to the History list, and pressing = again repeats the same step on the new result.
  4. Copy it or reuse it: Click the copy icon in the corner of the display to put the number on your clipboard, or tap any History line to bring that result back to the display and keep calculating.

What this calculator does — and what it can't do

This is a four-function calculator: the 4×5 keypad has the digits 0–9, a decimal point, + − × ÷, a % key, ± to flip the sign, ⌫ to delete a digit, AC to start over, and =. Every calculation runs in your browser as you press the keys, so there is nothing to install, no sign-up, and no request to a server.

On a computer you never have to click the page first. The digit keys, + - * / (x works for multiply too), Enter or =, %, Backspace and C, Esc or Delete for AC all work straight away, and the matching on-screen key lights up briefly so you can see what was registered. Typing is ignored while you are in a text box, so the calculator will not steal keystrokes from a form on the page.

What it deliberately does not have: brackets and operator precedence, square root, powers, trigonometry, logarithms and remainders, and memory keys (M+, M−, MR, MC). It is also not an expression box — you cannot paste 12+34*2 and press Enter, because the calculator reads one key at a time. If you need brackets or a square root, a basic calculator is the wrong tool; look for a scientific one.

Two input limits are worth knowing. A single number takes at most 16 significant characters, after which extra digits simply do nothing, and a number can only contain one decimal point. Dividing by zero is the only error the calculator can produce: the display turns orange, the copy button is switched off, and you recover by pressing any digit to start a fresh number, or AC to wipe everything including the history.

Why 2 + 3 × 4 shows 20, not 14

2 + 3 × 4 =   →   20     (2 + 3 = 5, then 5 × 4)
100 ÷ 4 ÷ 5 =   →   5
5 + 2 = = =   →   7, 9, 11

This calculator works strictly left to right, with no operator precedence, the way a desk or pocket four-function calculator does. Pressing an operator key settles whatever is already pending, so 2 + 3 × 4 = gives 20: the + is resolved to 5 the moment you press ×, and 5 × 4 is 20. A scientific calculator stores the whole expression and applies multiplication first, which is where the answer 14 comes from.

Neither answer is a bug — the two machines are answering different questions. The practical rule is to feed a basic calculator in the order you want it to work: key the multiplication first (3 × 4 = 12, then + 2) if that's the math you mean. Chaining is the natural way to use it: 100 ÷ 4 ÷ 5 = runs 100 ÷ 4 = 25 and then 25 ÷ 5 = 5.

Pressing = more than once repeats the last operation on the result, which is handy for stepping through a series. 5 + 2 followed by three presses of = gives 7, then 9, then 11. The same trick works with × for doubling and with ÷ for halving.

How the % key behaves

200 + 10 % =   →   220     (10% of 200, added on)
80 − 25 % =   →   60      (25% of 80, taken off)
50 %   →   0.5           (on its own: ÷ 100)
6 × 50 % =   →   3

The % key is context-dependent, which is the common behavior on traditional four-function calculators. With a + or − waiting, it reads your number as a percentage of the number before the operator, so 200 + 10 % = is 220 and 80 − 25 % = is 60. That is the behavior you want for adding a tip or a tax, or taking a discount off a price.

With × or ÷ waiting — or when you press % with nothing pending — it simply divides by 100. So 50 % on its own shows 0.5, and 6 × 50 % = gives 3. If you are unsure which branch you are in, watch the small line above the big number: it tells you which operator is still pending.

Exact decimals, and how the display rounds

0.1 + 0.2 gives exactly 0.3 here. The arithmetic is done in decimal (via the decimal.js library) instead of binary floating point, which is why you don't see the familiar 0.30000000000000004 that many programs and some web calculators return. That removes the binary representation error, but it is not unlimited precision: the result is still rounded to 12 significant digits, so a very large amount (100000000000 + 0.01 shows 100000000000) or a figure you keep calculating from can lose the cents.

Results are shown to 12 significant digits with trailing zeros trimmed, so a long division such as 1 ÷ 3 appears as 0.333333333333 rather than an endless string. Numbers at or above 1e21, and numbers smaller than 1e-9 in absolute value, switch to scientific notation so they still fit on the screen.

Where that rounding bites is worth knowing. While you chain operators without pressing =, the running total is carried with more digits than the screen shows, so 1 ÷ 3 × 3 = comes back to exactly 1. Pressing = ends that: the answer is kept as the 12-digit number in front of you, and whatever you do next — another operator, or tapping the line in History — continues from the rounded figure. That is why 1 ÷ 3 = × 3 = shows 0.999999999999 instead of 1. Chaining without pressing = in the middle therefore reduces how much display rounding affects the result, but it cannot guarantee an exact one: the internal precision is finite too, so a long chain of divisions can still drift. When a figure has to be exact, check the step that matters on paper.

The display shows the decimal separator used in this language — a point in English — and the physical keyboard accepts both the period and the comma key for it. There is no thousands grouping: 1234567 stays 1234567 on the screen rather than becoming 1,234,567, which keeps the number easy to copy into a spreadsheet. The calculator also has no currency symbol or currency selector; it does not know about exchange rates or tax rules, so you enter plain numbers.

History, copying and what is kept

Nothing you type leaves your device, and nothing is stored after you close the tab. Each finished sum is appended to the History list as 'sum = result', up to the most recent 50 lines, and the whole list lives in memory only — there is no cookie, no local storage and no upload. Reload the page or close it and the display and the history are gone.

Tap a History line to load that result back into the display and continue from it, which saves re-typing a long answer. Reused this way, the number is the one you can see — the 12-digit figure on the line, not a hidden longer value. Pressing AC clears the history along with the current calculation, and that is the only way to clear it: individual lines cannot be deleted, and there is no built-in export, print or sync to another device.

The copy icon sits in the corner of the display and copies the number exactly as shown, then turns into a tick for about a second. If your browser blocks clipboard access — common on an insecure connection — nothing is copied and no error appears, so select the number by hand in that case. Copying is disabled while the display shows an error.

Two situations surprise people, both of them intentional. ⌫ only removes digits from a number you are typing: on a finished result it does nothing, because there is no half-typed number to shorten — press AC instead. And ± does nothing while the display still reads 0, since there is no negative zero to show.

Frequently asked questions

Why does my calculator say 2 + 3 × 4 = 20?
Because a basic calculator works left to right with no operator precedence. Pressing × settles the pending addition first (2 + 3 = 5), then multiplies by 4 to give 20. A scientific calculator keeps the whole expression and multiplies first, giving 14. To get 14 here, key 3 × 4 = first, then + 2.
How does the % key work on this calculator?
It depends on the operator waiting. With + or − pending, your number is treated as a percentage of the number before it: 200 + 10 % = gives 220, and 80 − 25 % = gives 60. With × or ÷ pending, or with nothing pending, % just divides by 100, so 50 % shows 0.5.
Can I use my keyboard instead of clicking the keys?
Yes, on a computer, and without clicking the page first. Digits work, + - * / (and x) for the four operators, Enter or = for equals, % for percent, Backspace to delete a digit, and C, Esc or Delete for AC. The matching on-screen key flashes so you can confirm the keypress.
Does 0.1 + 0.2 really equal 0.3?
Yes. The arithmetic runs in decimal via the decimal.js library rather than in binary floating point, so you get exactly 0.3 instead of 0.30000000000000004. Results are then shown to 12 significant digits, which is why 1 ÷ 3 appears as 0.333333333333.
Is anything I type uploaded or saved?
No. Every calculation happens in your browser and no request is sent anywhere. The display and the history are held in memory only — no cookies, no local storage — so refreshing or closing the tab clears them. There is nothing to sign up for and nothing to delete afterwards.
Does it have square root, brackets or memory keys?
No. The keypad is deliberately limited to digits, a decimal point, + − × ÷, %, ±, ⌫, AC and =. There are no brackets, powers, roots, trigonometry, logarithms or M+/MR memory keys, and you cannot paste a whole expression such as 12+34*2 — keys are read one at a time.
Why can't I delete a digit after pressing =?
⌫ only shortens a number you are still typing, and a result is not a half-typed number, so the key does nothing there. Press AC to start over, or tap the result in the History list to load it back and continue with an operator instead.
Can I save or export the calculation history?
No. The history keeps the 50 most recent sums for this session only, and there is no built-in export, print or sync. Lines cannot be removed one by one either — AC clears the whole list. Copy the figures you need with the copy icon before you leave the page.