Calculator
About the Calculator
This online calculator handles everyday arithmetic with the correct order of operations, so 2 + 3 × 4 gives 14, not 20. It adds square root, square, reciprocal, percent, sign toggle and a memory register, and you can drive all of it from your keyboard.
Order of operations in this calculator
Many pocket calculators evaluate strictly left to right, so 2 + 3 × 4 becomes 5 × 4 = 20. This calculator follows standard precedence instead: multiplication and division are done before addition and subtraction, and operators of the same rank run left to right. 10 - 4 ÷ 2 is 8 and 8 ÷ 4 × 2 is 4.
The line above the main display shows the expression you have built so far, such as 1 + 2 ×, and the full calculation after you press equals. There are no parentheses; for nested expressions, calculate the inner part first and store it with M+.
Why 0.1 + 0.2 shows 0.3 here
Computers store decimals in binary floating point, which cannot represent 0.1 exactly, so in JavaScript 0.1 + 0.2 is 0.30000000000000004. This calculator rounds every result to 15 significant digits before showing it, which removes that noise while keeping full precision for normal values.
Entries are limited to 16 digits. Very large or very small results switch to exponent notation, for example 1e+21.
How the percent and unary keys behave
The % key divides the number on the display by 100, so 50 % becomes 0.5. It does not apply the "add a percentage" shortcut of some desk calculators: to add 10% to 200, enter 200 × 1.1 or 200 + 200 × 0.1.
√, x² and 1/x act on the displayed number immediately. Invalid operations produce a message instead of a wrong answer: the square root of a negative number shows "Invalid input", and dividing by zero or taking 1/x of zero shows "Cannot divide by zero". Press any digit or AC to continue.
How to Use the Calculator
- Click the number buttons or type digits on your keyboard; use . or , for the decimal point.
- Choose an operator: ÷, ×, − or +. Pressing a different operator straight away replaces the previous one.
- Press = (or Enter) to see the result; the line above shows the full expression.
- Use √, x², 1/x, % and +/- to transform the current number.
- Store values with M+ and M-, bring them back with MR and clear memory with MC. The current memory value is shown under the display.
- Press C (or Delete) to clear the current entry, AC (or Escape) to clear everything, and Backspace to remove the last digit.
Need step-by-step working? Try Math Solver →
Frequently Asked Questions
- Does this calculator follow PEMDAS / BODMAS?
- Yes for the operations it has: multiplication and division come before addition and subtraction. It has no parentheses or exponent key beyond x², so the "P" and "E" steps are done with M+ or x².
- Can I use my keyboard?
- Yes. Type digits and + - * /, press Enter or = for the result, Backspace to delete a digit, Delete to clear the entry and Escape to clear everything.
- What is the difference between C and AC?
- C clears only the number you are typing, so you can fix a mistake without losing the expression. AC clears the number, the pending expression and any error.
- Is the memory value saved if I reload?
- No. Memory lives only in the open page and resets to 0 on reload or when you close the tab.
- Is anything I calculate sent online?
- No. All arithmetic runs in your browser with JavaScript, and no numbers or history are stored or transmitted.