Law of Cosines Calculator
Solve triangles using the Law of Cosines: c² = a² + b² − 2ab×cos(C). Find unknown sides and angles for SAS and SSS cases. Generalizes the Pythagorean theorem to any triangle.
Formula & Reference
| Variable | Symbol | Formula | Units |
|---|---|---|---|
| Law of Cosines Calculator | — | c² = a² + b² - 2ab·cos(C) | sides and degrees |
Step-by-Step Examples
a=8, b=11, C=37°.
- c²=64+121−2×88×cos(37°)=185−140.55=44.45
- c=√44.45≈6.67
a=5, b=7, c=10.
- cos(C)=(25+49−100)/70=−26/70=−0.3714
- C=arccos(−0.3714)≈111.8°
- Obtuse angle!
a=3, b=4, C=90°.
- c²=9+16−2×12×cos90°=25−0=25
- c=5 ✓ (Pythagorean theorem special case)
Real-World Applications
Common Mistakes to Avoid
SSS and SAS require Law of Cosines. Law of Sines doesn't work when the included angle is given.
cos(C)>0 for acute C, cos(C)<0 for obtuse C. A negative value from the formula is valid and expected.
Avoid rounding until the final answer. Rounding c early and using it to find angles compounds error.
Frequently Asked Questions
Related Math Calculators
Formula Explorer connections
Interpretation: This relationship connects dimensions, coordinates, angles or trigonometric ratios to a geometric measurement. Assumption: Use a consistent angle mode and length unit, identify the intended shape or coordinate system, and verify that the supplied dimensions form valid geometry.