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.

Your figures

Example result — edit the figures to make it yours

6.24

Side c

Perimeter18.24
Area15.16

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

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

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

Quick reference — varying side a
Side aSide c
2.56.14
46.08
56.24
6.256.66
7.57.26
108.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.