Math Calculator
Free online math calculator for quick arithmetic. Type any expression with + - x / parentheses, powers and percentages to get an instant accurate answer.
About this tool
Sometimes you just need a quick answer to a messy calculation without opening a spreadsheet. Our free math calculator evaluates any arithmetic expression you type, following the correct order of operations.
It handles addition, subtraction, multiplication, division, powers, square roots, percentages, and parentheses — with an on-screen keypad, Enter-to-calculate, and a list of your recent calculations you can click to reuse. Type it, press Calculate, done.
By Azhar Hussain · Last updated: 12 November 2026
How to use
Enter your expression using + - * / symbols, parentheses for grouping, and ^ for powers. You can also type x, × or ÷ for multiply and divide, and sqrt() for square roots — for example, sqrt(16) * 2, or (250 + 75) * 1.2 for a total after a 20 percent markup. Percentages work the way a pocket calculator does: 200 + 10% adds ten percent of 200, giving 220.
Use the on-screen keypad if you prefer tapping to typing, and press Enter to calculate. Below the result you will see your recent calculations — click any line to load that expression again and recalculate it. History stays on this page only; closing the tab clears it.
If an expression has a typo or cannot be evaluated, the tool tells you instead of guessing — including a specific message when you divide by zero. When in doubt, add parentheses to make your intention explicit: (2 + 3) * 4 equals 20, while 2 + 3 * 4 equals 14.
The math behind it
The calculator respects standard math precedence: parentheses first, then powers, then multiplication and division, then addition and subtraction, all left to right. Power towers associate from the top down, so 2^3^2 means 2^(3^2) = 512. Your input is sanitised so only numbers and math symbols are allowed, then evaluated by the browser's math engine.
The % symbol does two jobs. After + or − it means percent-of: 200 + 10% equals 220, because ten percent of 200 is added. On its own, or after × or ÷, it means divide by 100: 25% equals 0.25 and 200 × 10% equals 20. When a number follows the %, it is the remainder (modulo) from programming: 10 % 3 equals 1.
Worked example: order of operations
Take 25 + 17 × 3 − 8. Multiplication comes before addition and subtraction, so the calculator works it out in three reductions:
- 17 × 3 = 51, giving 25 + 51 − 8.
- 25 + 51 = 76, giving 76 − 8.
- 76 − 8 = 68.
Parentheses override the order: (25 + 17) × 3 − 8 equals 118, because 25 + 17 is worked out first. Powers bind tighter than multiplication: 2 × 3^2 equals 18, not 36.
Percentages, remainders, and square roots
The % symbol and sqrt() follow pocket-calculator conventions:
| You type | What it means | Result |
|---|---|---|
| 200 + 10% | 200 plus 10% of 200 | 220 |
| 500 − 20% | 500 minus 20% of 500 | 400 |
| 200 × 10% | 200 times 10% (0.1) | 20 |
| 25% | 25 divided by 100 | 0.25 |
| 10 % 3 | Remainder of 10 ÷ 3 | 1 |
| sqrt(16) | Square root of 16 | 4 |
| sqrt(9 + 16) | Square root of 25 | 5 |
The percentage is always worked out from the number directly before the + or − sign. For anything more complicated, use parentheses to say exactly what you mean — (200 + 50) × 10% is unambiguous, while 200 + 50 × 10% is not the same thing.
How answers are rounded
Results are rounded to 6 decimal places, and unnecessary trailing zeros are trimmed, so 2 + 2 shows 4 rather than 4.000000, and 1 ÷ 3 shows 0.333333. Very large results (1,000,000,000,000,000 and above) and very small ones (below 0.000001) switch to scientific notation, such as 1.267651e+30 for 2^100.
Like every calculator, this one uses binary floating-point arithmetic, so 0.1 + 0.2 is not exactly 0.3 inside the machine — but the 6-decimal rounding means it displays as 0.3. Whole numbers stay exact up to about 9 quadrillion (2^53); beyond that, neighbouring integers can no longer all be told apart.
Frequently asked questions
What order does it calculate in?
What does the % symbol do?
Can I use it for homework?
How do I add a percentage to a number?
How do I calculate a square root?
Why does my answer show so many decimal places?
What is the difference between this calculator and the scientific calculator?
Can I see my previous calculations?
Related tools
Scientific Calculator
Fraction Calculator
Percentage Calculator
BMI Calculator
Age Calculator
Tip Calculator
💬 Comments
Have a question about this page, or an idea to make it better? Share it below — your feedback helps everyone who uses this site.