Three ways to calculate
- Basic — the familiar keypad: digits, + − × ÷, percent and ±.
- Scientific — adds brackets, powers and roots, sin, cos and tan with their inverses, log and ln, 10ˣ and eˣ, π and e, n!, 1/x, EXP for powers of ten and Ans for the last answer, with a DEG/RAD switch.
- Expression — type a whole calculation, such as
(2 + 3) × 4^2orsqrt(2) + 1, and press Enter.
Every result goes into the history list, where clicking an entry brings it back. When you need the working shown rather than just an answer, the statistics tools, the focused math tools and the rest of the calculators on this site lay out every step against your own numbers.
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 %, then powers, then a leading minus sign, then × and ÷, then + and −. So −2² is −(2²) = −4. Powers associate rightwards, so 2^3^2 is 2⁹ = 512 rather than 8² = 64. Implicit multiplication, as in 2π or 2(3+4), has the same precedence as × and is worked left to right, so 1/2π means (1/2) × π ≈ 1.5708, not 1/(2π).
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% → 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.
Memory, Ans and history
MC clears the memory, MR recalls it, M+ adds the value on the display to it and M− subtracts it; an M on the display shows when something is stored. Ans stands for the last result, so Ans × 2 doubles it. The history keeps your recent calculations; it is stored only in this browser, and the clear button empties it.
Precision
Results are tidied to 15 significant digits, which removes the binary noise that makes many calculators show 0.1 + 0.2 as 0.30000000000000004 — here it is 0.3. Large and small numbers switch to scientific notation, and you can type them that way with EXP or a capital E: 1.5E3 is 1,500. In degree mode the special angles are exact, so sin(30) is exactly 0.5 and tan(45) exactly 1. Factorials work from 0! to 170!, the largest that fits in floating-point arithmetic.
Keyboard
In Basic and Scientific mode the main keys have keyboard equivalents, so you rarely need the mouse. In Expression mode you simply type into the input box.
| Press | Does |
|---|---|
0–9 | Digits |
. or , | Decimal point |
+ - * / | Add, subtract, multiply, divide |
( ) | Brackets |
% | Percent |
^ | To the power of |
! | Factorial |
Enter or = | Evaluate |
Backspace | Delete the last entry |
Esc | Clear everything |
On the keypad, unclosed brackets are closed for you when you press equals, so √(144 still evaluates.
Nothing is sent anywhere
The calculator is 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. The memory and history live in your browser’s own storage and never leave it.
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?
Yes: MC, MR, M+ and M− work like the memory keys on a desk calculator, and the stored value is kept in your browser between visits. Pressing equals also leaves the answer available as Ans, and the next operator continues from it.
Is my calculation history saved?
Only in this browser. The most recent 50 calculations are kept on your device, nothing is uploaded, and the clear button under the list deletes them.