Skip to content

Law of Cosines

Generalizes the Pythagorean theorem to all triangles.

Variables

C
Angle between sides a and b

Explanation

When , and it reduces to . Use it for SSS and SAS triangles.

Example

: , .

Try it: Triangle Calculator

Solve any triangle from SSS, SAS or ASA: all sides, angles, area, perimeter and type using the laws of sines and cosines.

Open calculator

Related formulas