JESUS CHRIST IS THE ONLY TRUE GOD
Math calculator

Law of Cosines Calculator

Solve the third side of a triangle from two sides and their included angle.

Your calculationPrivate in your browser
Report a result

Start with a worked example

Open the worked example for Side c. The example starts with Side a = 5, Side b = 7, Included angle C (degrees) = 60.

Law of Cosines Calculator formula

c=√(a²+b²−2ab cos C).

Inputs and units

Inputs and example values for Law of Cosines Calculator
InputFormat / rangeExample
Side amin 05
Side bmin 07
Included angle C (degrees)min 0, max 18060

Worked example

The values listed in Inputs and units give 6.244997998398 for Side c.

Side c
6.244997998398

Results and assumptions

Change Side a from 5 to 5.5 and keep the other example inputs fixed. The updated answer is 6.383572667402 (Side c).

Fix an input or unexpected result

Side a is required. Enter side a using the format and bounds in the input table. Zero and an empty field are different: use zero only if it is allowed and represents your data.

See how to check a result or report an issue.