Converters
Standard Calculator
A no-nonsense everyday calculator with memory functions, square, square root, reciprocal, percentage and a running calculation history. Your keyboard works too.

History
There's no history yet.
Arithmetic order: desk calculator versus BODMAS
BODMAS and PEMDAS describe expression precedence: brackets or parentheses first, then powers, multiplication and division, followed by addition and subtraction. Multiplication and division share a level and are evaluated left to right; the same applies to addition and subtraction. For a written expression, 2 + 3 × 4 means 2 + 12 = 14. The initial letters are a memory aid, not an instruction that multiplication always comes before division regardless of position.
This tool is an immediate-execution desk calculator, not a full expression parser. Entering 2, plus, 3, multiply, 4, equals gives 20 because pressing multiply first completes 2 + 3. To evaluate the written expression correctly here, calculate 3 × 4 = 12, then add 2. For brackets, calculate the grouped result first and store it if needed. This distinction is important when checking a quote, an invoice or a school exercise against another calculator.
Percentage discounts and markups
The percent key uses the pending left-hand amount as its base. For an increase, entering 200 + 10 % = adds 10% of 200, producing 220. For a discount, 200 − 15 % = subtracts 30, producing 170. Without a pending operation, the percent key displays zero in this implementation. When you simply need 15% of 200, use ordinary arithmetic: 200 × 15 ÷ 100 = 30. Do not assume the percent key has identical behaviour in every calculator or every operator context.
Percentage change is (new − old) ÷ old × 100. If a price rises from £80 to £100, the increase is £20 divided by £80, or 25%. If it falls from £100 back to £80, the reduction is 20%, not 25%. The denominator changes with the comparison. A 20% increase followed by a 20% reduction leaves 96% of the original amount because 1.2 × 0.8 = 0.96.
Margin and markup use different bases too. Buying at £40 and selling at £60 produces £20 of profit. Markup is £20 ÷ £40 = 50%; gross margin is £20 ÷ £60 = approximately 33.33%. Use prices on a consistent tax basis. The separate VAT and gross-margin calculator is useful where the selling price includes VAT and the cost does not.
Memory for multi-step totals
Memory is separate from the displayed running calculation. MS stores the current number, M+ adds the display to memory, M− subtracts it, MR recalls it, and MC clears it. Suppose an estimate contains 12 items at £7.50 and eight items at £4. Calculate 12 × 7.50 = 90 and store it with MS. Clear the current calculation, calculate 8 × 4 = 32, press M+, then MR to recall 122. Clear memory deliberately before beginning an unrelated total.
You can also use memory to preserve a denominator, subtotal or bracketed result. Check the visible memory indicator before assuming the stored value is zero. Clearing the calculation with C is not the same action as clearing memory with MC. The history records completed calculations and lets you recall a result, but it is temporary page state rather than an accounting record or exported audit trail.
Scientific notation and precision
Very large or very small values may be displayed using scientific notation. A value such as 1.2e+6 means 1.2 × 10⁶, or 1,200,000; 3e−7 means 0.0000003. The display may use an ASCII minus sign in the exponent. This is a formatting choice, not a different unit. The keypad does not provide a separate exponent-entry function, so do not paste an expression expecting a scientific calculator parser.
The calculation uses JavaScript floating-point numbers. Many decimal fractions cannot be represented exactly in binary. The display rounds to approximately twelve significant digits to reduce distracting floating-point noise, but this does not turn the calculator into an arbitrary-precision accounting system. Keep enough intermediate precision, round monetary amounts according to the rules of your task, and use suitable specialist software for regulated financial records.
Everyday calculation questions
Why does dividing by zero show an error?
Division by zero has no finite numerical result. A negative square root likewise falls outside the real-number operations provided here. Clear the entry and check your inputs rather than treating the error as zero.
What does repeated equals do?
It repeats the last operation with its last right-hand operand. For 2 × 3 = = =, the results are 6, 18 and 54. This can be convenient but can also add an unintended repeat if you press equals twice.
Can I rely on history after leaving the page?
No. History and memory are temporary. Copy important results into your own records before navigating away or refreshing the page.
Arithmetic reference examples
| Task | Arithmetic | Result |
|---|---|---|
| 15% of 200 | 200 × 15 ÷ 100 | 30 |
| Increase 200 by 10% | 200 + 10 % = | 220 |
| Discount 200 by 15% | 200 − 15 % = | 170 |
| Written expression with precedence | 2 + (3 × 4) | 14 (calculate product first) |
| Desk calculator entry order | 2 + 3 × 4 = | 20 |
| Scientific notation | 1.2e+6 | 1,200,000 |
How this calculator works
This is a standard four-function calculator. It evaluates one operation at a time in the order you type — 2 + 3 × 4 gives 20, not 14 — because each operator acts on the running total immediately. Scientific calculators apply operator precedence (multiplication before addition); a standard calculator does not.
The memory keys
The memory row works exactly like a physical desk calculator:
MS— store the current display value in memory.M+/M−— add the display value to (or subtract it from) memory.MR— recall the stored value to the display.MC— clear the memory back to zero.
Memory is handy for totalling a list of mixed calculations: work out each line, press M+ after each one, then MR for the grand total.
Percentage, square, root and reciprocal
% works the way it does on most desk and desktop calculators: mid-calculation it means "this percentage of the running total", so 200 + 10 % adds 20 (10% of 200) to give 220. x² squares the display, √x takes the square root, and 1/x gives the reciprocal — useful for converting ratios and rates.
Keyboard shortcuts
You can type directly: digits, +, -, *, /, Enter for equals, Backspace to delete a digit, Esc to clear everything, and % for percentage. Pressing = repeatedly repeats the last operation — 2 × 3 = = = gives 6, 18, 54.
History
Every completed calculation is added to the history panel on the right (up to 50 entries). Click any entry to bring its result back to the display and carry on calculating from it. History clears when you leave the page.
