Law of cosines side calculator
The angle must lie between the two entered sides. Use a consistent length unit for both sides.
Calculator
How to use this calculator
Find the third side of a triangle from two side lengths and their included angle.
- 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.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
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.
See the calculation methodology.
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.