The order of operations
When an expression contains more than one operation, everyone has to agree on the order. Most people learn it as PEMDAS or BODMAS.
- Parentheses (or Brackets)
- Exponents (or Orders)
- Multiplication and Division, from left to right
- Addition and Subtraction, from left to right
Multiplication does not automatically happen before division. They have the same priority, so work from left to right. The same is true for addition and subtraction.
Worked example
Evaluate 8 + 2 × (5 − 3)².
8 + 2 × (5 − 3)²
8 + 2 × 2²
8 + 2 × 4
8 + 8
16
The answer is 16.
A common mistake
Consider 6 ÷ 2 × 3.
- Doing the multiplication first gives
6 ÷ 6 = 1. - Working left to right gives
3 × 3 = 9.
The correct answer is 9, because division and multiplication have the same priority.
Brackets are the only reliable way to make an expression say exactly what you mean. When in doubt, add them.
Practice
| Expression | First step | Result |
|---|---|---|
3 + 4 × 2 |
4 × 2 |
11 |
(3 + 4) × 2 |
3 + 4 |
14 |
20 − 6 ÷ 2 |
6 ÷ 2 |
17 |
2³ + 1 |
2³ |
9 |
Next, see how these rules apply when the answer is a fraction, or jump ahead to linear equations.