Calculator
Last updated: 7 August 2026
Reviewed by Gavin Meiring, Lead research and primary author ยท Doctoral Candidate (Corporate Governance) ยท Research and drafting assisted by AI
Tip: you can also type using your keyboard.
- The word 'calculus' means 'small pebble' in Latin โ the same stones once used as counting tokens on ancient counting boards.
- Blaise Pascal built the Pascaline in 1642, a mechanical adding machine driven by gears, making him the creator of one of the first working mechanical calculators.
- Texas Instruments engineer Jack Kilby โ co-inventor of the integrated circuit โ built the first handheld electronic calculator, the 'Cal Tech', in 1967; commercial handhelds followed within a few years.
Calculator
An online calculator lets you perform arithmetic, percentage calculations, and basic mathematical operations directly in your browser. It is useful for anyone who needs quick calculations without reaching for a physical device or opening a spreadsheet.
How to Use the Calculator
- Click or tap the number buttons to enter your first value.
- Press the operator button: plus, minus, multiply, or divide.
- Enter your second value.
- Press the equals button to see the result.
- Use the clear button to reset, or the backspace button to delete the last digit.
The Formula
The calculator follows the standard mathematical order of operations, also known as BODMAS (Brackets, Orders, Division, Multiplication, Addition, Subtraction) in British convention, or PEMDAS in American usage. Operations in brackets are computed first, then powers and roots, then division and multiplication from left to right, then addition and subtraction from left to right. Entering 2 plus 3 multiplied by 4 gives 14, not 20, because the multiplication is evaluated before the addition.
Real-World Example
You are splitting a restaurant bill. The total is 147.60 pounds. There are 6 people. Each person pays 147.60 divided by 6 = 24.60 pounds. You then want to add a 12.5 percent tip: 147.60 multiplied by 0.125 = 18.45 pounds. New total with tip = 147.60 plus 18.45 = 166.05 pounds. Per person with tip = 166.05 divided by 6 = 27.675, rounded to 27.68 pounds.
When to Use an Online Calculator vs a Spreadsheet
A basic online calculator is ideal for one-off arithmetic, quick percentage checks, and simple division or multiplication. Use a spreadsheet when you need to repeat the same calculation across many values, build a model with multiple inputs, or keep a record of your working. For complex formulas involving trigonometry, logarithms, or scientific notation, a scientific calculator is more appropriate than a standard one. Online calculators are particularly useful on mobile devices where typing a spreadsheet formula is cumbersome.
Frequently Asked Questions
Why does the order of operations matter? Without a consistent order of operations, the same expression could produce different results depending on who evaluates it. BODMAS/PEMDAS is a universally agreed convention that ensures mathematical expressions have exactly one correct answer. Most calculators handle this automatically, but basic four-function calculators evaluate left to right without precedence.
What is the difference between a basic and a scientific calculator? A basic calculator handles addition, subtraction, multiplication, and division. A scientific calculator adds functions including trigonometry (sin, cos, tan), logarithms, square roots, powers, and factorial notation. Scientific calculators are needed for physics, chemistry, engineering, and higher-level maths.
Can I use an online calculator for financial calculations? For simple sums, yes. For complex financial calculations involving compound interest, loan repayments, or investment returns, dedicated financial calculators or tools provide more accurate results with built-in formulas for specific financial products.
Why do calculators sometimes show floating-point errors? Digital calculators represent numbers in binary (base-2) format internally. Some decimal fractions such as 0.1 cannot be expressed exactly in binary, leading to tiny rounding errors. For example, 0.1 plus 0.2 may display as 0.30000000000000004 in some environments. For financial calculations requiring exact decimal precision, use a tool designed for that purpose.
Worked example: splitting a bill that does not divide evenly
The bill example above divides cleanly. Real bills rarely do. Take a total of 100.00 split across three people. The exact share is 100 divided by 3, which is 33.333333 and continues without ending. An eight-digit calculator display shows 33.333333.
| Bill total | People | Exact share | A split that adds up | Drift |
|---|---|---|---|---|
| 60.00 | 3 | 20.00 | 20.00, 20.00, 20.00 | 0.00 |
| 100.00 | 3 | 33.333333 | 33.34, 33.34, 33.32 | 0.00 |
| 50.00 | 7 | 7.142857 | 7.15, 7.15, 7.14, 7.14, 7.14, 7.14, 7.14 | 0.00 |
| 81.05 | 4 | 20.2625 | 20.27, 20.26, 20.26, 20.26 | 0.00 |
The arithmetic to check: 33.34 plus 33.34 plus 33.32 equals 100.00 exactly. So does 20.27 plus 20.26 plus 20.26 plus 20.26. Rounding every share up is the mistake to avoid, because 33.34 multiplied by 3 is 100.02, which is two pence more than the bill. Round to the nearest penny and let the last person absorb the difference.
Order of operations, evaluated two ways
The precedence rule matters most on a long chain of operations. These are the same keystrokes a four-function calculator and a precedence-aware calculator will disagree about.
| Expression | With precedence (BODMAS) | Evaluated strictly left to right |
|---|---|---|
| 2 + 3 x 4 | 14 | 20 |
| 10 - 4 / 2 | 8 | 3 |
| 20 / 4 + 6 x 2 | 17 | 22 |
| 8 + 2 x 3 - 4 | 10 | 26 |
| 2 x 9 - 3 + 4 | 19 | 19 |
| 36 / 6 / 2 | 3 | 3 |
Two of those rows agree, which is the point worth taking away. Precedence only changes the answer when operations of different rank sit in the same expression. Division and multiplication share a rank and are evaluated left to right, which is why 36 / 6 / 2 is 3 either way, and why swapping it to 36 / (6 / 2) gives 12 instead.
Programming languages follow the same convention but add operators the keypad does not have. In Python, exponentiation is right-associative, so 2 ** 3 ** 2 evaluates to 512 rather than 64, because it is read as 2 ** (3 ** 2). Unary minus binds less tightly than exponentiation, so -2 ** 2 evaluates to -4. Both results come from the operator precedence table in the Python language reference.
A price-per-unit comparison
The calculator handles the arithmetic behind a supermarket comparison. Package A holds 500 g and costs 4.20. Package B holds 750 g and costs 5.10. Neither price tells you which is cheaper per gram, so divide.
| Package | Weight | Price | Price per 100 g | Price per kg |
|---|---|---|---|---|
| A | 500 g | 4.20 | 0.84 | 8.40 |
| B | 750 g | 5.10 | 0.68 | 6.80 |
Package B is cheaper per kilogram by 1.60, or 19 percent. Two packs of A each week cost 873.60 over a year. Two packs of B each week cost 707.20 over the same year. The difference is 166.40, and it came from a single division.
Divide the price by the weight, then multiply by the unit you want to compare against. The order does not matter as long as you keep it consistent: 4.20 / 500 * 100 gives the same answer as 4.20 / 5, because 500 g is five times 100 g.
What the percent key does, and what it does not
Pressing 100 + 10% on a four-function calculator with a percent key gives 110. Typing the same thing into a spreadsheet cell gives 100.1. Both are behaving as designed. The calculator's percent key treats the percentage as a relative adjustment to the number before it, while a spreadsheet treats the percent sign as a shorthand for dividing by 100, so 10% is simply the value 0.1 and the expression becomes 100 + 0.1.
| Keystrokes | Four-function calculator | Spreadsheet formula |
|---|---|---|
| 100 + 10% | 110 | 100.1 |
| 100 - 10% | 90 | 99.9 |
| 100 x 10% | 10 | 10 |
| 200 / 50% | 400 | 400 |
The two agree on multiplication and division and disagree on addition and subtraction. If you want a 10 percent increase in a spreadsheet, write 100 * 1.1, which is unambiguous in both tools.
Where the strange decimal endings come from
Digital calculators store numbers in binary. Fractions such as one half, one quarter and one tenth of a power of two convert exactly. One tenth does not, in the same way that one third does not convert exactly to decimal. Adding the stored approximations produces the familiar tail.
| Expression | Result shown |
|---|---|
| 0.1 + 0.2 | 0.30000000000000004 |
| 0.1 x 3 | 0.30000000000000004 |
| 0.5 + 0.25 | 0.75 |
| 0.1 + 0.7 | 0.7999999999999999 |
Rounding inherits the same problem, and not always in the direction you expect. Rounding 2.675 to two decimal places produces 2.67 on many platforms rather than 2.68, because the nearest binary value to 2.675 is a hair below 2.675, and the rounding rule looks at what is actually stored. Rounding 1.005 to two places gives 1.00 for the same reason. Money arithmetic should avoid binary floating point entirely: work in whole pence as integers, or use a decimal type that stores digits rather than binary fractions.
Assumptions this calculator makes
The calculator evaluates the expression you type using the standard precedence order, brackets first, then exponents, then multiplication and division left to right, then addition and subtraction left to right. It does not insert brackets for you, and it does not accept implicit multiplication, so 2(3 + 4) has to be typed as 2 x (3 + 4).
Angles are not involved, so no degree or radian setting applies. The display rounds for presentation only; the stored value keeps full internal precision unless you clear the entry. Chained operations continue from the running total, which is why a single clear between steps changes the answer. And the precision limits above are a property of binary storage, not a fault in the tool.
Also try these free tools: