Skip to content
Tutorials Center
My learning

Topics

Lesson 28 of 38 · The Laws of Sines and Cosines

The Law of Sines

Learn the law of sines, why it works, and how to solve triangles when you know two angles and a side (ASA or AAS), with a calculator you can run.

Right-triangle trigonometry only works when one angle is 90°. Surveyors, pilots and navigators deal with any triangle at all. The law of sines and the law of cosines let you solve every triangle, whether or not it has a right angle. "Solving a triangle" means finding all three sides and all three angles.

Notation

In triangle ABC, the side opposite angle A is called a, the side opposite B is b, and the side opposite C is c. Capital letters are angles; lowercase letters are the opposite sides.

flowchart LR
    A["Vertex A<br/>angle A"] --- c["side c"] --- B["Vertex B<br/>angle B"]
    B --- a["side a"] --- C["Vertex C<br/>angle C"]
    C --- b["side b"] --- A

Side a faces angle A, side b faces B, side c faces C.

The law

Text
a / sin A = b / sin B = c / sin C

Equivalently, sin A / a = sin B / b = sin C / c. In words: the ratio of a side to the sine of its opposite angle is the same for all three sides. That common value is also 2R, where R is the radius of the circle through the three vertices (the circumscribed circle).

Why it works

Draw the altitude h from C to side c. In the two right triangles formed, h = b sin A and h = a sin B. So b sin A = a sin B, which rearranges to a / sin A = b / sin B. Using a different altitude gives the other pairs. (For an obtuse triangle the foot of the altitude lies outside the base, and the same relations hold because sin(180° − x) = sin x.)

When to use it

The law of sines needs a matched pair: a side and its opposite angle. It is best when you know:

  • AAS or ASA: two angles and any side (one pair is always available because the third angle is 180° − the other two).
  • SSA: two sides and an angle not between them. This case may be ambiguous and gets its own lesson (The Ambiguous Case).

If you know two sides and the angle between them (SAS) or all three sides (SSS), use the law of cosines instead (The Law of Cosines).

Worked example: AAS

In triangle ABC, A = 40°, B = 65° and a = 10 cm. Find C, b and c.

  1. Angles of a triangle sum to 180°: C = 180° − 40° − 65° = 75°.
  2. b / sin 65° = 10 / sin 40°, so b = 10 sin 65° / sin 40°.
  3. c = 10 sin 75° / sin 40°.

Using a calculator: sin 40° ≈ 0.6428, sin 65° ≈ 0.9063, sin 75° ≈ 0.9659. So b ≈ 14.10 cm and c ≈ 15.03 cm. As a sanity check, the largest angle (75°) faces the longest side (15.03 cm) and the smallest angle faces the shortest side.

Python Solve a triangle from two angles and a side

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Worked example: ASA

A triangular garden has a side of 12 m. The angles at the two ends of that side are 50° and 70°. Find the other two sides.

The third angle is 180° − 50° − 70° = 60°, and it is opposite the 12 m side. So 12 / sin 60° = 13.856..., which is the common ratio. The other sides are 13.856 × sin 50° ≈ 10.61 m and 13.856 × sin 70° ≈ 13.02 m.

The trap here is the pairing: the known side is opposite the angle you compute, not one of the angles at its ends.

Python Check ASA example and the circumscribed-circle fact

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The coordinate check agrees with the law of sines: PR is opposite the 70° angle at Q, so it matches 13.02 m, and QR is opposite the 50° angle at P, so it matches 10.61 m.

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. In triangle ABC, A = 30°, B = 70°, a = 8. What is b closest to?

    b = 8 sin 70° / sin 30° = 8 × 0.9397 / 0.5 ≈ 15.04.
  2. 2. Which information lets you start with the law of sines directly?

    With two angles you get the third, and then any known side has a known opposite angle, so a ratio can be formed.
  3. 3. The common ratio a / sin A in the law of sines equals:

    a / sin A = b / sin B = c / sin C = 2R.

Summary

  • Opposite pairs: side a faces angle A, and so on.
  • Law of sines: a / sin A = b / sin B = c / sin C.
  • Use it with ASA, AAS (and carefully with SSA).
  • The third angle is 180° minus the other two.
  • The common ratio equals the diameter of the circumscribed circle.
  • The longest side always faces the largest angle: a quick sanity check.

Next: The Ambiguous Case (SSA)