Law of Cosines Calculator

Use the law of cosines to calculate the missing side (SAS) or all three angles (SSS) for any triangle. Step-by-step derivations included.

Mode
Choose SAS to find a missing side from two sides and the included angle, or SSS to find all angles from three sides.

Inputs

Triangle labeled with sides a, b, c and angles A, B, CA triangle showing sides a (bottom), b (right), c (left) with angle C at the bottom-right vertex, angle A at the top, and angle B at the bottom-left.ABCabcABC
0 – 180 °

Results

\begin{aligned} c &= \sqrt{a^2 + b^2 - 2ab\cos C} \\ &= \sqrt{(5)^2 + (7)^2 - 2(5)(7)\cos(60)} \\ &= ? \end{aligned}

Embed this calculator

Preview

Paste this code into your page to show the calculator.

Share this calculation

Anyone who opens this link sees your values already filled in.

200+ calculators · 10 languages · 100% free

Was this calculator helpful?

No

How can we improve this calculator?