Skip to content
Cambridge IGCSE® Mathematics 0580 Extended Number Lesson

Order of Operations

BIDMAS, nested brackets and the fraction bar — learn the rules that decide what a calculation actually means, and how to key it into a calculator without losing marks.

Learning objectives What you will be able to do

  • Apply BIDMAS — brackets, indices, division/multiplication, addition/subtraction — to evaluate any expression correctly.
  • Deal with nested brackets by working from the innermost pair outwards.
  • Recognise the fraction bar and the root sign as hidden brackets and treat them accordingly.
  • Explain why −3² and (−3)² are different numbers.
  • Key a multi-step calculation into a calculator with brackets in the right places.

Key words

BIDMASbracketsindicesnested bracketsfraction bargrouping symbolleft to right

Starter 5 minutes — before we begin

Answer from memory, then open each one to check.

Starter 1Work out 6², 2³ and √49.
6² = 36,  2³ = 8,  √49 = 7
Starter 2Work out 2 × (−3) and 18 − (−6).
2 × (−3) = −6;  subtracting a negative adds, so 18 − (−6) = 24.
Starter 3What does 2(9 − 5) mean, and what is its value?
A number touching a bracket means multiply: 2 × (9 − 5) = 2 × 4 = 8.

Learn Teach · example · together

1 ·  BIDMAS — one agreed order

A calculation such as 3 + 4 × 5 has only one correct value. Work left to right and you get 35; follow the agreed order and you get 23. Your calculator follows the rules, so you must too.

BIDMAS Brackets → Indices → Division and Multiplication → Addition and Subtraction. Some books write BODMAS or PEMDAS — they mean exactly the same thing.
StepWhat it coversRule
Brackets( ), [ ] and anything acting as a bracketInnermost bracket first, working outwards
IndicesPowers x², x³ and roots √xRoots count as indices, so they come here too
Divide and Multiply÷ and ×Equal priority — do them left to right
Add and Subtract+ and −Equal priority — do them left to right
The most common mistake D does not come before M, and A does not come before S — they are two pairs of equal rank, worked left to right. So 20 ÷ 5 × 2 = 4 × 2 = 8 (not 2), and 12 − 4 + 3 = 8 + 3 = 11 (not 5).
Example 1Work out 7 + 3 × (10 − 4)² ÷ 9.
1
Brackets first. 10 − 4 = 6  →  7 + 3 × 6² ÷ 9
2
Indices next. 6² = 36  →  7 + 3 × 36 ÷ 9
3
× and ÷ from left to right — the multiplication is on the left, so it goes first. 3 × 36 = 108  →  7 + 108 ÷ 9
108 ÷ 9 = 12  →  7 + 12
4
Finally the addition. 7 + 12 = 19
19

2 ·  Brackets change the answer

Brackets are not decoration. The same three numbers with the same operations can give four different values, depending only on where the brackets sit.

ExpressionWorkingValue
2 + 3 × 4²2 + 3 × 16 = 2 + 4850
(2 + 3) × 4²5 × 1680
2 + (3 × 4)²2 + 12² = 2 + 144146
((2 + 3) × 4)²(5 × 4)² = 20²400

When brackets sit inside brackets, always start with the innermost pair and work outwards. Square brackets [ ] behave exactly like round ones — they just make the layers easier to see. Remember that a number written immediately before a bracket means multiply: 4[…] = 4 × […].

Example 2Work out 4[2(9 − 5) + 3²].
1
Innermost bracket first. 9 − 5 = 4  →  4[2 × 4 + 3²]
2
Inside the square bracket, apply BIDMAS again: indices, then multiply, then add. 3² = 9
2 × 4 = 8
8 + 9 = 17
3
Now the outside multiplication. 4 × 17 = 68
68

3 ·  Hidden brackets: the fraction bar and the root sign

A horizontal fraction bar is a grouping symbol. Everything on the top is worked out as if it were in a bracket, everything on the bottom likewise, and only then do you divide. The root sign groups in exactly the same way.

3² + 5 × 3√49 − 2 × 2 = 9 + 157 − 4 = 243 = 8 The bar acts as brackets round the whole numerator and the whole denominator
Watch out You cannot take a root term by term: √(9 + 16) = √25 = 5, but √9 + √16 = 3 + 4 = 7.
Example 3Evaluate 2 × 3³ − 45 − 3.
1
Treat the numerator as a bracket. Indices first, then multiply, then subtract. 3³ = 27
2 × 27 = 54
54 − 4 = 50
2
Now the denominator. 5 − 3 = 2
3
Divide last of all. 50 ÷ 2 = 25
25
Watch out Typed on one line this is (2 × 3³ − 4) ÷ (5 − 3). Leave the brackets out and the calculator computes a completely different number.

4 ·  Minus signs, indices and the calculator

−3² is not (−3)² The index binds to the 3 alone, so −3² means −(3²) = −9. Only a bracket makes the minus sign part of the base: (−3)² = (−3) × (−3) = 9. Type both into your calculator now — it will agree.

Keying it in

  • Bracket the whole top and the whole bottom of a fraction, or use the fraction key.
  • Count that open and close brackets match before pressing =.
  • A root key opens a bracket for you — close it in the right place.

The two minus keys

  • (−) makes a number negative; − subtracts.
  • Never round mid-calculation — use Ans or memory and round only the final answer.
Example 4Work out −4² + (−4)² + (−2)³.
1
In −4² the index applies to 4 only: square first, then take the negative. −4² = −(4 × 4) = −16
2
The bracket makes the minus part of the base, and negative × negative is positive. (−4)² = (−4) × (−4) = 16
3
An odd power of a negative stays negative. (−2)³ = (−2)(−2)(−2) = −8
4
Add the three results. −16 + 16 + (−8) = −8
−8

Practice Now you try

Do every question on paper first, then open the solution and mark your own working.

Practice 1Work out (a) 6 + 2 × 7  (b) (6 + 2) × 7  (c) 18 ÷ 3 × 2
1
(a) Multiply before adding. 6 + 14 = 20
2
(b) Bracket first. 8 × 7 = 56
3
(c) ÷ and × rank equally — left to right. 18 ÷ 3 = 6,  then  6 × 2 = 12
(a) 20   (b) 56   (c) 12
Practice 2Work out 5 × (12 − 3 × 3) + 4.
1
Inside the bracket, multiply before subtracting. 3 × 3 = 9  →  12 − 9 = 3
2
Multiply, then add. 5 × 3 = 15  →  15 + 4 = 19
19
Practice 3Work out 2[7 + 3(6 − 4)²].
1
Innermost bracket, then its index. 6 − 4 = 2  →  2² = 4
2
Inside the square bracket: multiply, then add. 3 × 4 = 12  →  7 + 12 = 19
3
Outside multiplication last. 2 × 19 = 38
38
Practice 4Evaluate 4³ − 42 + 3 × 2.
1
Numerator as a bracket. 4³ = 64  →  64 − 4 = 60
2
Denominator as a bracket — multiply before adding. 2 + 6 = 8
3
Divide last. 60 ÷ 8 = 7.5
7.5
Practice 5Use a calculator to work out 8.4 − 1.7²0.6 × 2.5, correct to 3 significant figures.
1
Numerator: index before subtraction. 1.7² = 2.89  →  8.4 − 2.89 = 5.51
2
Denominator. 0.6 × 2.5 = 1.5
3
Divide, keep the full display, round only at the end. 5.51 ÷ 1.5 = 3.6733… → 3.67
3.67 (3 s.f.)
Keying it in Type ( 8.4 − 1.7 x² ) ÷ ( 0.6 × 2.5 ) =, or use the fraction key so the grouping is automatic.

Common mistakes Lose no easy marks

Doing D before M and A before S Division/multiplication are one pair of equal rank, addition/subtraction another. Work each pair left to right: 20 ÷ 5 × 2 = 8, not 2; 12 − 4 + 3 = 11, not 5.
Ignoring the multiplication in 18 − 2(5 − 8) A very common answer is 12, from doing 18 − 2 = 16 first. The bracket gives −3, the multiplication outranks the subtraction, and 18 − 2 × (−3) = 18 + 6 = 24.
Dropping brackets on a fraction The fraction bar groups the whole top and the whole bottom. On one calculator line you must write the brackets yourself — leaving them out silently computes a different expression.
Exam tip Never round part-way through a calculation. Keep the full display, or use Ans and the memory keys, and round only the final answer — to 3 significant figures unless the question says otherwise.

Exit check Prove it before you leave

Exit 1Work out 3 + 4 × 5.
23 — multiplication before addition.
Exit 2Work out −5² and (−5)².
−5² = −25  but  (−5)² = 25.
Exit 3True or false: 20 ÷ 5 × 2 = 2.
False — left to right gives 4 × 2 = 8. Only 20 ÷ (5 × 2) equals 2.

Keep going