Law Of Cosines Calculator

Calculate side lengths or angles of a triangle using the Law of Cosines. Enter three values (sides and angles) to find the missing one.

isCalculator Editorial Team Published by:
Reviewed by: Review Board
Last Updated:

Was this calculator helpful?

How to use this tool?

How to Use the Law of Cosines Calculator

  1. Enter exactly three values into the fields for sides a, b, c, and angle C (in degrees). Leave the field you want to calculate empty.
  2. Supported combinations:
    • Two sides (a and b) and the included angle C → calculates side c.
    • All three sides (a, b, c) → calculates angle C.
    • Side a, side c, and angle C → calculates side b.
    • Side b, side c, and angle C → calculates side a.
  3. Units: Use any consistent unit for sides (e.g., meters, inches). Angle C must be in degrees.
  4. Click Calculate to see the result and the formula used. If the triangle is invalid, an error message will appear.

Tip: Ensure the values satisfy the triangle inequality for valid results.

Previous Results

Generate Charts
Result Inputs Date

Frequently Asked Questions

The Law of Cosines relates the lengths of the sides of a triangle to the cosine of one of its angles: c² = a² + b² - 2ab cos(C).

Use it when you know two sides and the included angle (SAS) or three sides (SSS) of a triangle to find the missing side or angle.

Yes, leave the field you want to find empty and fill in the other three. The calculator supports all combinations where exactly three values are known.

Reviewed by Experts

Eurico José Kiala

Eurico José Kiala

Mathematician

Teacher

LinkedIn
João Lino

João Lino

Mathematician

LinkedIn
Quick Convert
Length Converter
0
Weight/Mass Converter
0
Area Converter
0
Volume Converter
0
Speed Converter
0
Temperature Converter
0
Pressure Converter
0
Energy Converter
0
Power Converter
0
Force Converter
0
Time Converter
0
Angle Converter
0
Fuel Consumption Converter
0
Data Storage Converter
0
Base Numbers Converter
0
Dry Volume Converter
0
Currency Converter
0
Text Case Converter
0