Resources For Teachers For Tutors For Students & Parents Pricing
Year 11 General Applications Of Trigonometry

The Cosine Rule

20 practice questions 2 video lessons Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 2 video(s)
  • The Cosine Rule - GCSE Higher Maths Watch
  • Law of Cosines, Finding Angles & Sides, SSS & SAS Triangles - Trigonometry Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The cosine rule is a generalisation of Pythagoras' theorem to any triangle: c2=a2+b2βˆ’2abcos⁑C. Use it whenever the sine rule can't β€” when you have SAS (two sides and the included angle) or SSS (all three sides).

The cosine rule is a generalisation of Pythagoras' theorem to any triangle. It picks up where the sine rule can't help β€” when you don't have a matched side-and-opposite-angle pair.

  • To find a side: c2=a2+b2βˆ’2abcos⁑C, where a and b are the two sides bracketing angle C, and c is the side opposite C.
  • To find an angle: rearrange to make the cosine the subject: cos⁑C=a2+b2βˆ’c22ab. The angle on the left is the one opposite the side that's squared on the right.

Two situations where the cosine rule is needed:

  • SAS β€” given two sides and the included angle. Use the first form to find the third side.
  • SSS β€” given all three sides. Use the second form to find any angle.

Connection to Pythagoras: if C=90∘, then cos⁑C=0, and the formula collapses to c2=a2+b2 β€” Pythagoras' theorem. The cosine rule is the same idea with a correction term βˆ’2abcos⁑C for non-right angles.

Triangle showing sides a, b adjacent to angle C, with side c opposite A non-right-angled triangle with vertex C at the top, vertices A and B at the bottom. Sides a and b extend from C down to B and A. The opposite side c lies across the bottom between A and B. C A B c a b
SAS: a and b bracket angle C; c is opposite. Use c2=a2+b2βˆ’2abcos⁑C
Triangle showing all three sides known, with the angle opposite the longest side being the largest A general triangle with all three sides labelled p equals 7, q equals 9, r equals 12. The largest angle is opposite the longest side (12), and is marked at the vertex opposite that side. r = 12 p = 7 q = 9 largest
SSS: largest angle is opposite the longest side

Cosine rule β€” finding a side (SAS)

c2=a2+b2βˆ’2abcos⁑C
c2=a2+b2βˆ’2abcosC

Cosine rule β€” finding an angle (SSS)

Rearrange to make the cosine the subject. The angle on the left is the one opposite the side that's squared with a minus sign on the right:

cos⁑C=a2+b2βˆ’c22ab
cosC=a2+b2βˆ’c22ab

Connection to Pythagoras

When C=90∘, cos⁑C=0, so the cosine rule reduces to:

c2=a2+b2(Pythagoras)
c2=a2+b2
Combined sine + cosine: many problems use the cosine rule first to find one missing side or angle, then the sine rule for any further unknowns. Use the cosine rule sparingly β€” it's slower than the sine rule when both work.

How to use the cosine rule

  1. Label the triangle: each side has the lowercase of its opposite vertex.
  2. Identify the situation β€” SAS (two sides + included angle) calls for the first form; SSS (three sides) calls for the rearranged form.
  3. Substitute carefully β€” for SSS, the angle on the left is the one opposite the squared side with the minus sign.
  4. Solve β€” take the square root (positive only) for a side, or cosβˆ’1 for an angle.
Example 1 β€” SAS, find a side
In triangle ABC, AB=8 cm, AC=11 cm, and ∠A=62∘. Find BC (1 dp).
Solution

Sides 8 and 11 bracket angle A=62∘, so BC=a:

62Β° A B C a = ? 11 8
a2=82+112βˆ’2β‹…8β‹…11β‹…cos⁑62∘
a2=64+121βˆ’176cos⁑62∘
a2β‰ˆ102.36
aβ‰ˆ10.1 cm
a=102.36β‰ˆ10.1 cm
Example 2 β€” SSS, find an angle
In triangle PQR, p=7, q=9, r=12. Find ∠P (nearest degree).
Solution

∠P is opposite p=7, so put p2 with the minus sign on top:

cos⁑P=q2+r2βˆ’p22qr
cos⁑P=81+144βˆ’49216
cos⁑P=176216β‰ˆ0.8148
Pβ‰ˆ35∘
P=cosβˆ’1(0.8148)β‰ˆ35Β°
Example 3 β€” Largest angle
A triangle has sides 7, 9, and 13 cm. Find the largest angle (nearest degree).
Solution

The largest angle is opposite the longest side 13, so put 132 with the minus sign on top:

cos⁑θ=72+92βˆ’1322β‹…7β‹…9
cos⁑θ=49+81βˆ’169126
cos⁑θ=βˆ’39126β‰ˆβˆ’0.3095
ΞΈβ‰ˆ108∘

The negative cosine confirms the angle is obtuse.

ΞΈ=cosβˆ’1(βˆ’0.3095)β‰ˆ108Β°
Example 4 β€” Bearing problem
A ship sails from port A on bearing 075∘ for 45 km to B, then on bearing 140∘ for 60 km to C. The angle ∠ABC=115∘. Find AC (1 dp).
Solution

Sketch β€” sides AB=45 and BC=60 bracket the angle at B:

115Β° A B C 45 km 60 km AC = ?
AC2=452+602βˆ’2(45)(60)cos⁑115∘
AC2=2025+3600βˆ’5400cos⁑115∘
AC2β‰ˆ7907
ACβ‰ˆ88.9 km
AC=7907β‰ˆ88.9 km

Common pitfalls

The angle must be the included angle. The angle in cos⁑C must be the angle between sides a and b. Using a non-included angle gives the wrong answer.
Obtuse angles give negative cosines β€” that's correct. If C>90∘, cos⁑C is negative, so βˆ’2abcos⁑C is positive, making c2 larger. The side opposite an obtuse angle is always the longest.
SSS: largest angle opposite longest side. If you want the largest angle quickly, put the longest side as c in the rearranged formula. A negative cosine confirms it's obtuse.
Don't use cosine rule when sine rule works. If you have a matched side-and-opposite-angle pair, the sine rule is faster. Use the cosine rule only when the sine rule can't help (SAS or SSS).

Frequently asked questions

What is the cosine rule?

The cosine rule for a side: c2=a2+b2βˆ’2abcos⁑C, where a and b are two sides of a triangle, C is the angle between them, and c is the side opposite C. It works for any triangle and generalises Pythagoras' theorem (which is just the special case C=90∘).

When do I use the cosine rule?

Use the cosine rule when the sine rule can't help: either SAS (two sides and the included angle, find the third side) or SSS (all three sides, find any angle). If you have a matched side-and-opposite-angle pair, the sine rule is faster.

How is the cosine rule related to Pythagoras?

When C=90∘, cos⁑C=0, so the cosine rule reduces to c2=a2+b2 β€” Pythagoras' theorem. The cosine rule is the same idea generalised to any triangle, with the correction term βˆ’2abcos⁑C accounting for non-right angles.

How do I rearrange the cosine rule to find an angle?

Make the cosine the subject: cos⁑C=a2+b2βˆ’c22ab. The angle you're finding is opposite the side that's squared with the minus sign on the right. Then apply cosβˆ’1 on your calculator.

Why is the cosine negative for an obtuse angle?

Cosine is negative for angles between 90∘ and 180∘. So if your cos⁑C calculation gives a negative value, C is obtuse β€” this is correct, not a mistake. The side opposite an obtuse angle is always the longest in the triangle.

What's the difference between SAS and SSA?

SAS (side-angle-side): two sides and the angle between them. Use the cosine rule. SSA (side-side-angle): two sides and an angle not between them. Use the sine rule β€” but watch out for the ambiguous case.