Trigonometry
The Law of Sines, Including the Ambiguous Case
By MathSolver Pro Editorial Team · Published
The law of sines says that in any triangle, each side divided by the sine of its opposite angle gives the same number. It solves triangles when you know two angles and a side, and, with care, when you know two sides and an angle opposite one of them.
The formula and the labelling convention
Label a triangle with angles , and , and call the side opposite each angle , and respectively. The side opposite an angle is the one that does not touch it. With that convention the law of sines states:
Here is the radius of the circle that passes through all three vertices, called the circumscribed circle. You only ever use two of the three fractions at once, so the law is really a proportion between a side, its opposite angle, another side and that side's opposite angle. It can also be written upside down, , which is more convenient when the unknown is an angle.
The law works for every triangle, not only right triangles, which is why it belongs to what is often called oblique triangle trigonometry. In a right triangle with it reduces to the familiar , because .
Why the law of sines is true
Drop a perpendicular from vertex to side and call its length . This splits the triangle into two right triangles. In the one containing angle , the hypotenuse is , so . In the one containing angle , the hypotenuse is , so .
Both expressions equal the same height, so . Dividing both sides by gives . Repeating the argument with the altitude from a different vertex brings in side . If angle is obtuse the foot of the altitude lands outside the triangle, but the same equations hold because .
The same altitude gives the area formula. The area is half the base times the height, so with base and height :
For example, a triangle with sides 8 and 11 meeting at a angle has area square units.
When to use it: AAS and ASA
The law of sines needs at least one complete pair: a side together with the angle opposite it. If you know two angles, you know the third, because the angles of a triangle add to . So any problem that gives two angles and one side can be completed with the law of sines. Those cases are called AAS (angle, angle, side) and ASA (angle, side, angle).
Example 1 (AAS): , ,
- Third angle: .
- Find : , so .
- Find : .
- Sanity check: the largest angle, , sits opposite the longest side, 15.32.
Example 2 (ASA): , ,
- The known side lies between the two known angles. First find , which completes the pair , .
- .
- .
Use the given side in every calculation rather than a side you computed and rounded. That keeps rounding errors from building up.
The ambiguous case (SSA)
When you know two sides and an angle opposite one of them, the information may describe no triangle, exactly one, or two different triangles. The reason is that the sine of an acute angle and the sine of its supplement are equal, so solving gives two candidate angles, and , and both may fit.
Suppose angle is acute, with the side opposite it and the other known side. Compute the height . Then:
- If , the side is too short to reach the base: no triangle.
- If , it just reaches: one right triangle.
- If , it can swing to two positions: two triangles.
- If , only one position works: one triangle.
If is obtuse, there is one triangle when and none otherwise, because the side opposite the obtuse angle must be the longest.
Example 3: two triangles from , ,
- Height: . Since , expect two triangles.
- , so or .
- First triangle: and .
- Second triangle: and .
Example 4: no triangle and one triangle
- With , , : . A sine cannot exceed 1, so no triangle exists.
- With , , : , so or .
- The second option fails because . One triangle: , .
A surveying problem
Surveyors use the law of sines to measure distances they cannot walk. Two points and on one bank of a river are 100 m apart. A tree stands on the far bank. The angle at between the bank and the line of sight to the tree is , and at it is .
Example 5: width of the river
- Angle at the tree: , which is opposite the known 100 m baseline.
- Distance from to the tree, opposite the angle: m.
- Distance from to the tree: m.
- Width, the perpendicular distance from the tree to the bank: m. Using gives the same value, a useful check.
The same triangulation idea, repeated over large networks of triangles, was used to map entire countries before satellite positioning existed, and it is still the basis of how GPS receivers and phone networks estimate position from angles and distances.
Law of sines or law of cosines?
Look at what you are given. If you have a side and its opposite angle, plus one more piece, use the law of sines. If you have two sides and the angle between them (SAS), or all three sides (SSS), no complete pair is available, so start with the law of cosines. After one application of the law of cosines you will usually have a pair, and the law of sines can finish the job, although it is safer to find the largest angle first with the law of cosines to avoid the ambiguity of the inverse sine.
The full decision process, case by case, is set out in our guide to solving triangles. For the angle values themselves, the unit circle explains why , which is the source of the ambiguous case.
Common mistakes
- Pairing a side with an angle that is not opposite it. Draw and label the triangle first.
- Forgetting the second solution in the SSA case.
- Accepting a second solution that makes the angles add to more than .
- Using a calculator in radian mode with angles in degrees.
- Rounding intermediate angles heavily, which can shift the final sides noticeably.
A quick plausibility test catches most errors: the longest side must face the largest angle and the shortest side the smallest angle. The law of cosines calculator solves any triangle from three known parts and reports both solutions in the ambiguous case, so you can check your work.
Frequently asked questions
Does the law of sines work for right triangles?
Yes. With , , so , which rearranges to the usual definition . For right triangles the basic ratios are usually quicker, but the law of sines gives the same answers.
Why does SSA sometimes give two triangles?
Solving for gives an acute angle and its obtuse supplement, both with the same sine. If the known angle plus the obtuse candidate is still under , both triangles exist.
What does 2R mean in the law of sines?
Each ratio equals the diameter of the circle through the three vertices. For example, a triangle with and has , so its circumscribed circle has radius 10.
Can the law of sines find an angle?
Yes, by solving and taking the inverse sine. Remember that the inverse sine only returns acute angles, so check whether the obtuse supplement also works.
How do I know which case my triangle problem is?
List the three known parts in order around the triangle. Two angles with any side is AAS or ASA, and the law of sines solves it directly. Two sides with the angle between them is SAS, and three sides is SSS; both need the law of cosines first. Two sides with an angle that is not between them is SSA, the ambiguous case, where you should test for zero, one or two triangles.