Higher – Cosine rule

Part ofMathsGeometry and measure

Key points about the cosine rule

Bullet points represented by lightbulbs
  • The cosine rule is a used to find a missing side or angle in a triangle when two sides and, or all the lengths of all three sides, are known.

  • There are two versions of the cosine rule:

    • Find an unknown side using 𝑎² = 𝑏² + 𝑐² – 2𝑏𝑐 cos𝐴
    • Find an unknown angle using cos𝐴 = \(\frac{𝑏² + 𝑐² – 𝑎²}{2𝑏𝑐}\)
  • Scientific calculators need to be used for trigonometry and should be in degrees mode. Often there is a small D or DEG at the top of the calculator screen. If not, go into the calculator settings to change the angle units to degrees.

Make sure you are confident with finding unknown sides and angles in right-angled triangles to be successful with non-right-angled .

Back to top

How to find an unknown side using the cosine rule

A triangle shaded blue. The angels are drawn and shaded orange and are labelled A, B and C. Line AC is labelled b; AB is labelled c; BC is labelled a.
Image caption,
In the triangle, the opposite sides and angles are labelled using the uppercase and lowercase version of the same letter. For example, side 𝑎 is opposite angle 𝐴.

To find an unknown side in a triangle, two sides and must be known.

Label the angles and sides of the triangle and use the formula 𝑎² = 𝑏² + 𝑐² – 2𝑏𝑐 cos𝐴 to find the missing side.

If the of the triangle are not called 𝐴, 𝐵 and 𝐶, it is common practice to rename them to assist with the into the formula. Make sure vertex 𝐴 is opposite the side that needs to be calculated.

Answers should use the given notation in the question.

A triangle shaded blue. The angels are drawn and shaded orange and are labelled A, B and C. Line AC is labelled b; AB is labelled c; BC is labelled a.
Image caption,
In the triangle, the opposite sides and angles are labelled using the uppercase and lowercase version of the same letter. For example, side 𝑎 is opposite angle 𝐴.
Piece of paper with the word remember written on it



Follow the worked example below

GCSE exam-style questions

  1. Calculate the length of side 𝑦.

Give the answer to one decimal place.

A triangle with the One side labelled 8 centimetres; the opposite side is lanelled 10 centimetres. The third and longest side is labelled y. The angle between side one and the opposite side is 135 degrees.

  1. Calculate the length of 𝑋𝑌.

Give the answer to one decimal place.

A triangle with the points labelled X, Y and Z. Line XZ is labelled 6 metres; ZY is labelled 9 metres; XY has no label. Angle XZY is 67 degrees.

Back to top

How to re-arrange the cosine formula

To use the cosine formula to find a missing angle in a triangle, the formula must be re-arranged to become:

cos𝐴 = \(\frac{𝑏² + 𝑐² – 𝑎²}{2𝑏𝑐} \)

Find out more about re-arranging the cosine formula below

Back to top

How to find an unknown angle using the cosine rule

To find an unknown angle in a triangle, the length of all three sides must be known.

Find the missing angle by labelling the angles and sides of the triangle and using the formula:

cos𝐴 = \(\frac{𝑏² + 𝑐² – 𝑎²}{2𝑏𝑐} \)

This formula has vertex 𝐴 as the angle to be calculated. If the variables used for the vertices are not 𝐴, 𝐵 and 𝐶, rename them to fit.

Piece of paper with the word remember written on it



  • When finding angles using trigonometry, the inverse function is used.

Follow the worked example below

GCSE exam-style questions

  1. Calculate the size of angle 𝑍.

Give the answer to one decimal place.

A triangle with the points labelled X, Y and Z. Line XZ is labelled 6 metres; ZY is labelled 8 metres; XY is labelled 11 metres. Angle XZY is drawn.

  1. Calculate the size of angle 𝐶.

Give the answer to one decimal place.

A triangle with the points labelled A, B and C. Line AC is labelled 7 point 5 centimetres; AB is labelled 4 point 2 centimetres; BC is labelled 7 centimetres. Angle ACB is drawn.

Back to top

Check your understanding

Back to top

Quiz – Cosine rule

Practise what you've learned about the cosine rule with this quiz.

Now you've revised the cosine rule, why not look at combined transformations and invariant points?

Back to top

More on Geometry and measure

Find out more by working through a topic