CalcWorldHub
Free online calculator · no signup

Law of cosines side calculator

The angle must lie between the two entered sides. Use a consistent length unit for both sides.

Worked example
Relevant result
Clear result · useful details
Default calculator result6.244997998 side length

Calculator

4,000 tools
Law of cosines side calculator — Side a, Side b, Included angle C (degrees) and calculation method
Law of cosines side calculator: inputs and calculation method.

How to use this calculator

Find the third side of a triangle from two side lengths and their included angle.

  1. Enter Side a, Side b, Included angle C (degrees). Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Law of cosines side calculator

The angle must lie between the two entered sides. Use a consistent length unit for both sides.

What it measures

The law of cosines extends the Pythagorean theorem to a triangle with a non-right included angle.

Inputs and units

  • Side a: Positive first side length a.
  • Side b: Positive second side length b in the same length unit as a.
  • Included angle C (degrees): Included angle C between the two sides, in degrees and strictly between 0° and 180°.

Formula and method

c = √(a² + b² − 2ab cos C), where C is the angle included by sides a and b.

Worked example

With a=5, b=7, and C=60°, c=√(25+49−70×0.5)=√39≈6.245 units.

Interpreting the result

The third side is expressed in the same unit as the inputs. Near 0° or 180°, small measurement changes can materially affect the result.

Assumptions and limits

Inputs must describe two positive sides and their included angle, not an opposite angle. Measurements rounded near degenerate triangle cases can create numerical sensitivity.

Frequently asked questions

Does the angle need to be between the entered sides?

Yes. The formula uses the included angle opposite the calculated third side.

Why must the angle be below 180 degrees?

A nondegenerate triangle has an interior angle strictly between 0° and 180°.

How do I use the Law of cosines side calculator?

Enter Side a, Side b, Included angle C (degrees). Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Law of cosines side?

With a=5, b=7, and C=60°, c=√(25+49−70×0.5)=√39≈6.245 units.

What does the Law of cosines side calculator calculate?

Find the third side of a triangle from two side lengths and their included angle.

Good calculators show their work.

CalcWorldHub is built around clear inputs and visible assumptions. Results are estimates for planning; check official sources or your provider’s terms when exact figures matter.

✓ Results update instantly
✓ No account required
✓ Privacy-friendly by design
✓ US and metric units