Trigonometry

Law of Sines: Formula, Proof and How to Use It

The law of sines says that in any triangle, each side divided by the sine of its opposite angle gives the same number:

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

Try it with your numbers

Show every step

Use it whenever you know one side and the angle directly across from it, plus one more piece of information. The solver above handles the arithmetic, and the sections below explain why the formula holds and where it can mislead you.

What is the law of sines formula?

Lowercase letters are side lengths, and each capital letter is the angle opposite the side with the same letter. Side aa sits across from angle AA, never next to it. Getting that pairing right is most of the battle.

You only ever use two of the three ratios at a time. To find a side, put the unknown on top:

b=asin⁡Bsin⁡Ab=\frac{a\sin B}{\sin A}

To find an angle, flip every fraction so the unknown sine is on top:

sin⁡Bb=sin⁡Aa\frac{\sin B}{b}=\frac{\sin A}{a}

This saves you from dividing by an unknown sine. The recipe needs one complete pair (a side and its opposite angle) plus one more fact about the second pair.

The formula also contains something you already know. In a right triangle with C=90∘C=90^\circ, sin⁡C=1\sin C=1, so csin⁡C\frac{c}{\sin C} is just the hypotenuse cc. The law then says sin⁡A=ac\sin A=\frac{a}{c}, which is the opposite-over-hypotenuse rule from SOH CAH TOA. The law of sines is that rule, stretched to triangles with no right angle.

Quick check

In triangle ABCABC, A=30∘A=30^\circ, B=45∘B=45^\circ and a=6a=6. Find the exact value of bb.

Why does the law of sines work?

The proof is one picture. Drop a perpendicular of length hh from vertex CC down to side ABAB. This cuts the triangle into two right triangles, and in each one the height is a hypotenuse times a sine:

h=bsin⁡Aandh=asin⁡Bh=b\sin A \quad\text{and}\quad h=a\sin B

Both expressions equal the same height, so bsin⁡A=asin⁡Bb\sin A=a\sin B. Divide both sides by sin⁡Asin⁡B\sin A\sin B and you get asin⁡A=bsin⁡B\frac{a}{\sin A}=\frac{b}{\sin B}. Repeat with a different vertex to bring in cc.

If the triangle has an obtuse angle, the foot of the height lands outside the triangle. The proof still holds because sin⁡(180∘−θ)=sin⁡θ\sin(180^\circ-\theta)=\sin\theta, one of the basic trigonometric identities. The same idea gives a second proof. The area is 12bcsin⁡A=12acsin⁡B=12absin⁡C\frac{1}{2}bc\sin A=\frac{1}{2}ac\sin B=\frac{1}{2}ab\sin C, and dividing everything by 12abc\frac{1}{2}abc produces the law. The area of a triangle using sine and the law of sines are the same fact seen from two sides.

The shared number is a diameter

Each ratio equals 2R2R, where RR is the radius of the circle passing through all three vertices. In a right triangle the hypotenuse is a diameter of that circle, which matches the ratio equalling cc.

This explains why the ratio is constant. It measures the size of the triangle’s circumscribed circle, so it does not change from one vertex to the next.

Law of sines or law of cosines: which one do you use?

Check what you are given, then ask whether a side and its opposite angle are both known. If they are, the law of sines can start. If not, it cannot.

Given Name Start with
Two angles and a side not between them AAS Law of sines
Two angles and the side between them ASA Law of sines (find the third angle first)
Two sides and an angle not between them SSA Law of sines (may be ambiguous)
Two sides and the angle between them SAS Law of cosines
Three sides SSS Law of cosines

With SAS or SSS, no side has a known opposite angle, so every ratio has two unknowns and the law of sines stalls. With three angles (AAA), the law only gives ratios between sides, so it describes a shape but not a size.

A useful habit is to write the givens beside the diagram and draw a line from each known angle to the side opposite it. If you see one complete pair, go with the law of sines.

How to solve a triangle with the law of sines (AAS and ASA)

These two cases always give exactly one triangle, so no tricks are needed. Take A=40∘A=40^\circ, B=65∘B=65^\circ and a=12a=12.

Step 1. Find the third angle:

C=180∘−40∘−65∘=75∘C=180^\circ-40^\circ-65^\circ=75^\circ

Step 2. Find bb using the known pair aa and AA:

b=12sin⁡65∘sin⁡40∘≈12(0.9063)0.6428≈16.92b=\frac{12\sin 65^\circ}{\sin 40^\circ}\approx\frac{12(0.9063)}{0.6428}\approx 16.92

Step 3. Find cc the same way:

c=12sin⁡75∘sin⁡40∘≈12(0.9659)0.6428≈18.03c=\frac{12\sin 75^\circ}{\sin 40^\circ}\approx\frac{12(0.9659)}{0.6428}\approx 18.03

In ASA problems, find the third angle first. The side between the two given angles is opposite that third angle, which creates the matched pair you need. Skipping this step is the usual reason students feel stuck on ASA.

Try this: Draw a triangle with A=55∘A=55^\circ, B=50∘B=50^\circ and a=10a=10. Find CC first, then bb and cc. You should get b≈9.35b\approx 9.35 and c≈11.79c\approx 11.79.

The ambiguous case of the law of sines (SSA)

Two triangles built from the same SSA data: A = 30°, a = 5, b = 8, drawn to scale
With A = 30°, a = 5 and b = 8, side a reaches the base at two points, giving B₁ = 53.13° and B₂ = 126.87°.

With two sides and a non-included angle, the triangle may not be unique. The reason sits in the formula: when you solve for an angle, you get a sine value, and two angles between 0∘0^\circ and 180∘180^\circ share the same sine, namely θ\theta and 180∘−θ180^\circ-\theta. On the unit circle, sine is the height, so a point in the first quadrant and its mirror in the second have equal heights.

Your calculator hides this. The inverse trigonometric functions return only the acute angle, so the obtuse one is yours to find. Because the two candidate angles are supplementary, subtract the calculator’s answer from 180∘180^\circ.

To decide how many triangles exist before any arithmetic, compute the height h=bsin⁡Ah=b\sin A (with AA acute and aa opposite AA):

  • If a<ha<h, no triangle exists.
  • If a=ha=h, one right triangle exists.
  • If h<a<bh<a<b, two triangles exist.
  • If a≥ba\ge b, one triangle exists.

Picture side aa as a gate swinging from vertex CC toward the base. Too short and it never touches, exactly right and it touches once, a bit longer and it touches in two places, and longer than bb it touches only once on the correct side.

Here is a two-triangle example: A=30∘A=30^\circ, a=5a=5, b=8b=8. The height is h=8sin⁡30∘=4h=8\sin 30^\circ=4, and 4<5<84<5<8, so expect two triangles.

sin⁡B=8sin⁡30∘5=0.8\sin B=\frac{8\sin 30^\circ}{5}=0.8

Then B1=sin⁡−1(0.8)≈53.13∘B_1=\sin^{-1}(0.8)\approx 53.13^\circ and B2=180∘−53.13∘=126.87∘B_2=180^\circ-53.13^\circ=126.87^\circ. Both fit with AA, since 30∘+126.87∘<180∘30^\circ+126.87^\circ<180^\circ. Finish each triangle separately:

C1=96.87∘, c1=5sin⁡96.87∘sin⁡30∘≈9.93C2=23.13∘, c2=5sin⁡23.13∘sin⁡30∘≈3.93C_1=96.87^\circ,\ c_1=\frac{5\sin 96.87^\circ}{\sin 30^\circ}\approx 9.93 \qquad C_2=23.13^\circ,\ c_2=\frac{5\sin 23.13^\circ}{\sin 30^\circ}\approx 3.93

Quick check

A triangle has A=40∘A=40^\circ, a=5a=5 and b=10b=10. How many triangles fit these measurements?

What if sin B is greater than 1 or the second angle is too big?

Two failures show up in SSA problems, and each has a clean test. If sin⁡B>1\sin B>1, no triangle exists. For A=35∘A=35^\circ, a=4a=4, b=9b=9:

sin⁡B=9sin⁡35∘4≈1.29\sin B=\frac{9\sin 35^\circ}{4}\approx 1.29

No angle has a sine above 11, so the side of length 44 is too short to reach the base. The height check agrees, since h=9sin⁡35∘≈5.16>4h=9\sin 35^\circ\approx 5.16>4.

The second failure is quieter. Take A=42∘A=42^\circ, a=15a=15, b=11b=11. Then sin⁡B=11sin⁡42∘15≈0.4907\sin B=\frac{11\sin 42^\circ}{15}\approx 0.4907, so B≈29.4∘B\approx 29.4^\circ. The other candidate is 180∘−29.4∘=150.6∘180^\circ-29.4^\circ=150.6^\circ, whose reference angle is the 29.4∘29.4^\circ you started with. But 42∘+150.6∘=192.6∘42^\circ+150.6^\circ=192.6^\circ, which is more than 180∘180^\circ, so it is rejected. One triangle remains: C=108.6∘C=108.6^\circ and c≈21.2c\approx 21.2.

You can predict this without the sine at all. Here a>ba>b, so angle AA is larger than angle BB, and BB must be acute. Whenever the known side is the longer of the two sides, the answer is unique.

How do you check a law of sines answer?

A solved triangle should pass three quick tests, and each takes seconds:

  1. The three angles add to exactly 180∘180^\circ.
  2. The longest side sits opposite the largest angle, and the shortest opposite the smallest.
  3. The three ratios asin⁡A\frac{a}{\sin A}, bsin⁡B\frac{b}{\sin B} and csin⁡C\frac{c}{\sin C} agree to rounding.

For the AAS example earlier, 12sin⁡40∘≈18.67\frac{12}{\sin 40^\circ}\approx 18.67, 16.92sin⁡65∘≈18.67\frac{16.92}{\sin 65^\circ}\approx 18.67 and 18.03sin⁡75∘≈18.67\frac{18.03}{\sin 75^\circ}\approx 18.67. Matching ratios are strong evidence that no step went wrong.

The rounding trap

Keep full calculator values until the last step. Rounding BB to 44.8∘44.8^\circ and then using it to find another side can shift the final digit, and a rounded sin⁡B\sin B can shift it more.

The second test also catches the most common slip: swapping which side goes with which angle. If your “longest” side faces your smallest angle, the pairs got crossed.

Where is the law of sines used in real life?

Surveyors use it to measure distances that cannot be walked, such as the width of a river or the distance to a distant summit. They measure a baseline, then the angles from each end to the target. The angle at the target is 180∘180^\circ minus the other two, and the baseline is opposite it, which completes the matched pair. This method is called triangulation, and it underlies classic map-making and much of navigation.

Ship and aircraft positioning works the same way. Two bearings from known points fix a position, and the law of sines converts those angles into distances. Astronomers estimate distances to nearby stars from the angles seen at opposite sides of Earth’s orbit.

For heights, the law pairs well with angles of elevation and depression. When you cannot walk straight to the base of a tower, take two elevation angles from two points on the same line, and the law of sines gives the slanted distance before right-triangle trigonometry gives the height.

Quick check

Two observers stand 100100 m apart on level ground at points AA and BB. Both sight a boat at CC. The angle at AA is 50∘50^\circ and the angle at BB is 70∘70^\circ. How far is the boat from AA?

Can you use the law of sines with radians?

Yes. The ratio asin⁡A\frac{a}{\sin A} does not care about the unit, as long as the calculator is in the matching mode. In radians the angle sum becomes π\pi instead of 180∘180^\circ. For A=π6A=\frac{\pi}{6}, B=π3B=\frac{\pi}{3} and a=3a=3:

b=3sin⁡π3sin⁡π6=3⋅3212=33≈5.20b=\frac{3\sin\frac{\pi}{3}}{\sin\frac{\pi}{6}}=\frac{3\cdot\frac{\sqrt{3}}{2}}{\frac{1}{2}}=3\sqrt{3}\approx 5.20

The usual failure is a mode mismatch. If you type sin⁡30\sin 30 with the calculator in radian mode, you get about −0.988-0.988, and a negative side length is a signal to check the mode. If a problem mixes units, convert first using degrees to radians or radians to degrees.

Practice problems

0 of 5 solved

  1. In triangle ABCABC, A=50∘A=50^\circ, B=60∘B=60^\circ and a=8a=8. Find side bb to two decimal places.

  2. In triangle ABCABC, A=35∘A=35^\circ, B=75∘B=75^\circ and c=14c=14. Find side aa to two decimal places.

  3. In triangle ABCABC, A=70∘A=70^\circ, a=12a=12 and b=9b=9. Find angle BB to the nearest tenth of a degree.

  4. In triangle ABCABC, A=40∘A=40^\circ, a=7a=7 and b=9b=9. Find every possible value of angle BB to the nearest tenth of a degree.

  5. In triangle ABCABC, A=40∘A=40^\circ, a=7a=7, b=9b=9 and angle BB is obtuse. Find side cc to two decimal places.

Common questions

What is the law of sines used for?

It finds missing sides and angles in any triangle when you know an angle and its opposite side, plus one more measurement. It is the standard tool for AAS, ASA and SSA triangles, and for triangulation in surveying and navigation.

When should you use the law of sines instead of the law of cosines?

Use the law of sines when you have a matched pair, meaning a side and the angle directly across from it. If you only have two sides and the angle between them (SAS), or all three sides (SSS), start with the law of cosines.

What is the ambiguous case of the law of sines?

It happens with SSA information (two sides and an angle not between them). Because sin⁡θ=sin⁡(180∘−θ)\sin\theta=\sin(180^\circ-\theta), the equation can give two valid angles, one valid angle or none, so you must test each result.

Does the law of sines work for right triangles?

Yes. With a right angle, sin⁡90∘=1\sin 90^\circ=1, so the law reduces to the ordinary definition of sine as opposite over hypotenuse. It works for acute, right and obtuse triangles alike.

Why does my calculator never give an obtuse angle?

The inverse sine key only returns angles from −90∘-90^\circ to 90∘90^\circ. To find the obtuse possibility, subtract the calculator's answer from 180∘180^\circ and check whether the angle sum still stays under 180∘180^\circ.

Can the law of sines find the area of a triangle?

Not directly, but it comes from the same idea. Area equals 12absin⁡C\frac{1}{2}ab\sin C, and setting the three versions of that formula equal gives the law of sines.

Up next