Cosine Rule (AI HL)
The cosine rule states that , linking the three sides of any triangle to the angle opposite side . Use it to find a missing side when two sides and the included angle are known, or to find an angle when all three sides are known. Together with the area formula , it solves triangles without a right angle. It's part of the broader Geometry & Trigonometry topic.
11 questions on this sub-topic.
Syllabus
| Code | Syllabus content |
|---|---|
| SL3.2 | Sine, cosine and tangent ratios for right-angled triangles. The sine rule and cosine rule (this section excludes the ambiguous case). Area of a triangle as . |
Official IB source: Mathematics: applications and interpretation subject brief (PDF, ibo.org).
Skills practised on this page:
- Find a missing side or angle in a non-right-angled triangle using the cosine rule.
- Calculate the area of a triangle using ½ab sin C.
The formula
Both rules sit in the formula booklet, so the job is spotting which one a question actually needs.
Cosine rule
Use with two sides and the included angle to find the third side, or with all three sides to find an angle.
✓ In the formula bookletSine rule
Needs an angle paired with its opposite side - if that pairing isn't there, it's a cosine rule question instead.
✓ In the formula bookletNeed the full syllabus wording, formula-booklet table and GDC steps? See Geometry & Trigonometry.
Key terms
What is the included angle?
The included angle is the angle between two known sides, formed where those two sides meet. To find the third side with the cosine rule, the known angle must be the included angle.
e.g. With , and in triangle , angle is the included angle because it lies between sides and .
How do you find a missing side?
Substitute the two known sides and their included angle into , then take the square root. Keep the unrounded value until the final answer.
e.g. With , and : , so .
How do you find a missing angle?
Rearrange the rule to , then use inverse cosine on the GDC. The angle found is opposite the side that appears alone.
e.g. For a triangle with sides , and , , so , where is opposite the side of length .
How do you find the area of a triangle?
When two sides and the included angle are known, the area is . The angle must lie between the two sides used.
e.g. With , and , the area is square units.
Worked examples
Find the area of triangle with cm, cm, .
Worked solution
Area M1
A1
units². A1
A triangular plot has two sides of 25 m and 30 m. The area is m.
(a)(i) Find the value of .
(a)(ii) Find the value of .
(b)(i) Find the perimeter for the smaller-angle case.
(b)(ii) Find the perimeter for the larger-angle case.
Worked solution
(a)(i) Two angles. M1
A1
A1
(a)(ii) A1
(b)(i) Third side for each angle. For : m; perimeter m. For : m; perimeter m. M1
perimeter m. A1
(b)(ii) For : m; perimeter m. A1
In triangle ,
(a) Find the area.
(b) Find side
Worked solution
(a) Area. M1
A1
(b) Side . M1
A1 On the GDC. (a) Find the area of the triangle. (b) Find the side a.
Common mistakes
- Reaching for the sine rule when the cosine rule is needed. If you only know three sides, or two sides and the angle between them, there's no opposite angle-side pair to work with - that's the cosine rule's job.
- Losing the obtuse solution. When comes out negative, is obtuse - don't round it away or "correct" it back to an acute angle; the cosine rule (unlike the sine rule) gives a single, unambiguous angle.
- Mislabelling which side is squared alone. In , must be the angle between the two sides and that are multiplied together - swap the labelling and the substitution comes out wrong even with correct arithmetic.
Quick questions
When should I use the cosine rule instead of the sine rule?
Use the cosine rule when you know two sides and the angle between them (to find the third side), or all three sides (to find an angle). The sine rule needs an angle paired with its opposite side, which the cosine rule doesn't require.
What is the cosine rule formula?
, where is the angle opposite side . It's given in the formula booklet.
Why can come out negative in the cosine rule?
A negative value of means that angle is obtuse, between and . For example, gives .
What does the cosine rule become when the angle is 90 degrees?
Since , the rule reduces to , which is Pythagoras' theorem. So Pythagoras' theorem is a special case of the cosine rule.
Can I label the sides differently when using the cosine rule?
Yes, as long as the side on the left is opposite the angle in the cosine term. For example, is the same rule with the letters rotated.
Ready to practise properly?
11 cosine-rule questions, marked instantly like the real exam.