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.
When an expression has several operations, everyone has to agree which comes first, or the same expression would mean different numbers. The agreed order:
- Parentheses (brackets)
- Exponents (orders, powers)
- Multiplication and Division, left to right
- Addition and Subtraction, left to right
Worked example
8 + 2 × (7 − 3)² ÷ 4
- Parentheses: 7 − 3 = 4, so 8 + 2 × 4² ÷ 4
- Exponents: 4² = 16, so 8 + 2 × 16 ÷ 4
- Multiply/divide left to right: 2 × 16 = 32, then 32 ÷ 4 = 8, so 8 + 8
- Add: 16
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.