Trigonometry

Law of Sines and Law of Cosines: Formulas and Examples

Master the Law of Sines and Law of Cosines. Learn when to use each, the ambiguous SSA case, and how to solve any triangle — not just right triangles — step by step.

Frequently asked questions

When do you use the Law of Sines versus the Law of Cosines?

Use the Law of Sines when you know a side and its opposite angle (AAS, ASA, or SSA). Use the Law of Cosines when you know two sides and the angle between them (SAS) or all three sides (SSS). The Law of Cosines is the one to start with in those cases.

What is the Law of Cosines formula?

The Law of Cosines states c² = a² + b² − 2ab·cos C, where C is the angle opposite side c. It works for any triangle. When C = 90°, cos C = 0 and the formula becomes the Pythagorean theorem.

What is the ambiguous case (SSA) of the Law of Sines?

With two sides and a non-included angle, the data can fit no triangle, one triangle, or two triangles. Solving sin B gives an acute angle B, but 180° − B may also work. Check whether the second angle fits with the given angle in a total under 180°.

Can the Law of Cosines find an angle?

Yes. Rearrange it to cos C = (a² + b² − c²) / (2ab), then take the inverse cosine. This is how you find angles when all three sides are known. Because cosine is one-to-one on 0° to 180°, there is no ambiguity.

Why does the Law of Sines sometimes give two answers but the Law of Cosines never does?

Sine is positive in both the first and second quadrants, so an angle and its supplement have the same sine. Cosine has a different value for each angle between 0° and 180°, so the Law of Cosines gives exactly one answer.

Try these solvers

Trigonometry10 min read

Right Triangle Trigonometry: SOH CAH TOA Explained

SOH CAH TOA turns right triangle problems into a simple three-step process. Learn the three trig ratios, how to solve for missing sides and angles, the two special right triangles, and where trigonometry shows up in the real world.

Trigonometry11 min read

Trigonometric Identities Cheat Sheet: All Formulas You Need

Every trigonometric identity you need in one place. Learn the Pythagorean, reciprocal, double angle, half angle, and sum/difference identities with examples showing how to verify and apply them.

Trigonometry10 min read

How to Use the Unit Circle: Complete Guide with Examples

The unit circle is the key to unlocking trigonometry. Learn how to find exact values of sin, cos, and tan for any standard angle with clear explanations and examples.

Stuck on your own problem?

Snap a photo in Solver AI for iPhone and iPad and see every step, so you can do the next one yourself.