Order of Operations Calculator

Work through an expression in the correct order and see each step, so you can tell where a different answer came from.

Correct answer 11
Brackets, then powers, then multiply and divide, then add and subtract
The expression 6 + 2 + 3
Which operation comes first Same level, so left to right: + first
Step by step 1) 6 + 2 = 8 2) 8 + 3 = 11
If you just went left to right 11

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Order of Operations Calculator does

Use this order of operations calculator to work through an expression in the correct order and see each step, so you can tell where a different answer came from. Fill in all 5 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for settling a disagreement about an expression doing the rounds online. Companion tools to this one live on FreeToolStation.org.

How to use it

  1. Enter three numbers and pick the two operations between them.
  2. The correct answer appears, with the operation that has to go first named.
  3. The step rows show the order actually used.
  4. The last row shows what you would have got by working left to right, which is where most disagreements come from.

How it works

The order of operations is a convention, not a discovery: everyone agrees to read an expression the same way so that 6 + 2 × 3 has one answer. Powers are done first, then multiplication and division, then addition and subtraction, and operations at the same level are taken left to right. PEMDAS, BODMAS and BEDMAS are the same rule with different initials — the P and the B are brackets, the E and the O are exponents or "of".

The letters mislead in one specific way, and it is worth being blunt about it. The M before the D does not mean multiplication outranks division; they are the same level and go left to right. Same for addition and subtraction. Read as a strict sequence, PEMDAS gives the wrong answer to 8 ÷ 2 × 4 — it is 16, not 1.

The left-to-right row is shown deliberately. When two people get different answers to the same expression, it is almost always because one of them worked straight across. Seeing both numbers side by side turns an argument into an explanation.

Brackets exist precisely to override all of this. If you want the addition first, write (6 + 2) × 3, and the convention stops mattering.

When to use it

  • Settling a disagreement about an expression doing the rounds online.
  • Checking homework where the method matters more than the number.
  • Understanding why a spreadsheet formula returns something unexpected.

Common mistakes to avoid

  • Reading PEMDAS as a strict queue and doing all multiplication before any division.
  • Working left to right regardless, which only agrees with the convention by accident.
  • Assuming a minus sign in front of a power applies first — −3² is −9, because the power binds tighter than the sign.

Frequently asked questions

Is it PEMDAS or BODMAS?

Both, and they mean the same thing. PEMDAS is the American wording, BODMAS and BEDMAS the British and Canadian ones. The rule does not change.

Does multiplication really come before division?

No. They are the same level and are done left to right. The M appearing before the D in the acronym is the single most common source of wrong answers.

What about brackets inside brackets?

Work from the innermost outwards. This page handles a three-number expression without brackets; for nested ones use the scientific calculator.

Related tools

See all math & statistics calculators →