← All guides

Order of operations (PEMDAS / BODMAS) with examples

Parentheses, exponents, multiplication and division left to right, addition and subtraction left to right. Worked examples and the classic traps.

Video lesson: Order of operations (free, with subtitles)

When an expression has several operations, everyone has to agree which comes first, or the same expression would mean different numbers. The agreed order:

  1. Parentheses (brackets)
  2. Exponents (orders, powers)
  3. Multiplication and Division, left to right
  4. Addition and Subtraction, left to right

Worked example

8 + 2 × (7 − 3)² ÷ 4

The biggest trap: M and D are a tie

12 ÷ 3 × 2 = 4 × 2 = 8, not 12 ÷ 6 = 2. Multiplication does not come before division; you go left to right. The same for addition and subtraction: 10 − 4 + 3 = 9, not 3.

Negative signs and exponents

−3² = −9 (square 3, then apply the minus), but (−3)² = 9. The parentheses decide.

Fraction bars

A fraction bar groups like parentheses: (6 + 4) / (7 − 2) = 10 / 5 = 2. Work out the top and bottom first.

Practice it free

Watch the full lesson and try questions with new numbers every time, with the worked steps shown if you get one wrong.

Practice: Order of operations All courses