Law of Cosines Calculator

Solve any triangle from three sides or two sides and an angle.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Solve any triangle with the cosine rule

The law of cosines — c² = a² + b² − 2ab·cos(C) — solves triangles that the simpler right-angle rules cannot. Pick SSS to recover all three angles from three sides, or SAS to find the missing side from two sides and the angle between them.

The tool also reports the area and perimeter. Sides a, b and c sit opposite angles A, B and C. All math happens locally in your browser.

Ad placeholder (rectangle)