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

The Cosine Rule

10 practice questions 2 video lessons Theory + worked examples

Theory

The cosine rule is a generalisation of Pythagoras' theorem to any triangle: c2=a2+b22abcosC. 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+b22abcosC, 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: cosC=a2+b2c22ab. 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 cosC=0, and the formula collapses to c2=a2+b2 — Pythagoras' theorem. The cosine rule is the same idea with a correction term 2abcosC 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+b22abcosC
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+b22abcosC
c2=a2+b22abcosC

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:

cosC=a2+b2c22ab
cosC=a2+b2c22ab

Connection to Pythagoras

When C=90, cosC=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 cos1 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+1122811cos62
a2=64+121176cos62
a2102.36
a10.1 cm
a=102.3610.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:

cosP=q2+r2p22qr
cosP=81+14449216
cosP=1762160.8148
P35
P=cos1(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+92132279
cosθ=49+81169126
cosθ=391260.3095
θ108

The negative cosine confirms the angle is obtuse.

θ=cos1(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+6022(45)(60)cos115
AC2=2025+36005400cos115
AC27907
AC88.9 km
AC=790788.9 km

Common pitfalls

The angle must be the included angle. The angle in cosC 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, cosC is negative, so 2abcosC 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+b22abcosC, 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, cosC=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 2abcosC accounting for non-right angles.

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

Make the cosine the subject: cosC=a2+b2c22ab. The angle you're finding is opposite the side that's squared with the minus sign on the right. Then apply cos1 on your calculator.

Why is the cosine negative for an obtuse angle?

Cosine is negative for angles between 90 and 180. So if your cosC 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.

Video Lessons

  • The Cosine Rule - GCSE Higher Maths Watch
  • Law of Cosines, Finding Angles & Sides, SSS & SAS Triangles - Trigonometry Watch

Practice Questions

10 questions available.

Practice Questions