Skip to content
MasterMath

Order of Operations Calculator

Solve an expression step by step in the correct order, and see what you would have got working blindly from left to right.

Result

—

Result—
Operations—
If you worked left to right—

How this was worked out

    The rule

    brackets, then exponents, then × and ÷, then + and −

    Why it works

    The order of operations is a convention, not a law of nature, but it is a universal one: without it the same expression would mean different things to different people. Brackets first, then exponents, then multiplication and division left to right, then addition and subtraction.

    How to do it by hand

    1. Work out anything inside brackets first
    2. Then any exponents
    3. Then multiplication and division, left to right
    4. Finally addition and subtraction, left to right

    What is worth knowing

    The detail that trips people is that multiplication and division share a rank, as do addition and subtraction — they are worked left to right, not multiplication before division. That is why 8 ÷ 2 × 4 is 16 and not 1. The viral expressions that circulate periodically all exploit exactly this ambiguity, usually with implied multiplication next to a bracket, where the convention genuinely is not universal. The honest answer to those is that the expression is badly written: an extra pair of brackets removes the argument entirely.

    Frequently asked questions

    What is the correct order of operations?

    Brackets, exponents, then multiplication and division left to right, then addition and subtraction left to right.

    Does multiplication come before division?

    No. They share the same rank and are worked left to right. That is why 8 ÷ 2 × 4 is 16.

    Why do viral maths puzzles cause arguments?

    Because they exploit implied multiplication next to brackets, where the convention genuinely varies. The expression is badly written.

    Is the order of operations a mathematical law?

    No, it is a convention. But it is universal enough that departing from it means being misunderstood.