Home · Math · Trigonometry · Triangle Length Calculator
Triangle Length Calculator
Find a triangle's third side length from two sides and the angle between them, with the law of cosines.
What this calculator does
Find a triangle's third side length from two sides and the angle between them, with the law of cosines. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
The law of cosines reduces to Pythagoras when C is 90 degrees (cos 90° = 0). The area uses ½ab·sin C.
All angles are entered and returned in degrees.
Side lengths may use any consistent unit; areas use the square of that unit.
Worked example
With the example inputs this page opens with (side a 5, side b 7, included angle c (degrees) 60), the result is 6.24 — side c. Change any figure and the result updates with the same formula.
Quick reference
| Side a | Side c |
|---|---|
| 2.5 | 6.14 |
| 4 | 6.08 |
| 5 | 6.24 |
| 6.25 | 6.66 |
| 7.5 | 7.26 |
| 10 | 8.89 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How does the Triangle Length Calculator work?
Find a triangle's third side length from two sides and the angle between them, with the law of cosines. Side a, side b, included angle C → Side c, perimeter, area. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Triangle Length Calculator need?
Side a, side b, included angle C → Side c, perimeter, area. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.
Is the Triangle Length Calculator free to use?
Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.