Order of operations
Why a calculation has to be read in a particular order, how brackets and powers change it, and how to run it backwards.
Where you will use this: working out a bill with several parts (a call-out fee plus hours at a rate), typing a long sum into a calculator, and spreadsheet formulas.
Warm-up: what do you already know?
Quick warm-up. No marks.
A gamer starts with 5 coins and wins 2 coins on each of 6 levels. The total is 5 + 2 × 6. How many coins is that?
- Is it (5 + 2) × 6 or 5 + (2 × 6)? Everyone must get the same answer.
- You added first: 7 × 6. Multiply before you add.
Multiplication comes before addition: 2 × 6 = 12 coins won, then 5 + 12 = 17.
Quick recap of earlier topics (skip if you are happy)
Work out 6 × 7.
- Six groups of seven.
- That is 6 × 6. Count six groups of seven.
- You added 6 + 7. This is a multiplication.
6 × 7 = 42.
Work out 56 − 19.
- 56 − 20 = 36, then add 1 back.
- That takes away only 9. Take away 20, then add 1 back.
56 − 19 = 37.
Work out 90 ÷ 6.
- 6 × 15 = 90.
- 6 × 14 = 84, not 90. Try 6 × 15.
- 6 × 16 = 96, not 90. Try 6 × 15.
90 ÷ 6 = 15.
1. Why there has to be an order
What is 3 + 4 × 2? One person adds first and gets 14. Another multiplies first and gets 11. Maths must mean the same to everybody, so there is an agreed order for the operations. This is a convention: people agreed it so that everyone gets the same answer from the same calculation. It is not a law of nature. The order is BIDMAS:
Key idea: multiplication and division have equal priority. Addition and subtraction have equal priority. When operations have equal priority, work from left to right.
10 − 2 + 3 = 8 + 3 = 11
8 ÷ 2 × 4 = 4 × 4 = 16
Try it: work out 2 + 3 × 4.
Worked example
Work out 20 − 6 ÷ 2.
- Divide before you subtract: 6 ÷ 2 = 3.
- 20 − 3 = 17.
A scientific calculator gives 17 too. If your calculator gives 7, it is working strictly from left to right and ignoring the order.
Check your knowledge: the order
Work out 7 + 2 × 4.
- Multiply first.
- You added first: 9 × 4. Multiply before you add.
2 × 4 = 8, then 7 + 8 = 15.
Work out 20 − 6 ÷ 2.
- Divide first.
- You subtracted first. Divide before you subtract.
6 ÷ 2 = 3, then 20 − 3 = 17.
A player has 10 lives, loses 2 and then wins 3 back. Work out 10 − 2 + 3.
- Addition and subtraction have the same priority, so work from left to right.
- You did 2 + 3 first. Go left to right: 10 − 2 first.
10 − 2 = 8, then 8 + 3 = 11.
Work out 8 ÷ 2 × 4.
- Multiplication and division have the same priority, so work from left to right.
- You did 2 × 4 first. Go left to right: 8 ÷ 2 first.
8 ÷ 2 = 4, then 4 × 4 = 16.
A playlist has 5 songs. You add 6 albums of 3 songs each, then delete 4 songs. Work out 5 + 6 × 3 − 4.
- Multiplication first: 6 × 3.
- Then left to right.
- You added 5 + 6 first. Multiply first.
6 × 3 = 18, then 5 + 18 = 23, then 23 − 4 = 19.
2. Brackets and powers
Brackets mean “do this first”. They change the normal order.
(3 + 4) × 2 = 7 × 2 = 14
A fraction line works like brackets. Work out the numerator (top) and the denominator (bottom) first, then divide. A square root sign works the same way: work out what is under it first.
Indices (powers) come next, before multiplying.
3 + 2² = 3 + 4 = 7
(3 + 2)² = 5² = 25
Key idea: a power belongs only to the number just before it. In 2 × 3² the square belongs to the 3. So 3² = 9 first, then 2 × 9 = 18. To square both numbers, use brackets: (2 × 3)² = 36.
Try it: work out 4 + 3².
Worked example
Work out 5 + (6 − 2)² × 3.
- Brackets: 6 − 2 = 4.
- Indices: 4² = 16.
- Multiply: 16 × 3 = 48.
- Add: 5 + 48 = 53.
Now you finish it: a fraction bar
Work out 12 + 8 over 4.
- The fraction line works like brackets. Work out the numerator first: 12 + 8 = 20.
- Then 20 ÷ 4 = ___.
Check my answer
20 ÷ 4 = 5. Without the line, 12 + 8 ÷ 4 would be 12 + 2 = 14. The line changes the order.
Check your knowledge: brackets and powers
Zoe mixes 2 batches of paint. Each batch has 5 ml of red and 3 ml of blue. Work out 2 × (5 + 3), the total amount of paint in millilitres.
- Brackets first: 5 + 3.
- You did 2 × 5 + 3. Do the brackets first.
5 + 3 = 8, then 2 × 8 = 16.
Work out (12 − 4) ÷ 2.
- Brackets first.
- You did 4 ÷ 2 first. Brackets come first.
12 − 4 = 8, then 8 ÷ 2 = 4.
Work out 3 + 2².
- Powers before adding: 2² = 4.
- You squared 3 + 2. The square belongs only to the 2.
- You added first and then doubled. 2² means 2 × 2, added to 3.
2² = 4, then 3 + 4 = 7.
Work out (3 + 2)².
- Brackets first: 3 + 2 = 5.
- You squared only the 2. The brackets mean add first.
- You doubled 5. Squaring is 5 × 5.
5² = 25.
Work out 2 × 3².
- Square the 3 first.
- You squared 2 × 3. The square belongs only to the 3.
- You worked out 3 × 2 = 6 for the square. 3² = 3 × 3 = 9.
3² = 9, then 2 × 9 = 18.
Work out 12 + 8 over 4.
- The numerator (the top) of a fraction is worked out first.
- You did 8 ÷ 4 first. The fraction line groups 12 + 8.
12 + 8 = 20, then 20 ÷ 4 = 5.
Flip it: build it and unpick it
So far you have gone one way. Now run it backwards. Same idea, other direction.
Forwards
Given 2 + 3 × 4, work out the answer: 14.
Follow the rules to get an answer.
Backwards
Given the answer 20 and the numbers 2, 3 and 4, put in brackets to make it work: (2 + 3) × 4 = 20.
Choose the brackets (or operations) to hit a target.
Key idea: you can go forwards (work out the answer). You can go backwards (decide where the brackets go, or find a missing number). Going backwards also checks a calculation.
For a missing number, undo the operations in the opposite order. For 3 × (? + 2) = 21: divide 21 by 3, then take 2 away.
Check your knowledge: flip it
Where must the brackets go to make 2 + 3 × 4 = 20?
- You need the addition done first.
(2 + 3) × 4 = 5 × 4 = 20.
Which operation sign, in place of the ?, makes 6 ? 2 + 3 = 6 true?
- Try each one in turn, using the order of operations.
6 ÷ 2 + 3 = 3 + 3 = 6.
3 × (? + 2) = 21. Find the missing number.
- Undo the × 3 first: 21 ÷ 3.
- Then undo the + 2.
- That is 21 ÷ 3, the whole bracket. Now take away 2.
- That is 21 − 2. Undo the × 3 first.
21 ÷ 3 = 7, and 7 − 2 = 5. Check: 3 × (5 + 2) = 21.
? ÷ 4 + 1 = 6. Find the missing number.
- Undo the + 1 first: 6 − 1.
- Then undo the ÷ 4.
- You undid ÷ 4 but forgot to undo the + 1.
- That is 6 − 1. Now undo ÷ 4.
6 − 1 = 5, and 5 × 4 = 20. Check: 20 ÷ 4 + 1 = 6.
Leo works out the total for a relay kit as 9 + 18 ÷ 3 and gets 9. What is the correct answer?
- Divide first.
- That is Leo's answer. He added 9 + 18 first.
18 ÷ 3 = 6, then 9 + 6 = 15. Leo added first (27 ÷ 3 = 9).
Spot the mistake
Ali says: “6 + 4 × 2 = 20.” What went wrong?
- Which operation should be done first?
He added first, not multiplied first. 4 × 2 = 8, then 6 + 8 = 14.
Bea says: “12 ÷ 3 × 2 = 2.” What went wrong?
- Equal priority means left to right.
She did 3 × 2 first. ÷ and × are equal, so go left to right: 12 ÷ 3 = 4, then 4 × 2 = 8.
Cal says: “3² = 6.” What went wrong?
- What does the small 2 mean?
He doubled the 3. 3² = 3 × 3 = 9: the little 2 says how many 3s to multiply.
Check your knowledge: mixed review
Work out 7 + 3 × (8 − 2).
- Brackets first, then multiply, then add.
- You added 7 + 3 first. Multiply before you add.
8 − 2 = 6, 3 × 6 = 18, 7 + 18 = 25.
Work out 50 − 3² × 2.
- Power, then multiply, then subtract.
- You did 50 − 9 first. Multiply before you subtract.
3² = 9, 9 × 2 = 18, 50 − 18 = 32.
Work out 2² + 3².
- Square each, then add.
- That is (2 + 3)². Square each number on its own.
4 + 9 = 13.
Work out (10 − 4)² ÷ 3.
- Brackets, then the power, then divide.
- You did 6 ÷ 3 first. Powers come before division.
10 − 4 = 6, 6² = 36, 36 ÷ 3 = 12.
Work out 36 ÷ (2 + 4) × 3.
- Brackets first.
- Then left to right.
- You did 6 × 3 first. Go left to right: 36 ÷ 6.
- That is 36 ÷ 6. Now multiply by 3.
- You ignored the brackets. Do 2 + 4 first.
2 + 4 = 6, 36 ÷ 6 = 6, 6 × 3 = 18.
Exam style
No calculator. Marks are given for using the right order of operations.
Not sure what a question word means? Question words explained.
Write your working on paper, then type the answer.
(a) [1 mark] Work out 3 + 4 × 5².
- Power first, then multiply, then add.
- You added 3 + 4 first. Power, then multiply, then add.
5² = 25, 4 × 25 = 100, 3 + 100 = 103.
(b) [2 marks] Work out (12 − 3)² ÷ 3.
- Brackets: 12 − 3.
- That is only the bracket. Now square it and divide by 3.
- That stops before dividing by 3.
9² = 81 and 81 ÷ 3 = 27.
- M1 for the bracket first: 12 − 3 = 9, then 9² = 81
- A1 for 81 ÷ 3 = 27
(c) [2 marks] Sam works out 6 + 18 ÷ 3 and gets 8. What is the correct answer?
- Divide before you add.
- That is Sam's answer: adding first.
18 ÷ 3 = 6, then 6 + 6 = 12.
- M1 for dividing first: 18 ÷ 3 = 6
- A1 for 6 + 6 = 12
Going further
Work out 2 + 10 over 3 + 4 × 2.
- Numerator first: 2 + 10 = 12.
- Then 12 ÷ 3, then add 4 × 2.
- The top is 12. 12 over 3 = 4, not 12.
12 over 3 = 4 and 4 × 2 = 8. 4 + 8 = 12.
Work out 2 × 3² ÷ 6 + (−1).
- Power, then left to right. Adding (−1) is the same as subtracting 1.
- Adding −1 takes 1 away. It does not add 1.
- You did not square the 3. 3² = 9, so 2 × 9 = 18.
3² = 9, 2 × 9 = 18, 18 ÷ 6 = 3, 3 + (−1) = 2.
A classic puzzle: use four 4s, once each, with the usual operations and brackets, to make a target number. For example, 4 × 4 + 4 ÷ 4 = 17. Which sign goes in the gap marked [ ] to make 4 × 4 [ ] (4 ÷ 4) = 15?
- Is 15 bigger or smaller than 4 × 4?
- What is 4 ÷ 4? So 4 × 4 has to change by that much, in which direction?
- Try each sign in the gap. Brackets first: (4 ÷ 4) = 1, then 16 and 1 with each sign.
(4 ÷ 4) = 1 and 4 × 4 = 16. To get 15, take 1 away: 4 × 4 − (4 ÷ 4) = 16 − 1 = 15, so the sign is −. Can you make 7, or 0, or 8 with four 4s too?
Negatives, powers and hidden brackets Higher
Two places where the order catches people out.
A minus sign and a power. The power belongs to the number just before it, so in −3² the square belongs to the 3 only: −3² = −(3²) = −9. With brackets, (−3)² = (−3) × (−3) = 9. Calculator note: some calculators treat the minus sign as part of the number and give 9 for −3², and others give −9. To square −3, always put in the brackets, (−3)², so it does not matter which kind of calculator you have.
Hidden brackets. A fraction line groups its numerator and its denominator. On one line, the same thing needs brackets. 1 over 2x means half of x, which is (1/2)x = x/2. But typed as 1/2x, some calculators and people read it as 1/(2x), which is different. When you type a fraction on one line, put the brackets in.
Work out −3², using the standard order of operations.
- Which number does the little 2 belong to: the 3, or the −3?
- Do the power first, then apply the minus sign.
- 3² = 9. Now put the minus in front.
- That is (−3)², with brackets. Without brackets the square belongs only to the 3, and then the minus is applied.
- That is −3 × 2. The power means 3 × 3.
The power comes before the minus sign: 3² = 9, so −3² = −9.
Work out −2² + (−2)².
- Are the two parts the same, or does one have brackets?
- Work out each part on its own. Power first in each.
- −2² = −4 and (−2)² = 4. Now add them.
- You treated both as +4. Without brackets, −2² = −4.
- You treated both as −4. With brackets, (−2)² = (−2) × (−2) = 4.
−2² = −4 and (−2)² = 4. −4 + 4 = 0.
When x = 6, work out the value of (1/2)x (half of x).
- What does “half of x” mean when x is 6?
- Put 6 in for x and do the bracket first.
- (1/2) × 6 = ?
- That is 1/(2x), with 2x as the denominator. The brackets in (1/2)x group only the half.
- That doubles x. A half of 6 is smaller than 6.
(1/2) × 6 = 3. (By contrast 1/(2x) would be 1/12, which is why the brackets matter.)
Why it works
- An agreed order means everyone gets the same answer from the same calculation, on paper and on a calculator.
- Brackets, fraction bars and root signs all say “do this part first”.
- Equal priority means left to right: division and multiplication share a level, and so do addition and subtraction.
Common traps
- Working only from left to right.
- Doing all the multiplication before any division. They have equal priority.
- Squaring more than the number just before the power.
- Forgetting that a fraction bar acts like brackets.
- Undoing steps in the wrong order when finding a missing number.