c² = a² + b² − 2ab cos C for the side opposite angle C.
Key formulas

Included angle
You need the angle between the two known sides. That angle is opposite the side you are finding.
Example
a=5, b=7, C=60°. c²=25+49−2×5×7×½=74−35=39 → c=√39.
Obtuse angles
If C>90°, cos C is negative, so −2ab cos C becomes positive and c is longer — as expected.
Worked example
Worked example
Problem. In △ABC, a = 5, b = 7 and included angle C = 60°. Find side c.
Solution. c² = a² + b² − 2ab cos C = 25 + 49 − 2·5·7·(1/2) = 74 − 35 = 39. So c = √39.
Right angle
If C=90°, cos0 term vanishes and you recover Pythagoras.
Review quiz
a=4, b=5, C=90°. Then c equals:
Practice questions
- a=6, b=6, C=120°. Find c.
- Rearrange the cosine rule to make cos C the subject.
Study notes
Degrees mode?
Yes — set the calculator to degrees unless the angle is clearly in radians.
More in Plane Geometry
- Circle tangents: the radius is perpendicular
- Right-triangle lengths: Pythagoras and altitude
- Similar triangles: matching sides in proportion
- Chord theorem: perpendicular from the centre
- Isosceles triangles and equal base angles
- Alternate segment theorem with a short proof
- Converse of Pythagoras: proving a right angle
- Heron’s formula when height is hidden