The Law of Sines & Cosines
Two rules extend trigonometry to every triangle, not just the right-angled ones.
Two surveyors stand at either end of a lake and sight the same tree.
They can measure the distance between themselves, and the angle each one turns through. That is all.
There is no right angle anywhere in that triangle, so SOH-CAH-TOA has nothing to grip.
Yet the triangle is completely pinned down — two angles and a side leave no freedom at all.
If the shape is determined, some rule must recover the rest. The law of sines is that rule, and it works on every triangle there is.
Labelling comes first
Name the angles A, B, C and give each opposite side the matching lower-case letter.
Side a faces angle A. Every formula in this unit depends on that pairing being right.
Mislabelling is the single biggest source of wrong answers here, and it happens before any calculating starts.
Label the picture, not the formula
Write the letters onto the diagram before you reach for a rule. A side paired with the wrong angle gives a confident, wrong answer.
The law of sines: when a side and its angle come as a pair
asin A = bsin B holds in every triangle, so one complete pair unlocks the rest.
Use it when you know an angle and the side opposite it, plus one more piece.
That covers two angles and any side, or two sides and a non-included angle.
Look for a matching pair
If you can see a side and the angle facing it, the law of sines applies. If you cannot, you need the law of cosines instead.
The law of cosines: when no pair is available
c2 = a2 + b2 - 2abcos C is Pythagoras with a correction term for the angle not being square.
Use it with two sides and the included angle, or with all three sides and no angles.
When C is obtuse, cos C is negative and the correction adds, making c longer — exactly as the picture suggests.
The term that does the work
At C = 90° the correction vanishes and you are back to a2 + b2. The whole law is Pythagoras plus a lean.
Choosing between them
Two angles and a side, or a matching side-angle pair: law of sines.
Two sides with the angle between them, or three sides: law of cosines.
Start with the law of cosines when it applies, then finish with the law of sines, which is less arithmetic.
Find the largest angle first
After the law of cosines, use the sine rule on a smaller angle. That avoids the ambiguity, since only one angle in a triangle can be obtuse.
The ambiguous case
Given two sides and an angle not between them, two different triangles can sometimes fit the same measurements.
The reason is the one from the previous unit: sin 30° and sin 150° are equal, so the sine rule cannot tell them apart.
Always check whether the obtuse option still leaves the angles under 180°. If it does, both triangles are real.
Check the second answer
If the sine rule gives B = 40°, also test B = 140°. If A + 140° is still under 180°, there are two valid triangles and the problem has two answers.
Worked examples
Law of sines
In triangle ABC, A = 40°, B = 75° and a = 12. Find b to one decimal place.
- a and A are a matching pair, so the law of sines applies. A side with its opposite angle.
- bsin 75° = 12sin 40°. Set the two ratios equal.
- b = 12 sin 75°sin 40° ≈ 11.590.643 ≈ 18.0. Larger than a, as it should be — B is the bigger angle.
b ≈ 18.0
Law of cosines
A triangle has sides 8 and 11 with an included angle of 37°. Find the third side to one decimal place.
- No side-angle pair is available, so use the law of cosines. Two sides and the angle between them.
- c2 = 82 + 112 - 2(8)(11)cos 37°= 64 + 121 - 176(0.7986). Substitute directly.
- c2 ≈ 185 - 140.6 = 44.4, so c ≈ 6.7. Shorter than both sides, which a narrow included angle should give.
c ≈ 6.7
Finding an angle from three sides
A triangle has sides 5, 7 and 9. Find the largest angle to the nearest degree.
- The largest angle faces the longest side, so it is opposite 9. Biggest side, biggest angle.
- 81 = 25 + 49 - 2(5)(7)cos C, so 81 = 74 - 70cos C. Rearranged law of cosines.
- cos C = -770 = -0.1, giving C ≈ 96°. Negative cosine means obtuse — consistent with 81 > 25 + 49.
96°
Words to know
- Oblique triangle
- Any triangle with no right angle.
- Law of sines
- asin A = bsin B = csin C.
- Law of cosines
- c2 = a2 + b2 - 2abcos C.
- Included angle
- The angle between two given sides.
- Ambiguous case
- Two sides and a non-included angle, which can describe two different triangles.
Mistakes to watch for
Pairing a side with the wrong angle. Side a must face angle A. Using asin B produces an answer that looks reasonable and is not, so label the diagram before calculating.
Reaching for the law of sines with two sides and the included angle. There is no complete side-angle pair there, so the sine rule cannot start. That case needs the law of cosines.
Missing the second triangle in the ambiguous case. If sin B = 0.64 gives B = 40°, then B = 140° may also fit. Check whether the angles still total under 180° before discarding it.
Dropping the minus sign in the law of cosines. It is a2 + b2 - 2abcos C, and the subtraction is what makes a narrow angle give a short third side.
Trusting Pythagoras on a triangle with no right angle. 5, 7 and 9 do not satisfy a2+b2=c2, and using it anyway gives a length that no triangle has.
This is how every map was made before satellites. Surveyors walked a baseline, measured angles to distant landmarks, and triangulated outward across whole countries.
The Great Trigonometrical Survey of India ran for seventy years on these two rules, and measured the height of Everest to within a few metres.
The law of cosines contains Pythagoras. Put C = 90° and cos C = 0, and c2 = a2 + b2 - 2abcos C collapses to the familiar form.