Skip to content
Calculator Trigonometri
Calculator Trigonometri

Law of Cosines Calculator

Solve triangle measurements using cosine relationships.

Oblique Triangles & Laws

Interactive Law of Cosines Calculator

Result
0.70710678

sin(45°) = 0.70710678

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).

  1. Choose the case. SAS: 2 sides and the included angle. SSS: 3 sides.
  2. Enter values. Angles in degrees or radians.
  3. Solve the equation. SAS gives the third side; SSS gives an angle with arccos.
  4. 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°.

Side c: c² = a² + b² − 2ab·cos C
Side a: a² = b² + c² − 2bc·cos A
Angle C: cos C = (a² + b² − c²) / (2ab)

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 Ccos Cc²c
10°0.98485.06352.2502
30°0.86613.37823.6576
45°0.707124.50254.95
60°0.5396.245
90°0748.6023
120°−0.510910.4403
135°−0.7071123.497511.1129
150°−0.866134.621811.6027
170°−0.9848142.936511.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.

Related Oblique Triangles & Laws

View all 182 tools →