The laws

Side a is opposite angle A, side b opposite angle B, and side c opposite angle C.

  • Law of sines: a ÷ sin A = b ÷ sin B = c ÷ sin C
  • Law of cosines: c² = a² + b² − 2ab cos C

Which one to use

  • Two sides and the angle between them (SAS), or all three sides (SSS): the law of cosines.
  • Two angles and a side (ASA or AAS), or two sides and an angle not between them (SSA): the law of sines.

Example (SAS): a = 5, b = 7, C = 40°

  1. c² = 5² + 7² − 2 × 5 × 7 × cos 40°.
  2. c² = 74 − 70 × 0.766 ≈ 20.38.
  3. c ≈ 4.514.

c ≈ 4.51

Example (AAS): A = 40°, B = 60°, a = 5

  1. C = 180° − 40° − 60° = 80°.
  2. b = 5 × sin 60° ÷ sin 40° ≈ 6.736.
  3. c = 5 × sin 80° ÷ sin 40° ≈ 7.660.

b ≈ 6.74 and c ≈ 7.66

The ambiguous case (SSA)

With two sides and an angle that isn’t between them, there can be two triangles, one or none.

Example: a = 7, b = 10, A = 30°

  1. sin B = 10 × sin 30° ÷ 7 ≈ 0.714.
  2. B ≈ 45.6°, or B ≈ 180° − 45.6° = 134.4°.
  3. Both work, since 30° + 134.4° is still under 180°.

Two different triangles fit