Guides · 9 min read
Law of Sines vs Law of Cosines: Which One to Use (and the Ambiguous SSA Case)
Right-triangle trigonometry has one tool - SOHCAHTOA. Oblique triangles have two, and most of the difficulty students report here is not the algebra. It is picking the wrong law, grinding through it, and getting an answer that quietly loses a solution.
The choice is not a matter of taste: each law needs a specific arrangement of known values, and for any given triangle usually only one of them can start. This guide gives you the decision rule, works a triangle of every type, and treats the ambiguous SSA case in the detail it deserves.
The two laws, stated once
The law of sines says that in any triangle, each side is proportional to the sine of the angle opposite it. The shared ratio is not arbitrary: it equals 2R, twice the radius of the triangle's circumscribed circle.
The law of cosines is the Pythagorean theorem with a correction term for the angle not being 90°: set A = 90° and cos A = 0, and it collapses back to a² = b² + c². It also rearranges to give an angle from three sides, which is the form you want for SSS.
Throughout, side a is opposite angle A, side b opposite angle B, side c opposite angle C.
Rearranged for an angle, the second becomes cos A = (b² + c² − a²) / (2bc).
The decision rule
The law of sines needs a complete pair - a side together with the angle opposite it. Without one, every equation has two unknowns and the law is useless. The law of cosines needs no such pair: two sides and the angle between them, or all three sides. So classify the given data before writing anything down. There are five configurations, each with one correct opening move.
- AAS - two angles and a side not between them: subtract for the third angle, then law of sines. One triangle.
- ASA - two angles and the side between them: subtract for the third angle, creating a complete pair, then law of sines. One triangle.
- SAS - two sides and the angle between them: law of cosines for the third side, then finish. One triangle.
- SSS - three sides: law of cosines rearranged for an angle. One triangle, provided the sides satisfy the triangle inequality.
- SSA - two sides and an angle not between them: law of sines, but this is the ambiguous case and may give zero, one, or two triangles. Check before you commit.
- AAA - three angles and no side: infinitely many similar triangles. The shape is fixed, the size is not, so no side can be found.
AAS and ASA: the law of sines does all the work
When two angles are known the third is free, because the angles sum to 180°. Find it first even when you do not obviously need it: on ASA data it manufactures the complete pair you were missing. There is never any ambiguity here - two angles fix the shape and one side fixes the scale.
Example 1 - AAS
In triangle ABC, A = 35°, B = 65° and a = 12. Solve the triangle.
- Third angle by subtraction.
- The pair (a, A) is complete, so the law of sines gives both remaining sides.
- Substitute for b.
- Substitute for c on the same ratio.
- Check the ordering: the largest angle C = 80° faces the largest side c ≈ 20.60, and the smallest angle A = 35° faces the smallest side a = 12.
In any triangle the side ordering matches the angle ordering. If yours does not, you have made a slip.
Answer. C = 80°, b ≈ 18.96, c ≈ 20.60.
SAS and SSS: the law of cosines opens, and should also close
With two sides and the included angle, no complete pair exists, so the law of sines cannot start. The law of cosines produces the third side in one line, and that creates the pair you were missing.
The trap is in what you do next. Once all three sides are known it is tempting to finish with the law of sines, because the algebra is lighter. But arcsine only returns values in [−90°, 90°], so it can never report an obtuse angle - if the angle you want is obtuse, your calculator hands back its acute supplement with no warning.
Two defences. Finish every angle with the law of cosines, whose arccosine covers the full 0° to 180°; or use the law of sines only on angles you already know to be acute, which means solving for the largest angle first.
Example 2 - SAS, and why the closing law matters
In triangle ABC, b = 7, c = 10 and the included angle A = 40°. Solve the triangle.
- Apply the law of cosines to the side opposite the known angle.
- Evaluate, with cos 40° ≈ 0.7660.
- Now find angle B, using the rearranged law of cosines rather than the law of sines.
- Take the arccosine.
- Finish by subtraction.
- The trap, concretely. Solving for C with the law of sines gives sin C ≈ 0.9948, and arcsin(0.9948) ≈ 84.1° - the supplement of the true answer.
The check that catches it: c = 10 is the longest side, so C must be the largest angle, and 84.1° is smaller than 95.9°.
Answer. a ≈ 6.46, B ≈ 44.1°, C ≈ 95.9°. The triangle is obtuse at C.
Example 3 - SSS
In triangle ABC, a = 8, b = 11 and c = 15. Solve the triangle.
- Check the triangle inequality first: 8 + 11 = 19 > 15, so a triangle exists.
If the two shorter sides do not exceed the longest, the law of cosines returns a cosine outside [−1, 1].
- Solve for the largest angle first - opposite c = 15 - because it is the only one that can be obtuse.
- The cosine is negative, so C is obtuse. Arccosine reports this correctly.
- The other two angles must be acute, so the law of sines is now safe.
- Take the arcsine and subtract for the last angle.
Answer. A ≈ 31.3°, B ≈ 45.6°, C ≈ 103.1°. Largest side opposite largest angle, as expected.
The ambiguous case: SSA
SSA gives you two sides and an angle not between them - say sides a and b with angle A. Because the angle does not sit between the known sides, it does not pin the triangle down: you are swinging side a from the end of side b and asking where it meets the base, and a circular arc can cross a line twice.
The test is a single comparison. Let h = b sin A be the altitude from C to the line containing the base - the shortest length side a could have and still reach. Then compare a against h and against b.
If a second triangle exists, its angle B is the supplement of the first - because sin θ and sin(180° − θ) are equal.
- A acute and a < h: no triangle - side a is too short to reach the base.
- A acute and a = h: one triangle, right-angled at B.
- A acute and h < a < b: two triangles. This is the ambiguous case proper.
- A acute and a ≥ b: one triangle. The supplement would push the angle sum past 180°, so it is rejected.
- A obtuse or right and a > b: one triangle.
- A obtuse or right and a ≤ b: no triangle - the side opposite the largest angle must be the longest.
Example 4 - SSA with two solutions
In triangle ABC, a = 8, b = 11 and A = 40°. Solve the triangle - all of it.
- A is acute, so compute the altitude h and compare.
- Compare: h ≈ 7.07 < a = 8 < b = 11 - the two-triangle band, so expect two complete answers.
Doing this check first is what stops you reporting half the solution.
- Apply the law of sines for angle B.
- Take both angles with this sine: the calculator's acute value and its supplement.
- Test each against the angle sum. Both survive: 40 + 62.1 = 102.1 and 40 + 117.9 = 157.9, both under 180°.
This is the arithmetic that rejects the second triangle when a ≥ b - there the supplement pushes the sum past 180°.
- Finish the first triangle.
- Finish the second triangle.
Answer. Two triangles fit the data. Triangle 1: B ≈ 62.1°, C ≈ 77.9°, c ≈ 12.17. Triangle 2: B ≈ 117.9°, C ≈ 22.1°, c ≈ 4.68.
Once the triangle is solved, area is one more line
For Example 3, Heron's formula with a = 8, b = 11, c = 15 gives s = 17 and √(17 × 9 × 6 × 2) = √1836 ≈ 42.85. The SAS formula agrees: ½ × 8 × 11 × sin 103.1° ≈ 42.85. Two independent routes to one number is a good final check.
Use whichever matches the values you already have - they always agree.
A checklist that prevents most errors
These are the habits that separate a solve that survives marking from one that does not.
- Classify the data as AAS, ASA, SAS, SSS or SSA before writing an equation.
- If it is SSA, run the h = b sin A test before solving, never after.
- Prefer the law of cosines for any angle that might be obtuse: arccosine spans 0° to 180°, arcsine does not.
- With all three sides, solve the largest angle first; every remaining angle is then guaranteed acute.
- Check the side ordering matches the angle ordering. Largest side faces largest angle, always.
- Keep full precision until the final line, and check the calculator's angle mode before the first keystroke.
Frequently asked questions
Can I always use the law of cosines instead of the law of sines?
Whenever the law of cosines can start, it is the safer choice, because arccosine distinguishes acute from obtuse and arcsine does not. But it cannot start on AAS or ASA data, where you have only one side, and it cannot start on SSA either - the law of cosines applied to SSA produces a quadratic in the unknown side, whose two roots are precisely the two ambiguous triangles.
Why is SSA ambiguous when SAS is not?
In SAS the known angle sits between the two known sides, so the triangle is rigid - there is nothing left to vary. In SSA the angle is at one end and the opposite side swings freely, so the arc it traces can meet the base line in two places. That is why SAS has one solution and SSA can have two.
How do I know if a set of three sides forms a triangle at all?
The sum of any two sides must exceed the third; checking the two shortest against the longest is enough. If it fails, the law of cosines will return a cosine outside [−1, 1] and the arccosine will be undefined - which is the algebra telling you the same thing.
What does the 2R in the law of sines mean?
R is the radius of the circle through all three vertices, the circumcircle. So a/sin A is not just equal to b/sin B by coincidence; the common ratio has a geometric meaning, and rearranging gives R = a / (2 sin A) - a one-line way to find the circumradius once a triangle is solved.
In an exam, should I report both SSA triangles?
Yes, unless the question rules one out - for example by stating that the triangle is acute, or that a particular angle is obtuse, or by giving a diagram. Where two triangles genuinely satisfy the data, a solution presenting only one is incomplete and is usually marked as such.
Keep going
Practise it
Reading a method is not the same as running it under time pressure. The workspace drills this material in the quiz, and the triangle solver shows a worked solution for any triangle you type in.