Functions
AI Assistant

Law of Sines & Cosines

Solve any triangle — when Pythagorean theorem isn't enough

The Pythagorean theorem only works for right triangles. For any other triangle, you need the Law of Sines and the Law of Cosines.

The Law of Sines: \frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}. The Law of Cosines: c^2 = a^2 + b^2 - 2ab\cos C.

In this lesson you'll see triangles drawn with segments and labels, solve for missing sides and angles, and explore the ambiguous case where two different triangles fit the same measurements.

Graph

FAQ

What is the Law of Sines?
The Law of Sines: \frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}. Each side divided by the sine of the opposite angle is equal. Use it when you know an angle and its opposite side.
What is the Law of Cosines?
The Law of Cosines: c^2 = a^2 + b^2 - 2ab\cos C. It reduces to the Pythagorean theorem when C = 90°. Use it for SAS or SSS configurations.
What is the ambiguous case?
The ambiguous case occurs with SSA. Two different triangles might satisfy the same measurements because sin B could yield two possible angles (B and 180° − B).
When do I use Law of Sines vs Law of Cosines?
Use Law of Sines for ASA, AAS, or SSA. Use Law of Cosines for SAS or SSS. SAS with Law of Cosines avoids the ambiguous case.