Practice free
Unit 5 · Right triangles and trigonometry

Law of Cosines

Grade 10 (Geometry) · R. Laws of Sines and Cosines · 30 practice questions

How this works

Use the Law of Cosines: add the squares of the two sides, subtract 2 × side × side × cos of the angle between them, then take the square root.

Mia has a triangle with two sides of 3 and 5 and an included angle of 120°. What is the length of the third side?

Law of Cosines
c2 = a2 + b2 − 2ab × cos C
Square the two sides and add
32 + 52 = 9 + 25 = 34
cos 120°
cos(120°) = −0.5
The part to subtract
2 × 3 × 5 × (−0.5) = −15
Subtract it
34 − (−15) = 49
Square root
√49 = 7

Answer: 7

Watch out: Treating cos 120° as +0.5 gives 34 − 15 = 19 and √19 ≈ 4.36. A wide angle makes the far side longer: 34 + 15 = 49, so the side is 7.

Try it

1. In △ABC, a = 3, b = 4, C = 90°. Find c.

2. In △ABC, a = 6, b = 8, C = 90°. Find c.

3. Tess has a triangle with two sides of 5 and 8 and an included angle of 60°. What is the length of the third side?

Answers are checked in the free account — with a hint before the answer, and the full solution after a miss.

How to help at home

Law of Cosines works when you know all three sides or two sides + the included angle. It generalizes the Pythagorean theorem.

More in R. Laws of Sines and Cosines