Law of Cosines Calculator

Find the missing sides and angles of a triangle using two sides and the included angle, or all three sides.

Result
—

How to calculate

For SAS calculate c² = a² + b² − 2ab cos C. For SSS rearrange this relation to find the cosine of angle C, then complete the triangle.

Worked example

Use Known measurements Two sides and the included angle (SAS) · Side a 3 · Side b 4 · Included angle C (degrees) 90. The result is 1 solution.

Input and result notes

Angle C is opposite side c and lies between sides a and b. Enter it in degrees.

OpenStax law of cosines

Related calculators