The Law of Sines, Explained With Worked Examples
The law of sines says a / sin(A) = b / sin(B) = c / sin(C) in every triangle. Two worked examples, a river-width problem and the SSA case that returns zero, one or two triangles, show when it works and when it fools you.
Key takeaways
- The law of sines says that in any triangle, a / sin(A) = b / sin(B) = c / sin(C), so each side divided by the sine of its opposite angle gives the same number.
- Use the law of sines when you know two angles and any one side (ASA or AAS), or two sides and an angle that is not between them (SSA). Use the law of cosines for SSS and SAS.
- In the AAS example with A = 50 degrees, C = 30 degrees and a = 10, the third angle is 100 degrees, side c is about 6.5 and side b is about 12.9.
- SSA is the ambiguous case. With a = 6, b = 8 and A = 35 degrees, the height b·sin(A) is about 4.59, which is less than a and a is less than b, so two triangles fit: B = 49.9 degrees with c = 10.4, or B = 130.1 degrees with c = 2.7.
- The shared ratio in the law of sines equals 2R, twice the circumradius. For the 50-30-100 triangle with a = 10, 2R is about 13.05 and R is about 6.53.
The law of sines says that in any triangle, each side divided by the sine of the angle opposite it gives the same number: a / sin(A) = b / sin(B) = c / sin(C).[1]
Use it when you know two angles and any one side, or two sides and an angle that isn't between them. That second setup, called SSA, is the one that can give you two different triangles.
Here's the picture. A triangle has three sides (a, b, c) and three angles (A, B, C), and each side sits across from the angle with the matching letter.
The law says the longer the side, the larger the sine of its opposite angle, and in exactly the same proportion for all three pairs. Know one pair completely and you can finish the rest of the triangle.
Summary
When to use the law of sines
The deciding question is whether you know a matched pair, meaning one side and the angle across from it. The law of sines is a proportion, and a proportion needs three known quantities to find the fourth: the matched pair, plus one more side or angle.
If you have the pair, use the law of sines. If you don't, you need the law of cosines.
Choosing the right law
A matched side and angle sends you to the law of sines
What you know
- ASATwo angles and the side between them
- AASTwo angles and a side not between them
- SSATwo sides and an angle not between them
Law of sines
a / sin(A) = b / sin(B) = c / sin(C)
What you get
- ASA and AASExactly one triangle
- SSAZero, one or two triangles
Two angles always give you the third, since the three add to 180°. That is why ASA and AAS are the same problem.
Worked example 1: two angles and a side (AAS)
Take a triangle with A = 50°, C = 30° and side a = 10. The first move is free: the angles sum to 180°, so B = 180° − 50° − 30° = 100°. Now side a and angle A are your matched pair, and every other side is one proportion away.[1]
For side c: c = a · sin(C) / sin(A) = 10 · sin(30°) / sin(50°), which is about 6.5. For side b: b = 10 · sin(100°) / sin(50°), which is about 12.9.
Takeaway
Sanity check every answer with the rule from the opening: the longest side faces the largest angle. Here B = 100° is the largest angle and b = 12.9 is the longest side. If they disagreed, I'd recheck the arithmetic before trusting anything else.
Worked example 2: how wide is the river (ASA)
This is the problem the law was built for: measuring something you can't reach with a tape. Stand at point P on one bank and drive a stake at point Q, 100 meters downstream.
From P, sight a tree T on the far bank: the angle between your baseline and the tree is 62°. From Q, the angle is 48°. The angle at the tree is the leftover, 180° − 62° − 48° = 70°.
Side PT sits opposite the 48° angle, so PT = 100 · sin(48°) / sin(70°), about 79.1 meters. The river's width is the perpendicular distance from the tree to the baseline, which is PT · sin(62°), about 69.8 meters.
You never left the near bank. (I like this example because the 100 meters of baseline is the only thing you actually measure with a tape. Everything else is angles, which a cheap sighting tool gives you.)
The ambiguous case: SSA can return zero, one or two triangles
With SSA you know sides a and b and angle A, which is opposite a. The law gives sin(B) = b · sin(A) / a. Then you press the inverse sine key and get one angle.
The trap is that sin(B) equals sin(180° − B), so if the calculator says 30°, the true answer might be 150°. The calculator only ever returns the acute one.[1]
The geometry makes this concrete. Fix angle A and side b, then swing a compass of radius a from the far end of b. Wherever the arc crosses the baseline is a place for vertex B. A circle and a line can cross zero, one or two times, and those are your three outcomes.
You don't need to draw it every time. Compute the height of the triangle, h = b · sin(A), which is how far point C sits above the baseline. Then compare side a to that height and to b. For an acute A there are four outcomes, which OpenStax lists the same way.[1]
| Condition (A acute) | Triangles | What happens to the arc |
|---|---|---|
| a < h | None | Too short to reach the baseline |
| a = h | One (a right triangle) | Touches the baseline at one point |
| h < a < b | Two | Crosses the baseline twice |
| a ≥ b | One | The second crossing falls behind A, so it doesn't count |
If A is right or obtuse, it's simpler: a must be longer than b for any triangle to exist, and then there's exactly one. A triangle can't hold two angles of 90° or more.
The two-triangle example, solved
Let a = 6, b = 8 and A = 35°. The height is h = 8 · sin(35°), about 4.59. Since 4.59 < 6 < 8, you get two triangles. The law gives sin(B) = 8 · sin(35°) / 6, about 0.765, so B is 49.9° or 180° − 49.9° = 130.1°. Finish each one with the angle sum and the law again.[1]
Triangle with B = 49.9°
Triangle with B = 130.1°
- Angle B (degrees)49.9130.1
- Angle C (degrees)95.114.9
- Side c (same units as a and b)10.42.7
Takeaway
Both triangles satisfy a = 6, b = 8 and A = 35°. The measurements alone can't pick between them, so a real problem needs one more fact, such as which side of the baseline the point must lie on.
Two ways SSA gives you nothing or one answer
No triangle: a = 4 opposite 50° with b = 10 gives sin(B) = 10 · sin(50°) / 4, about 1.915. No angle has a sine above 1, so the arc never reaches the baseline.[1] One triangle: b = 9, c = 12 and C = 85° gives B of about 48.3°.
The other candidate, 131.7°, plus the known 85° already passes 180°, so it dies on the spot.[1] A shortcut falls out of that: if the known angle sits opposite the longer of the two known sides, there's only one answer.
“With SSA, the calculator hands you the acute answer and stays quiet about the obtuse one.”
Why the law of sines works
The proof is one line of area. A triangle's area is (1/2) · a · b · sin(C), using two sides and the angle between them. You can compute the same area from any of the three corners:
(1/2) · a · b · sin(C) = (1/2) · b · c · sin(A) = (1/2) · a · c · sin(B)
Multiply through by 2 and divide by abc, and you get sin(C) / c = sin(A) / a = sin(B) / b. Flip the fractions and that's the law. The area is the area, no matter which corner you measure from.
There's a bonus hiding in the shared ratio. It equals 2R, twice the radius of the circle through all three vertices (the circumcircle).[2] In the AAS example above, 10 / sin(50°) is about 13.05, so that triangle sits inside a circle of radius about 6.53.
One matched pair tells you the circle, and the circle is the same for all three sides. That's also the cleanest way to see why the law holds: the circle doesn't care which side you ask about.
Law of sines versus law of cosines
The two laws split the triangle problems between them. If you can see a matched pair, reach for the law of sines. If you can't, the law of cosines is the tool, and it also generalizes the Pythagorean theorem to non-right triangles.
| You know | Use | Solutions |
|---|---|---|
| ASA or AAS | Law of sines | One |
| SSA | Law of sines, then check the supplement | Zero, one or two |
| SAS | Law of cosines | One |
| SSS | Law of cosines | One, if the sides satisfy the triangle inequality |
What I'd actually remember
I used to treat the ambiguous case as a footnote. It isn't one.
It's the single place where the formula gives a right-looking answer that's incomplete, and the fix is two lines: compute h = b · sin(A) first, and always test 180° − B before throwing it away. Everything else about the law of sines is plain proportion.
One more connection, because it surprised me: the sine on your calculator isn't a lookup table of triangles. It's computed from a series whose denominators are factorials. Triangles and factorials meet there, which is a good reason to learn both.
If you want the cousin of this law that fills in what it can't, the law of cosines is the next stop, and why pi equals 3.14 is worth a read if the circumcircle made you curious about circles themselves.
Primary sources
- 1.PrimaryOpenStax, Precalculus 2e, "Non-right Triangles: Law of Sines". The statement of the law, the ASA, AAS and SSA cases, the four SSA outcomes, and the worked examples with a = 6, b = 8, A = 35° and a = 4, b = 10.
- 2.PrimaryWolfram MathWorld, "Law of Sines". The extended form a / sin(A) = b / sin(B) = c / sin(C) = 2R, where R is the circumradius.
Frequently asked questions
- What is the law of sines?
- The law of sines says that in any triangle, each side divided by the sine of the angle opposite it gives the same number: a / sin(A) = b / sin(B) = c / sin(C). It works for right triangles and non-right (oblique) triangles alike. It lets you find missing sides and angles when you know two angles and one side, or two sides and a non-included angle.
- When do you use the law of sines?
- Use it when you know two angles and any side (ASA or AAS), or two sides and an angle that is not between them (SSA). In each case you know a matched pair: a side and its opposite angle. If you know all three sides (SSS) or two sides and the angle between them (SAS), you have no matched pair, so use the law of cosines instead.
- What is the ambiguous case of the law of sines?
- The ambiguous case is SSA, where two sides and a non-included angle can produce no triangle, one triangle or two. It happens because sin(B) equals sin(180 degrees minus B), so an inverse sine on a calculator returns only the acute answer. With a = 6, b = 8 and A = 35 degrees, both B = 49.9 degrees and B = 130.1 degrees give a valid triangle.
- How do you know if SSA has zero, one or two solutions?
- Compute the height h = b·sin(A) and compare it with side a. If A is acute, then a less than h gives no triangle, a equal to h gives one right triangle, a between h and b gives two triangles, and a at least b gives one triangle. If A is obtuse or right, a greater than b gives one triangle and anything else gives none.
- Can you use the law of sines on a right triangle?
- Yes. In a right triangle sin(90 degrees) is 1, so the law of sines reduces to c = a / sin(A), where c is the hypotenuse. That is the ordinary definition sin(A) = opposite / hypotenuse rearranged. The law of sines matters most on non-right triangles, where that definition does not apply directly.
- How do you prove the law of sines?
- Write the area of the triangle three ways: (1/2)ab·sin(C), (1/2)bc·sin(A) and (1/2)ac·sin(B). Each is the same area, so they are equal. Multiply through by 2, divide by abc, and you get sin(A) / a = sin(B) / b = sin(C) / c. Flip each fraction for the standard form.
Written by
Tech Talk News Editorial
Computer engineering background. Writes about software, AI, markets, and real estate, and the places where the three meet.
More about the author