Law of Cosines Calculator
c² = a² + b² − 2ab·cos(C). Solve any triangle given SAS or SSS.
Result
How to use this calculator
- Enter two sides and the included angle (SAS).
- Read third side and other angles.
About this calculator
Law of cosines: c² = a² + b² − 2ab·cos(C). Generalizes Pythagorean theorem (when C = 90°, cos C = 0, giving c² = a² + b²). Used to solve SAS triangles (two sides + included angle) or SSS (three sides — solve for any angle: cos(A) = (b² + c² − a²)/(2bc)). Also gives triangle area via ½ab·sin(C).
Frequently asked
When does it match Pythagorean?+
When to use vs. law of sines?+
Area from law of cosines?+
How accurate?+
Surveying use?+
Related calculators
More tools you might like
Hand-picked tools that pair well with this one — same audience, same intent.
a/sin(A) = b/sin(B) = c/sin(C). Solve any triangle given AAS / ASA / SSA.
Given any 2 of (a, b, c, angle), solve all remaining sides + angles.
Angle θ → (cos θ, sin θ) coordinates on the unit circle. Reference angle + quadrant.
a² + b² = c². Solve for hypotenuse or missing leg of a right triangle.
P = a + b + c. Sum of all three sides.
Time-value-of-money solver — solve for Present Value, Future Value, Payment, Periods, or Interest rate given the other four. The HP-12C and TI BA-II Plus core in a free browser tool.