Home › Calculators › Math Calculator
🧮

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:

  1. 17 × 3 = 51, giving 25 + 51 − 8.
  2. 25 + 51 = 76, giving 76 − 8.
  3. 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 typeWhat it meansResult
200 + 10%200 plus 10% of 200220
500 − 20%500 minus 20% of 500400
200 × 10%200 times 10% (0.1)20
25%25 divided by 1000.25
10 % 3Remainder of 10 ÷ 31
sqrt(16)Square root of 164
sqrt(9 + 16)Square root of 255

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?
Standard mathematical order: parentheses first, then exponents, then multiplication and division from left to right, then addition and subtraction from left to right. So 2 + 3 * 4 equals 14, not 20. When in doubt, add parentheses to make your intention explicit - (2 + 3) * 4 equals 20. Parentheses are free and prevent mistakes.
What does the % symbol do?
It depends on context. After + or −, % means percent-of: 200 + 10% equals 220, because ten percent of 200 is added to 200. After × or ÷, or on its own, % means divide by 100: 200 × 10% equals 20 and 25% equals 0.25. When a number follows the %, it is the remainder (modulo) operator from programming: 10 % 3 gives 1, the remainder after dividing 10 by 3. The percentage is always worked out from the number directly before the + or − sign.
Can I use it for homework?
Absolutely - it is great for checking your work. But try solving problems by hand first, then use the calculator to verify. Understanding the steps matters more than the final number, especially before exams where calculators may not be allowed. Think of it as a fast answer key, not a replacement for learning the method.
How do I add a percentage to a number?
Type the number, a plus sign, and the percentage: 200 + 10% gives 220. To take a percentage off, use a minus sign: 500 − 20% gives 400. The percentage is worked out from the number directly before the sign. To find a percentage of a number without adding it, multiply instead: 200 × 10% gives 20.
How do I calculate a square root?
Type sqrt() around the number: sqrt(16) gives 4, and sqrt(9 + 16) gives 5. You can also use the √ key on the keypad, which inserts sqrt( for you. For cube roots, logarithms, or trigonometry, use the scientific calculator instead.
Why does my answer show so many decimal places?
It should not: results are rounded to 6 decimal places and trailing zeros are trimmed, so 2 + 2 shows 4 and 0.1 + 0.2 shows 0.3. A result like 1 ÷ 3 shows 0.333333 because the true answer repeats forever and six places is as far as the display goes. Very large or very small results switch to scientific notation.
What is the difference between this calculator and the scientific calculator?
This one covers everyday arithmetic: add, subtract, multiply, divide, powers, square roots, percentages, and parentheses. The scientific calculator adds trigonometry, logarithms, constants like π and e, degrees/radians modes, and factorials. If your expression needs sin, cos, log, or π, use the scientific calculator; for everything else, this one is faster.
Can I see my previous calculations?
Yes. Every calculation you run appears in the Recent calculations list below the result, most recent first, up to the last 8. Click any line to load that expression back into the box and calculate it again. The list lives only on this page — close the tab and it is gone, and nothing is sent anywhere.

Related tools

💬 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.