Learn

Law of Sines and Cosines: How to Choose the Right Law for Any Triangle

A cabin sits across a canyon no tape can cross. The surveyor paces off two reachable trails — 30 km and 54 km — and reads the angle where they meet: 46°. Three numbers, and the unreachable distance falls out of the law of sines and cosines. One catch: the two laws are not interchangeable — hand SAS data to the wrong one and the ratios refuse to pair. Choosing between the law of sines and cosines is a sixty-second skill: a label check, a pairing test, one warning case.

One Triangle, Six Parts: Where the Law of Sines and Cosines Begins

Every triangle carries six parts — three sides and three angles. Any three of them, provided one is a side, lock in the other three. That is the promise of the law of sines and cosines: measure what you can reach, compute what you cannot.

The canyon triangle holds exactly three knowns: sides a=30a = 30 and b=54b = 54, meeting at C=46°C = 46°. The third side stays unmeasured — for now.

Naming is standard: side aa faces angle AA, side bb faces BB, side cc faces CC. Blue marks the knowns; the red question mark is the wanted side. Every law of sines and cosines problem starts from a picture like this. Which tool fits the job? Read the givens, and the next block turns them into the law of sines and cosines decision map.

ABCa = 30b = 54c = ?46°
The canyon survey as drawn: sides a = 30 and b = 54 meet at C = 46°. The wanted side c is drawn to its true length and marked ? — the law of sines and cosines recovers it in Example 2.

Which Law of Sines and Cosines? Read the Case First

Triangles arrive in four data shapes, and each shape names its own law of sines and cosines tool. A 1908 surveying classic listed them: two angles and one side; two sides and the included angle; two sides and an opposite angle; three sides. Modern classes code them ASA, SAS, SSA, SSS — and the law of sines and cosines splits them between two tools:

GivenCaseFirst toolWhy
three sidesSSSlaw of cosinesno angle to pair with a side
two sides + included angleSASlaw of cosinesthe angle sits between the sides, opposite neither
two angles + any sideAAS / ASAlaw of sinesa side and its opposite angle arrive paired
two sides + non-included angleSSAlaw of sines + checkpaired, but the supplement may also fit

Three steps pick the tool in seconds:

  1. List the givens. Count the sides and angles; write the case code.
  2. Hunt a side–angle pair. A side with its own opposite angle lets the law of sines fire at once. SSS and SAS own no pair, so the law of cosines makes the entry.
  3. SSA? Test the supplement. The law of sines and cosines sine half reports an acute angle; the partner 180°B180° - B gets a trial too.

Four rows, two tools — the law of sines and cosines division of labor. Run the steps on the canyon data (SAS). The map below names the cosine law: the law of sines and cosines verdict in one glance.

SSS (a, b, c)SAS (a, b, C)AAS / ASA (A, B, a)SSA (a, b, A)Law of Cosinesa² = b² + c² − 2bc·cos ALaw of Sinesa/sin A = b/sin B = c/sin CB or 180° − B ?
The law of sines and cosines decision map — SSS and SAS flow to the law of cosines, AAS and ASA flow to the law of sines, and SSA flows there too — after testing the supplement B or 180° − B.

The Two Formulas Behind the Law of Sines and Cosines

Law of Sines — the sides of a triangle are proportional to the sines of the opposite angles. This half of the law of sines and cosines lives on ratios:

asinA=bsinB=csinC\frac{a}{\sin A}=\frac{b}{\sin B}=\frac{c}{\sin C}

Each ratio carries a bonus meaning: any side over the sine of its angle equals 2R2R, the circumscribed circle's diameter.

Law of Cosines — the square of any side equals the squares of the other two, minus twice their product times the cosine of the included angle. This half of the law of sines and cosines lives on squares:

a2=b2+c22bccosAa^2=b^2+c^2-2bc\cos A

Rotate the letters for b2b^2 and c2c^2; all three forms share one shape.

SymbolStands for
A,B,CA, B, Cthe three angles
a,b,ca, b, cthe sides opposite them

Two formulas, one toolkit — the law of sines and cosines pair. Why this pairing and never the reverse? A 1912 textbook states it best. An angle found through a sine may be ambiguous, since supplementary angles share one sine. An angle found through a cosine is never ambiguous, since each cosine matches exactly one angle. That is the deep reason SSS angle-hunting belongs to the cosine side of the law of sines and cosines toolkit. Ratios for pairs; squares for the rest.

SSA: The One Case Where the Law of Sines and Cosines Wobbles

Hand the sine half of the law of sines and cosines two sides and a sin1\sin^{-1} key confesses only the acute candidate. The obtuse partner, 180°B180° - B, carries the same sine and deserves a trial. A classic drill: C=60°C = 60°, b=23b = 2\sqrt{3}, c=32c = 3\sqrt{2}, find BB.

sinB=bsinCc=233232=12\sin B=\frac{b\sin C}{c}=\frac{2\sqrt{3}\cdot\frac{\sqrt{3}}{2}}{3\sqrt{2}}=\frac{1}{\sqrt{2}}

So B=45°B = 45° or B=135°B = 135°. Test the partner: 60°+135°=195°>180°60° + 135° = 195° > 180°, so 135°135° is out. Then B=45°B = 45° and A=75°A = 75°. The supplement test is the last gate of every law of sines and cosines decision.

SSA counting in one breath. No triangle if the swinging side falls short of bsinAb\sin A. One triangle if the given angle is obtuse or the swinging side is longer than the other given side. Two only when the angle is acute and the swinging side falls between those two lengths. That is the wobbly row of the law of sines and cosines map — its full walkthrough is on the ambiguous-case page.

Example 1 · SSS: The Cosine Half of the Law of Sines and Cosines

Problem. A triangular brace has sides a=7a = 7, b=5b = 5, c=8c = 8. Find all three angles. (Hall & Knight, 1912)

Answer: A=60°A = 60°, B38.2°B \approx 38.2°, C81.8°C \approx 81.8° — the law of sines and cosines cosine branch.

  1. SSS data: no side–angle pair exists, so the cosine half of the law of sines and cosines leads.
  2. cosA=b2+c2a22bc=25+644980=12\cos A=\dfrac{b^2+c^2-a^2}{2bc}=\dfrac{25+64-49}{80}=\dfrac{1}{2}, so A=60°A = 60°.
  3. cosB=a2+c2b22ac=49+6425112=1114\cos B=\dfrac{a^2+c^2-b^2}{2ac}=\dfrac{49+64-25}{112}=\dfrac{11}{14}, so B38.2°B \approx 38.2°.
  4. C=180°60°38.2°=81.8°C = 180° - 60° - 38.2° = 81.8°. The law of sines and cosines angle check: 60+38.2+81.8=18060 + 38.2 + 81.8 = 180.

Both cosines came out positive, so every angle is acute. A negative cosine would flag the obtuse corner on sight — another law of sines and cosines tell.

ABCa = 7b = 5c = 860°38.2°81.8°
The 7-5-8 triangle of Example 1 drawn to true scale: cos A = 1/2 makes A exactly 60°, and the angles total 180° — the law of sines and cosines cosine branch checks itself.

Example 2 · SAS: The Law of Sines and Cosines Working as a Team

Problem. Back at the canyon: a=30a = 30, b=54b = 54, C=46°C = 46°. Solve the triangle. (Granville, 1908)

Answer: c39.6c \approx 39.6, A33.1°A \approx 33.1°, B100.9°B \approx 100.9° — the full law of sines and cosines handoff.

  1. Two sides and the included angle: the law of cosines enters first. c2=302+5422(30)(54)cos46°1565.3c^2 = 30^2 + 54^2 - 2(30)(54)\cos 46° \approx 1565.3, so c39.6c \approx 39.6.
  2. A side–angle pair now exists (cc with CC), and the sine half of the law of sines and cosines takes over. Aim at the angle opposite the smaller side: sinA=30sin46°39.60.545\sin A=\dfrac{30\sin 46°}{39.6}\approx 0.545, so A33.1°A \approx 33.1°.
  3. Subtract for the last angle: B=180°46°33.1°=100.9°B = 180° - 46° - 33.1° = 100.9°. Letting 180°180° do the work dodges the trap arcsin sets for obtuse angles.
  4. Check: 33.1+100.9+46=18033.1 + 100.9 + 46 = 180 — the law of sines and cosines cross-check passes. The 1908 tables printed 39.66, modern calculators 39.56 — 39.639.6 covers both.

Two laws, one solution — the team play that gives the law of sines and cosines its name, and the canyon cabin its distance.

Example 3 · AAS: The Sine Half of the Law of Sines and Cosines Runs Solo

Problem. A lookout tower is sighted: a=24.31a = 24.31 ft, A=45°18A = 45°18', B=22°11B = 22°11'. Solve the triangle. (Wentworth & Smith, 1911)

Answer: C=112°31C = 112°31', b12.9b \approx 12.9 ft, c31.6c \approx 31.6 ft — the law of sines and cosines sine branch alone.

  1. Two angles given, so the third is free: C=180°45°1822°11=112°31C = 180° - 45°18' - 22°11' = 112°31'.
  2. Two side–angle pairs now exist, and the sine half of the law of sines and cosines does everything: b=asinBsinA=24.31sin22°11sin45°1812.9b=\dfrac{a\sin B}{\sin A}=\dfrac{24.31\sin 22°11'}{\sin 45°18'}\approx 12.9.
  3. c=asinCsinA31.6c=\dfrac{a\sin C}{\sin A}\approx 31.6. On a calculator, sin112°31\sin 112°31' may be typed as sin67°29\sin 67°29', its supplement — a law of sines and cosines calculator habit.
  4. Check: bb is the shortest side and faces the smallest angle, 22°1122°11' — the order matches, a law of sines and cosines habit worth keeping.
Problem 1

Two nature-trail segments leave the same ranger station: one runs 4 km, the other 6 km, and they form a 60° angle at the station. A bridge crew needs the straight-line distance between the two trail ends. Which law of sines and cosines tool applies, and how long is that distance to the nearest tenth?

00:00
Page 1
Problem 2

A triangular shoreline lot has sides 6, 11, and 13 (in hundreds of meters). The permit office asks for the lot's largest angle. Use the law of sines and cosines method to find it to the nearest tenth.

00:00
Page 1
Problem 3

A point AA on level ground sits 48.6 ft from the foot CC of a railroad embankment; the slope from CC to the top BB measures 84 ft, and the angle BACBAC at AA is 21.5°. Find the distance ABAB to the nearest tenth — the SSA branch of the law of sines and cosines.

00:00
Page 1

One-Minute Law of Sines and Cosines Recap

The whole law of sines and cosines method in four lines:

  1. SSS or SAS — the law of sines and cosines cosine half first; sines finish the angles.
  2. AAS or ASA — the law of sines and cosines sine half alone, after 180°180° frees the third angle.
  3. SSA — the law of sines and cosines wobble row: sines plus the supplement test, counting 0, 1, or 2 triangles first.
  4. Any angle hunt without a pair — let cosines report it, the law of sines and cosines safety rule: a cosine never hides a supplement.

Five Mistakes in the Law of Sines and Cosines Choice

These five trip up most first attempts at the law of sines and cosines.

  1. Three angles, no side. The shape is fixed but the size is not; infinitely many similar triangles fit, so no law of sines and cosines pass can finish it.
  2. Forcing SAS or SSS into the sine law. Without a side opposite a known angle, every ratio in asinA=bsinB\frac{a}{\sin A}=\frac{b}{\sin B} holds two unknowns — the proportion cannot start.
  3. Trusting arcsin blindly. sin1\sin^{-1} only reports acute angles; in SSA the partner 180°B180° - B shares the same sine and must be tested.
  4. Hunting an SSS angle through sines. Two angles share one sine, so the detour breeds ambiguity; the law of sines and cosines cosine half hands every value exactly one angle.
  5. Pinning a near-right angle by its sine. Near 90°90° the sine changes too slowly to fix the angle. Compute the smallest angle first and subtract, as Example 2 produced B=100.9°B = 100.9°.

Five traps, one cure: read the case before touching the calculator — the entire law of sines and cosines discipline.

Frequently asked questions

1

When should I use the law of sines and cosines?

Read the given parts. SSS or SAS: law of cosines first, sines for the remaining angles — Example 2 shows the handoff. AAS or ASA: sines alone. SSA: sines plus a supplement check. The decision map settles any law of sines and cosines pick with the law of sines and cosines loop: list, pair, check.

2

What is the difference between the law of sines and law of cosines?

The law of sines pairs each side with its opposite angle and needs one such pair in the data. The law of cosines ties all three sides to one included angle and needs no pair. That contrast is the heart of the law of sines and cosines choice — ratios when a pair exists, squares when it does not.

3

What does the sine law cosine law ratio a/sin A equal?

In the law of sines and cosines, every ratio $\frac{a}{\sin A}$ equals $2R$, the diameter of the circumscribed circle. That shared diameter is why all three ratios match. It is also why the sine law cosine law pairing holds, no matter which pair the law of sines and cosines grabs.

4

Can the law of cosines and sines solve a triangle with only three angles?

No. Angles alone fix a shape, not a size — infinitely many equiangular triangles fit the same data. A side is the one input the law of sines and cosines cannot do without; the law of cosines and sines only lock in once one appears.

5

Do the law of sines law of cosines rules work on right triangles?

Yes. With $A = 90°$, the cosine law $a^2 = b^2 + c^2 - 2bc\cos A$ drops its last term and becomes the Pythagorean theorem — once called the generalized Pythagorean theorem. Right angles never break the law of sines and cosines; they just simplify it.

6

Where can I get a law of cosines and law of sines worksheet?

The three test problems above are a ready-made set: an SAS trail bridge (60°), an SSS lot with sides 6-11-13, and an SSA embankment survey. For deeper SSA practice, the ambiguous-case page doubles the triangle count. It is the natural next law of cosines and law of sines worksheet after this law of sines and cosines starter.

Related practice