Law of Sines & Law of Cosines
Right-triangle trig only works on right triangles. The Law of Sines and the Law of Cosines are the tools for every other triangle — they let you solve for missing sides and angles in any triangle at all, as long as you know enough pieces to pin the triangle down.
Students rarely struggle with the formulas themselves; the real question is which law to reach for. The decision comes down to what you're given. If you know an angle and the side directly across from it, the Law of Sines works. If you know two sides and the angle between them, or all three sides, you need the Law of Cosines. This article covers both formulas and drills that decision.
The Law of Sines
Label the triangle so side is opposite angle , side is opposite angle , and side is opposite angle . The Law of Sines says the ratio of each side to the sine of its opposite angle is the same all the way around: .
To use it, you need one complete pair — an angle and the side opposite it — plus one more piece (another side or another angle). Set two of the ratios equal, and the equation has exactly one unknown. That's the situations ASA, AAS, and SSA: any setup where a matched angle-side pair is available.
Remember that a triangle's angles sum to , so knowing any two angles hands you the third for free. That's often the move that completes your pair.
The standard labeling is shown below: each side is named with the lowercase letter of the angle directly across from it, so side faces angle , side faces , and side faces .
The Law of Cosines
The Law of Cosines is the Pythagorean theorem with a correction term for the angle: , where is the angle between sides and , and is the side opposite it. If , then and the formula collapses to — the right-triangle case exactly.
Use it in the two situations the Law of Sines can't touch. SAS: you know two sides and the included angle, and you want the third side — plug straight in. SSS: you know all three sides and want an angle — solve the formula for the cosine first, , then apply the inverse cosine.
One sign trap: if the angle you find has a negative cosine, the angle is obtuse. Don't discard the negative — of a negative number correctly returns an angle between and .
Choosing in three seconds
Scan the given information for a matched pair: an angle whose opposite side you also know. Pair available (or buildable with the angle sum) — Law of Sines, it's less work. No pair — you must have SAS or SSS, and that's the Law of Cosines.
One caution on SSA, the case where you know two sides and a non-included angle: it's called the ambiguous case because the given information can sometimes fit two different triangles. When you solve SSA with the Law of Sines, check whether the supplement of the angle you found also makes a valid triangle. ASA, AAS, SAS, and SSS never have this problem.
Worked examples
Example 1: Law of Sines for a missing side
In triangle , , , and . Find .
Answer: (rounded to the nearest tenth)
Example 2: Law of Sines for a missing angle
In triangle , , , and . Find .
Answer: (rounded to the nearest tenth; since , angle must be smaller than , so the acute answer is the right one)
Example 3: Law of Cosines with SAS
Two sides of a triangle measure and , and the angle between them is . Find the third side.
Answer: exactly
Example 4: Law of Cosines with SSS
A triangle has sides , , and . Find the measure of the largest angle.
Answer: (rounded to the nearest tenth)
Try one yourself
Common questions
How do I decide between the two laws quickly?
Look for a matched pair: an angle you know whose opposite side you also know. If you have one — or can build one using the fact that the angles sum to — use the Law of Sines. If you have two sides with the included angle (SAS) or three sides (SSS), no pair exists and the Law of Cosines is the only option.
Do these laws work on right triangles too?
Yes — both hold for every triangle. With the Law of Cosines becomes the Pythagorean theorem, since . But when a triangle is right, plain SOHCAHTOA ratios are faster, so save these laws for triangles without a right angle.
What is the ambiguous case?
It's the SSA setup — two sides and an angle not between them. That information can sometimes describe two different triangles, because the inverse sine only returns acute angles while an obtuse angle with the same sine might also fit. After solving, test the supplement: if minus your angle still leaves a positive third angle, a second triangle exists.
Want the video version?
Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.