Math Calculator
Type a basic arithmetic calculation and get the answer, with brackets, powers, square roots and percent handled in the right order.
Type a calculation such as 2 + 3 x 4 and the answer appears at once: 14, because multiplication comes before addition. Use brackets to change the order, so (2 + 3) x 4 is 20. The keypad covers the usual keys plus powers, square roots and percent.
This calculator is for everyday arithmetic and homework checking. It does not solve equations, handle variables or keep exact fractions, and it rounds the answer to 12 digits, so for algebra, very large integers or financial records that must reconcile to the cent, use a tool built for that.
Answer
14
Order of operations: brackets, then powers, then multiplication and division from left to right, then addition and subtraction from left to right. A leading minus applies after the power, so -2^2 is -4. Shown to 12 digits.
Embed this calculator on your site →
About the Math Calculator
Following the order of operations means everyone gets the same answer from the same line of math. Work inside brackets first, starting with the innermost. Then do powers. Then do multiplication and division together, from left to right, and last do addition and subtraction together, from left to right. That is why 2 + 3 x 4 is 14 and not 20. Two rules catch people out. A minus sign in front is worked out after the power, so -2^2 is -4; write (-2)^2 to square negative two and get 4. Stacked powers are worked from the right, so 2^3^2 means 2^(3^2), which is 2^9, or 512. The percent key divides by 100, so 15% x 80 is 12. Computers cannot store most decimals exactly, so some calculators show 0.1 + 0.2 as 0.30000000000000004; this one rounds the answer to 12 digits, so it shows 0.3. Everything runs in your browser.
Frequently asked questions
What is the order of operations?+
Brackets first, then powers, then multiplication and division from left to right, then addition and subtraction from left to right. Many students remember it as PEMDAS or BODMAS. The left-to-right part matters: 10 / 4 x 2 is 5, not 1.25.
How do I work out a percentage of a number?+
Type the percentage with the percent key, then multiply. 15% x 80 gives 12. To add 15% to 80, type 80 x 1.15, or 80 + 15% x 80, both of which give 92.
Can I multiply without the x key?+
Yes, before a bracket, a square root or pi. 2(3 + 4) is read as 2 x (3 + 4), which is 14. Two plain numbers side by side, such as 2 3, show an error rather than a guessed answer.
Why do I get an error instead of an answer?+
Some calculations have no real answer, such as dividing by zero or taking the square root of a negative number. The calculator shows a short message saying why. Thousands separators like 1,000 are also rejected, because a comma means a decimal point in many countries; type 1000 instead.
Order of operations: OpenStax, Prealgebra 2e (2020), section 2.1, Use the Language of Algebra: grouping symbols first, then exponents, then multiplication and division left to right, then addition and subtraction left to right. The leading-minus and stacked-power rules are common algebra conventions, not taken from this book.
Embed this calculator
Free to use on your own site. Paste this snippet where you want the math calculator to appear — it resizes itself automatically.
<iframe
src="https://manytools.co/embed/math-calculator"
title="Math Calculator by ManyTools"
data-manytools="math-calculator"
width="100%"
height="640"
loading="lazy"
style="border:0;width:100%;max-width:720px"></iframe>
<script>
(function () {
window.addEventListener("message", function (e) {
if (e.origin !== "https://manytools.co") return;
var d = e.data || {};
if (d.type !== "manytools:embed:height" || d.slug !== "math-calculator") return;
var f = document.querySelector('iframe[data-manytools="math-calculator"]');
if (f && d.height) f.style.height = d.height + "px";
});
})();
</script><a href="https://manytools.co/math/math-calculator">Math Calculator by ManyTools</a>