IQR Calculator

Calculator

A plain, fast calculator. Keypad, keyboard, brackets and percentages.

Calculator
1,024 ÷ 16 =
64

Type with your keyboard too — digits, + - * /, Enter to evaluate, Esc to clear.

It respects order of operations

Type 2 + 3 × 4 and this calculator answers 14, not 20. Multiplication and division resolve before addition and subtraction, and brackets override both. A four-function calculator that evaluates strictly left to right gives the other answer — that is easier to build, not more correct.

Full precedence, strongest first: brackets, then functions and powers, then × and ÷, then + and −. Powers associate rightwards, so 2^3^2 is 2⁹ = 512 rather than 8² = 64.

What the % key does

The percent key is the one place calculators quietly disagree with each other. This one follows the convention almost every physical calculator uses:

200 + 10% → 220 ten per cent OF 200, added 200 − 10% → 180 ten per cent OF 200, subtracted 200 × 10% → 20 200 times 0.1 50% → 0.5 on its own, simply divided by 100

After a + or −, the percentage is taken of the number you started with. Everywhere else, % means "divide by 100". That is what makes "add 15% to 240" work as one keystroke sequence instead of two calculations.

Keyboard

Every key has a keyboard equivalent, so you never have to reach for the mouse.

PressDoes
0–9Digits
. or ,Decimal point
+ - * /Add, subtract, multiply, divide
( )Brackets
%Percent
^To the power of
Enter or =Evaluate
BackspaceDelete the last entry
EscClear everything

Unclosed brackets are closed for you when you press equals, so √(144 still evaluates.

Nothing is sent anywhere

The calculator is a few kilobytes of JavaScript running on your own device. No request is made when you press equals — open your browser's network panel and check. It also keeps working if your connection drops after the page has loaded.

When you need the working shown rather than just an answer, the statistics tools and the focused math tools lay out every step against your own numbers.

Worked examples

Adding tax in one go

A bill of 240 with 15% to add

Press 240 + 15 % = and you get 276. The percent key reads the 15 as a percentage of the 240 already entered, so there is no need to work out the 36 separately first.

Brackets changing the answer

2 + 3 × 4 versus (2 + 3) × 4

The first is 14 — the multiplication happens first. The second is 20, because the brackets force the addition ahead of it. Pressing ( straight after a number inserts a × for you, so 2(3+4) reads as 2 × 7.

Questions

Why does 2 + 3 × 4 give 14 and not 20?

Because multiplication binds tighter than addition, which is standard mathematical convention. Simple four-function calculators often evaluate strictly left to right and return 20. Use brackets when you want that reading.

What happens if I divide by zero?

You get the message "Cannot divide by zero" instead of a result. Nothing here ever displays Infinity or NaN.

Is there a memory function?

No. Pressing equals leaves the answer on the display and the next operator continues from it, which covers most of what memory keys were for.