Calculator
A plain calculator with brackets, keyboard support and a running tape of everything you have worked out.
Loading tool…
Everything runs in your browser. Nothing is uploaded, nothing is stored on a server, and closing the tab clears it.
What the Calculator does
What you will find on this page is a plain calculator with brackets, keyboard support and a running tape of everything you have worked out. Everything runs inside this page, so the work happens on your own device rather than on a server. It is most often used for quick arithmetic without reaching for a phone or opening another application. Next to this one sits our triangular prism calculator.
How to use it
- Click the keys, or just type — digits, + − * / and Enter all work.
- Use brackets for anything where the order matters.
- Press = to commit the result; it drops into the tape below.
- The result stays on screen so you can carry on from it.
How it works
The tape is the feature. The commonest complaint about any calculator, physical or on screen, is not knowing what you pressed — you get an answer that looks wrong and have no way to check whether the mistake was in the arithmetic or in the typing. A visible history of completed expressions and their results answers that immediately, which is why accountants kept printing calculators long after the display was good enough.
Brackets and operator precedence are handled properly, which many simple calculators do not do. Entering 2 + 3 × 4 gives 14 here because multiplication is evaluated first, not 20 as a calculator that applies each operation as you press it would give. If you want the other answer, the brackets are there for it, and the running preview shows you which one you are about to get before you commit.
The arithmetic is parsed rather than evaluated as code. That distinction matters for a page on the open web: evaluating a string of user input is a genuine injection hazard, and this site ships a Content Security Policy that forbids it outright. A small shunting-yard parser handles precedence, brackets and unary minus with no eval anywhere.
One limitation worth being plain about: this works in standard double-precision floating point, like almost every calculator you have used. That means 0.1 + 0.2 does not come out as exactly 0.3 internally, and results are rounded to twelve significant digits for display to hide the artefacts. For money, work in whole pence or cents; for anything needing exact decimal arithmetic, a floating-point calculator is the wrong instrument.
When to use it
- Quick arithmetic without reaching for a phone or opening another application.
- Working through several calculations where you need to see the earlier ones.
- Checking a figure someone has given you.
- Adding up a column where the running tape is the point.
Common mistakes to avoid
- Assuming left-to-right evaluation. This respects precedence, so 2 + 3 × 4 is 14.
- Expecting exact decimal arithmetic. Floating point cannot represent 0.1 exactly, which is a property of the format, not of this page.
- Using it for money without working in whole pence. Rounding errors compound across a long calculation.
Frequently asked questions
Does it follow order of operations?
Yes. Multiplication and division are evaluated before addition and subtraction, and brackets override that. 2 + 3 × 4 gives 14, and (2 + 3) × 4 gives 20.
Can I use my keyboard?
Yes — digits, + − * / ( ) and the decimal point, Enter or = to evaluate, Escape to clear and Backspace to delete. The shortcuts are ignored while you are typing into a field elsewhere on the page.
Why does 0.1 + 0.2 not give exactly 0.3?
Because binary floating point cannot represent 0.1 exactly, so the sum is a hair off. Every calculator using the same format has this; results are rounded for display to hide it. For money, work in whole pence.