Precalculus & Trig

Law of sines and law of cosines

Solve any triangle, not just right triangles: which law to use, the ambiguous case, and triangle area formulas.

Cheat sheet · Precalculus · Trig · 5 sections

1Labels

Sides a, b, c are opposite angles A, B, C.

2The laws

Law of sines

Example, , :

Law of cosines

Example, , : ,

…solved for the angle

ExampleSides 3, 4, 6: ,

3Which law?

You knowUse
Two angles and a side (AAS or ASA)Law of sines (third angle = 180° − the other two)
Two sides and the angle between them (SAS)Law of cosines for the third side
All three sides (SSS)Law of cosines for an angle (start with the largest)
Two sides and an angle not between them (SSA)Law of sines; check the ambiguous case

4The ambiguous case (SSA)

With sides a, b and angle A known, sin B = b·sin A / a can give zero, one or two triangles. If sin B > 1 there is no triangle. Otherwise B and 180° − B are both candidates: keep each one for which the angles still add to less than 180°.

5Area of a triangle

Two sides and the angle between

Example, , : area

Heron's formula

ExampleSides 5, 6, 7: , area

Related