Trigonometry Triangle Solver

Law of Cosines — Triangle Solver

Solve triangles given SSS (all three sides) or SAS (two sides and the included angle) using a² = b² + c² − 2bc·cosA. Find all angles, remaining sides, and area.

SSS and SAS cases
All angles and sides
Area = ½bc·sinA
Live
Inputs
Case
Quick examples
Solution
Select a case, enter the known values, and press Solve Triangle.
Angles
A
B
C
Sides
a
b
c
Area
Perimeter
Step-by-Step Solution
Hide steps
Triangle Diagram
Law of Cosines
a² = b² + c² − 2bc·cosA cosA = (b² + c² − a²) / (2bc) Area = ½·b·c·sinA

SAS: plug b, c, and A into a² = b² + c² − 2bc·cosA to find a, then use Law of Sines or Cosines for B and C. SSS: use cosA = (b²+c²−a²)/(2bc) to find each angle. Always verify A + B + C = 180°.

The Law of Cosines reduces to the Pythagorean Theorem when A = 90°: a² = b² + c² − 0 = b² + c².

Need help with the Law of Cosines?

A live tutor can walk you through SSS and SAS triangle solving, area formulas, and connections to the Pythagorean theorem.

Book a Session →