Azlaan Electric AC Solar Center — Solar, CCTV, AC & electrical work, Faisalabad Call: 0300-8987448

Law of Cosines Calculator

Two parts: in A, give two sides and the angle between them to find the third side; in B, give all three sides to find any angle.

A. Missing Side — c = √(a² + b² − 2ab cos C)


B. Missing Angle — cos C = (a² + b² − c²) / (2ab)

How to use

  1. Pick Part A to find a missing side, or Part B to find a missing angle.
  2. In Part A, enter two sides and the angle between them, in degrees.
  3. In Part B, enter all three side lengths to solve for angle C.
  4. Read the answer plus the step-by-step breakdown showing the substitution.

Note: Cosine rule: c² = a² + b² − 2ab cos C. It works on any triangle, not only right triangles.

Tips