The Cosine Rule
Theory
The cosine rule is a generalisation of Pythagoras' theorem to any triangle:
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:
, where and are the two sides bracketing angle , and is the side opposite . - To find an angle: rearrange to make the cosine the subject:
. 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
Cosine rule — finding a side (SAS)
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:
Connection to Pythagoras
When
How to use the cosine rule
- Label the triangle: each side has the lowercase of its opposite vertex.
- Identify the situation — SAS (two sides + included angle) calls for the first form; SSS (three sides) calls for the rearranged form.
- Substitute carefully — for SSS, the angle on the left is the one opposite the squared side with the minus sign.
- Solve — take the square root (positive only) for a side, or
for an angle.
Sides
The largest angle is opposite the longest side
The negative cosine confirms the angle is obtuse.
Sketch — sides
Common pitfalls
Frequently asked questions
What is the cosine rule?
The cosine rule for a side:
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
How do I rearrange the cosine rule to find an angle?
Make the cosine the subject:
Why is the cosine negative for an obtuse angle?
Cosine is negative for angles between
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
Practice Questions
10 questions available.
Practice Questions