How Law of Cosines Calculator Works?
The Law of Cosines Calculator works by relating 3 sides and 1 angle through c² = a² + b² − 2ab·cos(C), solving for a missing side (SAS) or a missing angle (SSS).
- Choose the case. SAS: 2 sides and the included angle. SSS: 3 sides.
- Enter values. Angles in degrees or radians.
- Solve the equation. SAS gives the third side; SSS gives an angle with arccos.
- Finish the triangle. Use the Law of Sines or the angle sum for the rest.
Law of Cosines Calculator Formula
The Law of Cosines is c² = a² + b² − 2ab·cos(C), and it reduces to the Pythagorean theorem when C = 90°.
Worked Example
a = 8, b = 11, C = 37°. c² = 64 + 121 − 176·cos 37° ≈ 44.44. c ≈ 6.666.
Law of Cosines Calculator Conversion Table
The Law of Cosines conversion table finds side c for a = 5 and b = 7 at 9 included angles.
| Angle C | cos C | c² | c |
|---|---|---|---|
| 10° | 0.9848 | 5.0635 | 2.2502 |
| 30° | 0.866 | 13.3782 | 3.6576 |
| 45° | 0.7071 | 24.5025 | 4.95 |
| 60° | 0.5 | 39 | 6.245 |
| 90° | 0 | 74 | 8.6023 |
| 120° | −0.5 | 109 | 10.4403 |
| 135° | −0.7071 | 123.4975 | 11.1129 |
| 150° | −0.866 | 134.6218 | 11.6027 |
| 170° | −0.9848 | 142.9365 | 11.9556 |
At C = 90°, c² = 25 + 49 = 74, the Pythagorean result.
What is Law of Cosines Calculator?
A Law of Cosines Calculator is a tool that finds a triangle side from 2 sides and the angle between them, or an angle from all 3 sides.
The law extends the Pythagorean theorem with a correction term −2ab·cos C. The term is negative for acute C and positive for obtuse C.
The Persian mathematician Jamshīd al-Kāshī stated the law in trigonometric form in the 15th century, and French texts still call it “théorème d’Al-Kashi”.
What are the uses of Law of Cosines Calculator?
There are 5 main uses of a Law of Cosines Calculator.
- Distance between 2 points: Find the distance from 2 known distances and the angle between them.
- Navigation: Find the straight-line return distance after 2 legs of a trip.
- Robotics: Solve 2-link arm reach in inverse kinematics.
- Physics: Add 2 vectors and find the resultant magnitude.
- Land plots: Find angles of a triangular lot from its 3 boundary lengths.