Cosine rule to find a side

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

Key formulas

c² = a² + b² − 2ab cos C

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

  1. a=6, b=6, C=120°. Find c.
  2. 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