← Back to all tools

Calculator

Basic four-function calculator. Use the buttons or your keyboard.

 
0

What This Calculator Handles

A general-purpose calculator for arithmetic that is more than a single sum but does not need a full scientific stack: addition, subtraction, multiplication, division, parentheses, percentages, exponentiation and square roots. It runs in the browser, so it works on a phone, a tablet or a locked-down work machine where you cannot install software.

How to Use It

Step 1 — Enter your expression using the on-screen keypad or your keyboard.

Step 2 — Use parentheses to control grouping. Everything inside a pair of brackets is evaluated before anything outside it.

Step 3 — Press equals or hit Enter to evaluate. The result appears immediately.

Step 4 — Press clear to start a new calculation. The clear button resets the whole expression rather than deleting one character.

Keyboard Shortcuts

Typing is faster than tapping for anyone at a desk. Digits and the operators +, -, * and / work directly, and Enter evaluates. Backspace deletes the last character, and Escape clears the expression. Parentheses are on the shifted 9 and 0 keys.

One habit worth building: type the full expression before evaluating rather than chaining partial results. Chained entry hides rounding — you see 3.33 rather than 10 divided by 3, and subsequent steps inherit that invisible truncation.

How Expressions Are Evaluated

The calculator follows standard operator precedence rather than left-to-right reading order. Exponentiation binds tightest, then multiplication and division, then addition and subtraction. Within the same precedence level, evaluation proceeds left to right.

So 2 + 3 * 4 is 14, not 20, because the multiplication happens first. And 8 / 4 / 2 is 1, not 4, because division is left-associative. When in doubt, add parentheses: they cost nothing and remove all ambiguity, both for the machine and for whoever reads your work later.

Why 0.1 + 0.2 Is Not Exactly 0.3

This is not a bug in the calculator, and it is worth understanding because it affects every digital calculation you will ever see.

Computers store decimal fractions in binary floating point. Most decimal fractions — 0.1 is the classic example — have no exact binary representation, in the same way that one third has no exact decimal representation. The stored value is the nearest binary approximation, slightly above or below the decimal value you typed.

When you add two approximations, the small errors combine. The result may display as 0.3 because the calculator rounds for presentation, but the underlying value can be 0.30000000000000004. For everyday arithmetic this is irrelevant. For money it is not, which is why financial systems use integer cents or dedicated decimal types instead of floating point.

Practical rule: if you are calculating currency, work in the smallest unit (cents, fen) as whole numbers, then divide at the end for display. If you are checking a balance, never compare two floating-point results with strict equality.

Percentages Without Getting Them Wrong

Percentage questions cause more errors than any other everyday calculation, mostly because two different questions hide behind the same word.

Percent of a number: 15 percent of 240 is 240 times 0.15, which is 36. Multiply by the decimal form.

Percentage change: going from 80 to 100 is an increase of 25 percent, because the change of 20 is measured against the starting value of 80. Going back from 100 to 80 is a decrease of 20 percent, because 20 is now measured against 100. The same absolute movement is a different percentage depending on direction — the reason discounts and markups never cancel out.

Percentage points: a rate moving from 4 percent to 5 percent has risen by one percentage point, but by 25 percent in relative terms. Headlines exploit this ambiguity constantly.

FAQ

Does this calculator follow order of operations?

Yes. Exponentiation is evaluated first, then multiplication and division, then addition and subtraction, and same-precedence operators evaluate left to right. Use parentheses to override the default grouping.

Why does 0.1 + 0.2 show a long decimal?

Because decimal fractions such as 0.1 have no exact binary representation, so they are stored as the nearest approximation. Adding two approximations combines their small errors. For currency, calculate in whole cents to avoid the issue.

Can I use my keyboard instead of clicking?

Yes. Digits, operators and parentheses all work from the keyboard, Enter evaluates, Backspace deletes and Escape clears the expression.

Does it support square roots and powers?

Yes. Both exponentiation and square root are supported. Use parentheses around a negative base to make the intended grouping explicit.

Is there a calculation history?

No history is kept, and nothing is stored in your browser or sent to a server. Each session starts clean.

Can I calculate percentages here?

Yes. Enter the number, multiply by the percentage as a decimal, and evaluate. Remember that percentage change is measured against the starting value, so a rise and a fall of the same absolute amount are different percentages.

Does the calculator work offline?

Yes, after the page has loaded. All arithmetic runs locally in your browser.