Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem

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 AA, BB and CC, and call the side opposite each angle aa, bb and cc respectively. The side opposite an angle is the one that does not touch it. With that convention the law of sines states:

asin⁡A=bsin⁡B=csin⁡C=2R\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C} = 2R

Here RR 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, sin⁡Aa=sin⁡Bb\frac{\sin A}{a} = \frac{\sin B}{b}, 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 C=90∘C = 90^\circ it reduces to the familiar sin⁡A=ac\sin A = \frac{a}{c}, because sin⁡90∘=1\sin 90^\circ = 1.

Why the law of sines is true

Drop a perpendicular from vertex CC to side cc and call its length hh. This splits the triangle into two right triangles. In the one containing angle AA, the hypotenuse is bb, so h=bsin⁡Ah = b\sin A. In the one containing angle BB, the hypotenuse is aa, so h=asin⁡Bh = a\sin B.

Both expressions equal the same height, so bsin⁡A=asin⁡Bb\sin A = a\sin B. Dividing both sides by sin⁡Asin⁡B\sin A\sin B gives asin⁡A=bsin⁡B\frac{a}{\sin A} = \frac{b}{\sin B}. Repeating the argument with the altitude from a different vertex brings in side cc. If angle AA is obtuse the foot of the altitude lands outside the triangle, but the same equations hold because sin⁡(180∘−A)=sin⁡A\sin(180^\circ - A) = \sin A.

The same altitude gives the area formula. The area is half the base times the height, so with base cc and height bsin⁡Ab\sin A:

Area=12bcsin⁡A=12acsin⁡B=12absin⁡C\text{Area} = \tfrac{1}{2}bc\sin A = \tfrac{1}{2}ac\sin B = \tfrac{1}{2}ab\sin C

For example, a triangle with sides 8 and 11 meeting at a 50∘50^\circ angle has area 12(8)(11)sin⁡50∘≈33.71\frac{1}{2}(8)(11)\sin 50^\circ \approx 33.71 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 180∘180^\circ. 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): A=40∘A = 40^\circ, B=60∘B = 60^\circ, a=10a = 10

  1. Third angle: C=180∘−40∘−60∘=80∘C = 180^\circ - 40^\circ - 60^\circ = 80^\circ.
  2. Find bb: bsin⁡60∘=10sin⁡40∘\frac{b}{\sin 60^\circ} = \frac{10}{\sin 40^\circ}, so b=10sin⁡60∘sin⁡40∘≈13.47b = \frac{10\sin 60^\circ}{\sin 40^\circ} \approx 13.47.
  3. Find cc: c=10sin⁡80∘sin⁡40∘≈15.32c = \frac{10\sin 80^\circ}{\sin 40^\circ} \approx 15.32.
  4. Sanity check: the largest angle, 80∘80^\circ, sits opposite the longest side, 15.32.

Example 2 (ASA): A=35∘A = 35^\circ, C=75∘C = 75^\circ, b=20b = 20

  1. The known side lies between the two known angles. First find B=180∘−35∘−75∘=70∘B = 180^\circ - 35^\circ - 75^\circ = 70^\circ, which completes the pair bb, BB.
  2. a=20sin⁡35∘sin⁡70∘≈12.21a = \frac{20\sin 35^\circ}{\sin 70^\circ} \approx 12.21.
  3. c=20sin⁡75∘sin⁡70∘≈20.56c = \frac{20\sin 75^\circ}{\sin 70^\circ} \approx 20.56.

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 sin⁡B=k\sin B = k gives two candidate angles, BB and 180∘−B180^\circ - B, and both may fit.

Suppose angle AA is acute, with aa the side opposite it and bb the other known side. Compute the height h=bsin⁡Ah = b\sin A. Then:

  • If a<ha < h, the side is too short to reach the base: no triangle.
  • If a=ha = h, it just reaches: one right triangle.
  • If h<a<bh < a < b, it can swing to two positions: two triangles.
  • If a≥ba \ge b, only one position works: one triangle.

If AA is obtuse, there is one triangle when a>ba > b and none otherwise, because the side opposite the obtuse angle must be the longest.

Example 3: two triangles from A=30∘A = 30^\circ, a=6a = 6, b=10b = 10

  1. Height: h=10sin⁡30∘=5h = 10\sin 30^\circ = 5. Since 5<6<105 < 6 < 10, expect two triangles.
  2. sin⁡B=10sin⁡30∘6=56≈0.8333\sin B = \frac{10\sin 30^\circ}{6} = \frac{5}{6} \approx 0.8333, so B≈56.44∘B \approx 56.44^\circ or B≈123.56∘B \approx 123.56^\circ.
  3. First triangle: C≈93.56∘C \approx 93.56^\circ and c=6sin⁡Csin⁡30∘≈11.98c = \frac{6\sin C}{\sin 30^\circ} \approx 11.98.
  4. Second triangle: C≈26.44∘C \approx 26.44^\circ and c≈5.34c \approx 5.34.

Example 4: no triangle and one triangle

  1. With A=30∘A = 30^\circ, a=4a = 4, b=10b = 10: sin⁡B=10(0.5)4=1.25\sin B = \frac{10(0.5)}{4} = 1.25. A sine cannot exceed 1, so no triangle exists.
  2. With A=30∘A = 30^\circ, a=12a = 12, b=10b = 10: sin⁡B=512\sin B = \frac{5}{12}, so B≈24.62∘B \approx 24.62^\circ or 155.38∘155.38^\circ.
  3. The second option fails because 30∘+155.38∘>180∘30^\circ + 155.38^\circ > 180^\circ. One triangle: C≈125.38∘C \approx 125.38^\circ, c≈19.57c \approx 19.57.

A surveying problem

Surveyors use the law of sines to measure distances they cannot walk. Two points PP and QQ on one bank of a river are 100 m apart. A tree TT stands on the far bank. The angle at PP between the bank and the line of sight to the tree is 52∘52^\circ, and at QQ it is 71∘71^\circ.

Example 5: width of the river

  1. Angle at the tree: 180∘−52∘−71∘=57∘180^\circ - 52^\circ - 71^\circ = 57^\circ, which is opposite the known 100 m baseline.
  2. Distance from QQ to the tree, opposite the 52∘52^\circ angle: QT=100sin⁡52∘sin⁡57∘≈93.96QT = \frac{100\sin 52^\circ}{\sin 57^\circ} \approx 93.96 m.
  3. Distance from PP to the tree: PT=100sin⁡71∘sin⁡57∘≈112.74PT = \frac{100\sin 71^\circ}{\sin 57^\circ} \approx 112.74 m.
  4. Width, the perpendicular distance from the tree to the bank: QTsin⁡71∘≈88.84QT\sin 71^\circ \approx 88.84 m. Using PTsin⁡52∘PT\sin 52^\circ 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 sin⁡θ=sin⁡(180∘−θ)\sin\theta = \sin(180^\circ - \theta), 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 180∘−B180^\circ - B in the SSA case.
  • Accepting a second solution that makes the angles add to more than 180∘180^\circ.
  • 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 C=90∘C = 90^\circ, sin⁡C=1\sin C = 1, so asin⁡A=c\frac{a}{\sin A} = c, which rearranges to the usual definition sin⁡A=ac\sin A = \frac{a}{c}. 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 sin⁡B=k\sin B = k for 0<k<10 < k < 1 gives an acute angle and its obtuse supplement, both with the same sine. If the known angle plus the obtuse candidate is still under 180∘180^\circ, both triangles exist.

What does 2R mean in the law of sines?

Each ratio asin⁡A\frac{a}{\sin A} equals the diameter of the circle through the three vertices. For example, a triangle with a=10a = 10 and A=30∘A = 30^\circ has 100.5=20\frac{10}{0.5} = 20, so its circumscribed circle has radius 10.

Can the law of sines find an angle?

Yes, by solving sin⁡B=bsin⁡Aa\sin B = \frac{b\sin A}{a} 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.

MathSolver Pro Editorial Team

Math content and review

Our editorial team writes every guide to explain the reasoning behind each method, not just the answer. Each worked example is checked against the site's own solver engines and automated tests before it is published, and articles are revised whenever a method or an exam format changes.