Pure · Trigonometric Ratios · Year 1

Cosine Rule

SOH–CAH–TOA only works in right-angled triangles. The cosine rule is Pythagoras' theorem with a correction term added in — and it handles any triangle where you know three sides, or two sides and the angle between them.

8 min read 3 worked examples

When SOH–CAH–TOA isn't enough

Most triangles you meet aren't right-angled, so the three ratios from the previous unit don't directly apply. Label a triangle so side $a$ is opposite angle $A$, side $b$ opposite $B$, and side $c$ opposite $C$ — each side paired with the angle facing it. The cosine rule then reads:

$a^2 = b^2 + c^2 - 2bc\cos A$

Use it whenever you're given three sides (to find an angle), or two sides and the angle between them (to find the third side). If neither of those applies — say you have a side matched with its opposite angle — the sine rule in the next lesson is the better tool.

Proving the cosine rule from first principles

The cosine rule isn't handed down from nowhere — it drops out of Pythagoras once you split the triangle with a perpendicular. Take any triangle $ABC$ and drop a perpendicular $CD$ from $C$ onto the base $AB$, meeting it at $D$. This cuts the triangle into two right-angled triangles, and Pythagoras on each does the rest.

Triangle ABC with a perpendicular CD dropped from C to the base AB at point D, forming a right angle at D. Angle theta is at A, side a is opposite A (CB), side b is opposite B (CA), and side c is the base AB.
Dropping the perpendicular CD splits triangle ABC into two right-angled triangles, ACD and BCD — the key to the proof.
ProofDeriving a² = b² + c² − 2bc cos θ
1
Let $h = CD$ be the height, and let $AD = x$. Then $DB = c - x$, since $AD$ and $DB$ together make up the base $c$.
Split the base at the foot of the perpendicular.
2
In right-angled triangle $ACD$: by Pythagoras, $b^2 = x^2 + h^2$.
Hypotenuse $b$, legs $x$ and $h$.
3
In right-angled triangle $BCD$: by Pythagoras, $a^2 = (c - x)^2 + h^2$.
Hypotenuse $a$, legs $(c-x)$ and $h$.
4
Expand step 3: $a^2 = c^2 - 2cx + x^2 + h^2$.
Multiply out $(c-x)^2$.
5
But $x^2 + h^2 = b^2$ from step 2, so substitute: $a^2 = c^2 - 2cx + b^2$.
The two right triangles share $h$ — that's what links them.
6
From triangle $ACD$, $\cos\theta = \dfrac{x}{b}$, so $x = b\cos\theta$.
CAH in the left-hand right triangle.
7
Substitute $x = b\cos\theta$: $a^2 = b^2 + c^2 - 2bc\cos\theta$.
The cosine rule, with $\theta$ the angle at $A$.
▪ proven
Why the cosine rule is Pythagoras with a correction

If $A = 90°$, then $\cos 90° = 0$ and the rule collapses to $a^2 = b^2+c^2$ — ordinary Pythagoras. The $-2bc\cos A$ term is what corrects for the angle not being a right angle: it shrinks $a$ when $A$ is acute, and grows it when $A$ is obtuse (since $\cos A$ turns negative, flipping the sign of the correction). The cosine rule isn't really a separate fact to memorise; it's Pythagoras generalised to any angle.

Rearranging to find an angle

When all three sides are known and you want an angle, rearrange the rule to make $\cos A$ the subject:

$\cos A = \dfrac{b^2+c^2-a^2}{2bc}$

This is the same formula, just solved differently — memorise one form and rearrange as needed, or learn both directly.

Worked example 1

Finding a side · two sides and the included angle
In triangle $ABC$, $b = 7\,\text{cm}$, $c = 10\,\text{cm}$, and the angle between them $A = 55°$. Find side $a$ to 3 s.f.

There's no matching side–angle pair here, so the sine rule can't start. Two sides and the angle between them is the cosine rule's signal.

MethodApply the cosine rule with the included angle
1
$a^2 = b^2 + c^2 - 2bc\cos A$, with $b=7$, $c=10$, $A=55°$.
Included angle ⇒ cosine rule.
2
$a^2 = 7^2 + 10^2 - 2(7)(10)\cos 55°$.
Substitute the known values.
3
$a^2 = 49 + 100 - 140\cos 55° = 149 - 140(0.5736) = 149 - 80.3 = 68.7$.
Work through the arithmetic.
4
$a = \sqrt{68.7} = 8.29\,\text{cm}$ (3 s.f.).
Square-root at the very end.
▪ solved
Examiner's eye

Always square-root last — squaring and rooting too early throws away the correction term's effect. And check the sign of $\cos A$: for an acute angle like $55°$ it's positive, so the term is subtracted, giving a shorter side than plain Pythagoras would.

Worked example 2

Finding an angle · from three known sides
A triangle has sides $a=6\,\text{cm}$, $b=8\,\text{cm}$, $c=11\,\text{cm}$. Find the size of angle $C$ to 1 d.p.

Three sides and no angles at all — the sine rule needs a matching pair to even start, so the cosine rule (rearranged for an angle) is the only way in.

MethodRearrange for cos C, substitute, then invert
1
$\cos C = \dfrac{a^2+b^2-c^2}{2ab}$ — the side opposite the unknown angle goes in the numerator on its own.
Rearranged cosine rule for angle C.
2
$\cos C = \dfrac{6^2+8^2-11^2}{2(6)(8)} = \dfrac{36+64-121}{96} = \dfrac{-21}{96}$.
Substitute a=6, b=8, c=11.
3
$\cos C = -0.21875$.
Simplify the fraction.
4
$C = \cos^{-1}(-0.21875) = 102.6°$ (1 d.p.).
Invert to find the angle.
▪ solved
The key insight

A negative value of $\cos C$ signals an obtuse angle immediately — you don't need to finish the calculation to know $C$ is bigger than $90°$. This is one of the cosine rule's quiet advantages over the sine rule: $\cos^{-1}$ always returns a unique angle between $0°$ and $180°$, so there's no ambiguity about which triangle you've found, unlike the sine rule's ambiguous case.

Worked example 3

Identifying the largest angle · a common exam framing
A triangle has sides $5\,\text{cm}$, $9\,\text{cm}$ and $12\,\text{cm}$. Show that the triangle is obtuse-angled, and find its largest angle to 1 d.p.
MethodThe largest angle is opposite the longest side
1
The largest angle in any triangle is opposite the longest side — here that's the side of length $12$, so label it $c=12$ and find $C$.
Longer side ⇒ larger opposite angle.
2
$\cos C = \dfrac{a^2+b^2-c^2}{2ab} = \dfrac{5^2+9^2-12^2}{2(5)(9)} = \dfrac{25+81-144}{90} = \dfrac{-38}{90}$.
a=5, b=9, c=12.
3
$\cos C \approx -0.4222$, which is negative — so $C$ is obtuse, confirming the claim.
Negative cosine ⇒ angle over 90°.
4
$C = \cos^{-1}(-0.4222) = 115.0°$ (1 d.p.).
The largest angle.
▪ solved
Strategy — always test the longest side first

"Show a triangle is obtuse" questions are really just asking you to apply the cosine rule to the angle opposite the longest side and check the sign of $\cos$. If that comes out negative, you're done — every other angle in the triangle must be smaller, hence acute.

Common mistake

The cosine rule pairs side $a$ with the angle $A$ opposite it — not the angle it happens to sit next to on the page. Before substituting, always relabel so the side you want (or the angle you want) is matched correctly: $a$–$A$, $b$–$B$, $c$–$C$. Mixing up which side is "opposite" is the single most common slip in this topic.

Check yourself

A triangle has sides $p=9\,\text{cm}$, $q=14\,\text{cm}$ and included angle $R=68°$ between them. Find side $r$ to 3 s.f.
(Hint: two sides and the angle between them — go straight to the cosine rule.)

Method
1
$r^2 = p^2+q^2-2pq\cos R = 9^2+14^2-2(9)(14)\cos 68°$.
2
$r^2 = 81+196-252(0.3746) = 277 - 94.4 = 182.6$.
Evaluate the correction term.
3
$r = \sqrt{182.6} = 13.5\,\text{cm}$ (3 s.f.).
▪ solved