Law of Sines & Law of Cosines
SOH-CAH-TOA needs a right angle, but most real triangles have none. Two formulas — the Law of Sines and the Law of Cosines — solve any triangle. Learn which to reach for, and learn to handle the tricky ambiguous SSA case.
§1 Beyond Right Triangles
SOH-CAH-TOA only works when a triangle has a right angle. But triangles in navigation, architecture, and physics are rarely right triangles. The Law of Sines and Law of Cosines together solve every possible combination of known sides and angles in any (oblique) triangle.
The whole topic comes down to matching your given information to the right tool. Two angles (and any side) or two sides plus a non-included angle $\Rightarrow$ Law of Sines. Two sides plus the included angle, or all three sides $\Rightarrow$ Law of Cosines.
Throughout, sides $a$, $b$, $c$ lie opposite angles $A$, $B$, $C$ respectively. Getting this labeling right is half the battle.
§2 Which Law? Read the Given Information
| You are given | Abbreviation | Use |
|---|---|---|
| Two angles + a non-included side | AAS | Law of Sines |
| Two angles + the included side | ASA | Law of Sines |
| Two sides + a non-included angle | SSA | Law of Sines (ambiguous — check) |
| Two sides + the included angle | SAS | Law of Cosines |
| All three sides | SSS | Law of Cosines |
§3 The Law of Sines
In any triangle $ABC$:
$\dfrac{a}{\sin A}=\dfrac{b}{\sin B}=\dfrac{c}{\sin C}$, or equivalently $\dfrac{\sin A}{a}=\dfrac{\sin B}{b}=\dfrac{\sin C}{c}$. Use the one pair whose side and opposite angle are both known, then solve for the unknown.
AAS / ASA example. $A=42^\circ$, $B=78^\circ$, $a=15$. First $C=180^\circ-42^\circ-78^\circ=60^\circ$. Then $b=\dfrac{15\sin 78^\circ}{\sin 42^\circ}\approx\dfrac{15\times0.9781}{0.6691}\approx21.9$ and $c=\dfrac{15\sin 60^\circ}{\sin 42^\circ}\approx\dfrac{15\times0.8660}{0.6691}\approx19.4$.
§4 The Ambiguous Case (SSA)
When given two sides and a non-included angle (SSA), there may be 0, 1, or 2 valid triangles. This is the ambiguous case. Given $a$, $b$, and acute angle $A$, compute the altitude $h=b\sin A$ first.
| Condition | Number of triangles |
|---|---|
| $a | None — side too short to reach the base. |
| $a=h$ | Exactly one (a right triangle). |
| $h | Two — vertex $C$ has two possible positions. |
| $a\ge b$ | Exactly one. |
§5 The Law of Cosines
The Law of Cosines generalizes the Pythagorean Theorem. When $A=90^\circ$, $\cos A=0$ and the first form reduces to $a^2=b^2+c^2$.
$a^2=b^2+c^2-2bc\cos A$, $b^2=a^2+c^2-2ac\cos B$, $c^2=a^2+b^2-2ab\cos C$. Use it for SAS (find the third side) or SSS (find any angle). To solve for an angle, rearrange: $\cos A=\dfrac{b^2+c^2-a^2}{2bc}$.
SAS example. $b=10$, $c=14$, $A=56^\circ$. Then $a^2=10^2+14^2-2(10)(14)\cos 56^\circ=296-280\times0.5592\approx139.4$, so $a\approx\sqrt{139.4}\approx11.8$.
SSS example. $a=8$, $b=11$, $c=15$. Then $\cos A=\dfrac{11^2+15^2-8^2}{2(11)(15)}=\dfrac{282}{330}\approx0.8545$, so $A=\cos^{-1}(0.8545)\approx31.4^\circ$.
§6 Area from SAS
Two sides and the included angle don't just fix a triangle — they hand you its area with no height measurement.
$\text{Area}=\dfrac{1}{2}ab\sin C$, where $C$ is the angle between sides $a$ and $b$. By symmetry $\dfrac{1}{2}bc\sin A=\dfrac{1}{2}ac\sin B$ work too. Example: $a=8$, $b=5$, $C=60^\circ$ give $\text{Area}=\dfrac{1}{2}(8)(5)\sin 60^\circ=20\cdot\dfrac{\sqrt3}{2}=10\sqrt3\approx17.3$. Because $\sin(180^\circ-C)=\sin C$, this holds even when $C$ is obtuse — the angle must just be the included one.
§7 Don't Confuse These
| Idea | Correct meaning | Common trap |
|---|---|---|
| Sines vs Cosines | Sines for AAS/ASA/SSA; Cosines for SAS/SSS. | Trying the Law of Sines on SSS or SAS, where it cannot start. |
| Ambiguous case | SSA may give 0, 1, or 2 triangles. | Reporting one answer without checking for a second. |
| Side–angle labels | Side $a$ is opposite angle $A$. | Pairing a side with the wrong angle in the proportion. |
| Cosines arithmetic | $a^2=b^2+c^2-2bc\cos A$ — subtract the last term. | Forgetting the subtraction or the factor $2bc$. |
| Included angle (area) | The angle in $\tfrac12 ab\sin C$ sits between $a$ and $b$. | Using a non-included angle in the area formula. |
| Rounding | Keep $\ge4$ decimals until the last step. | Rounding intermediate values and accumulating error. |
§8 Worked Examples
First classify the given data (AAS, ASA, SSA, SAS, SSS), then pick the matching law.
ASA — find a side
$A=32^\circ$, $C=77^\circ$, $b=25$. Find $a$.
Answer: $B=71^\circ$; $a=\dfrac{25\sin 32^\circ}{\sin 71^\circ}\approx14.0$.
AAS — find a side
$A=40^\circ$, $B=65^\circ$, $a=12$. Find $b$.
Answer: $b=\dfrac{12\sin 65^\circ}{\sin 40^\circ}\approx\dfrac{12\times0.9063}{0.6428}\approx16.9$.
SAS — find a side
$b=7$, $c=9$, $A=48^\circ$. Find $a$.
Answer: $a^2=49+81-126\cos 48^\circ\approx45.7$, so $a\approx6.8$.
SSS — find an angle
$a=6$, $b=8$, $c=11$. Find $C$.
Answer: $\cos C=\dfrac{36+64-121}{2(6)(8)}=\dfrac{-21}{96}\approx-0.2188$, so $C\approx102.6^\circ$.
SSA — count triangles
$A=30^\circ$, $a=5$, $b=8$. How many triangles?
Answer: $h=8\sin 30^\circ=4$. Since $htwo.
Area from SAS
$a=9$, $b=12$, included $C=40^\circ$. Find the area.
Answer: $\tfrac12(9)(12)\sin 40^\circ\approx54\times0.6428\approx34.7$.
§9 Self-Check
Classify the data first, then choose the law. Keep four decimals until the final answer.
- In $\triangle ABC$, $A=50^\circ$, $B=60^\circ$, $a=10$. Find side $b$.
- In $\triangle ABC$, $a=7$, $b=9$, included $C=58^\circ$. Find side $c$.
- In $\triangle ABC$, $a=5$, $b=6$, $c=7$. Find angle $A$.
- Given $A=35^\circ$, $a=6$, $b=10$, determine how many triangles are possible.
- Find the area of a triangle with sides $a=10$, $b=14$, and included angle $C=72^\circ$.
- You know $A=40^\circ$, $C=85^\circ$, and the included side $b=20$ — which law applies, and why?
Show Answers
- $b=\dfrac{10\sin 60^\circ}{\sin 50^\circ}\approx\dfrac{10\times0.8660}{0.7660}\approx11.3$.
- $c^2=7^2+9^2-2(7)(9)\cos 58^\circ\approx130-126\times0.5299\approx63.2$, so $c\approx7.9$.
- $\cos A=\dfrac{6^2+7^2-5^2}{2(6)(7)}=\dfrac{60}{84}\approx0.7143$, so $A\approx44.4^\circ$.
- $h=10\sin 35^\circ\approx5.736$. Since $htwo triangles.
- $\tfrac12(10)(14)\sin 72^\circ\approx70\times0.9511\approx66.6$.
- Law of Sines: this is ASA (two angles with the included side). Find $B=180^\circ-40^\circ-85^\circ=55^\circ$, then use $\tfrac{a}{\sin A}=\tfrac{b}{\sin B}$.