Triangle Third Side Calculator

The result completes a triangle when you know two sides and the included angle. Sides of 7 and 9 with a 60 degree angle give a third side of about 8.19, an area of about 27.3 and a perimeter of about 24.2. The law of cosines generalizes the Pythagorean theorem: at 90 degrees the cosine term is zero.

Use it for surveying, roof pitches, frames and navigation.

Triangle Third Side Calculator: inputs

Calculated result
Third side (c)8.2
Triangle area27.3
Perimeter24.2

Triangle Third Side Calculator: Side a sensitivity

Triangle Third Side Calculator: Side a and Third side (c)5 calculations vary the “Side a” input while holding the other entered inputs constant.5.67.96.3878.27.78.48.48.7

Triangle Third Side: worked example

Side a7
Side b9
Angle between them (degrees)60
Third side (c)8.2
Triangle area27.3
Perimeter24.2

Triangle Third Side: formula

c² = a² + b² − 2ab·cos(C); area = ½ab·sin(C)

Law of Cosines: Wolfram MathWorld

Enter two sides and the angle between them, in degrees. This is the side-angle-side case: the law of cosines gives the third side as the square root of a squared plus b squared minus two a b cosine C, and the area is half a b sine C. The angle must be between the two known sides, or the formula does not apply.

Use one unit for the sides.

Triangle Third Side: changing Side a

Side aThird side (c)Triangle areaPerimeter
5.67.921.822.5
6.3824.623.3
7 (example)8.227.324.2
7.78.43025.1
8.48.732.726.1

Triangle Third Side: compare input ranges

InputTested fromToThird side (c): low inputThird side (c): high inputSwing
Angle between them (degrees)54667.58.91.4 (17%)
Side b8107.58.91.3 (16%)
Side a6.37.788.40.426 (5.2%)

Triangle Third Side: individual input comparisons

InputValueThird side (c)Triangle areaPerimeter
Side a5.67.921.822.5
6.3824.623.3
78.227.324.2
7.78.43025.1
8.48.732.726.1
Side b7721.221
87.524.222.5
98.227.324.2
108.930.325.9
119.633.327.6
Angle between them (degrees)486.823.422.8
547.525.523.5
608.227.324.2
668.928.824.9
729.53025.5

Triangle Third Side: combined input changes

Side a / Side b7911
5.66.47.99.5
6.36.789.6
778.29.6
7.77.48.49.8
8.47.88.710

Triangle Third Side: which assumptions move the result?

Triangle Third Side: Third side (c) as Angle between them (degrees) changesThird side (c) starts at 6.8. Moving Angle between them (degrees) from 48 to 72 changes it to 9.5, with Side a 7; Side b 9 kept fixed.486.8547.5608.2668.9729.5
Chart quantityDisplayed settings
Angle between them (degrees)48 → 72
Third side (c)6.8 → 9.5
Side a7
Side b9
Triangle Third Side: Third side (c) as Side b changesThird side (c) starts at 7. Moving Side b from 7 to 11 changes it to 9.6, with Side a 7; Angle between them (degrees) 60 kept fixed.7787.598.2108.9119.6
Chart quantityDisplayed settings
Side b7 → 11
Third side (c)7 → 9.6
Side a7
Angle between them (degrees)60

Triangle Third Side: values and definitions

Quantity and definitionValue used
Side a — One side of the triangle.7
Side b — A second side of the triangle.9
Angle between them (degrees) — The angle formed where side a meets side b, from 0 to 180 degrees.60
Third side (c)8.2
Triangle area27.3
Perimeter24.2

Triangle Third Side: half and double Angle between them (degrees)

Angle between them (degrees)Third side (c)
304.6
608.2
12013.9

Common error: Entering the angle in radians or mixing it with degrees. Sixty in the wrong mode gives a nonsense side length, so confirm the field is in degrees.

Angles must be entered in degrees, matching the calculator's mode. A small error in the angle changes the side noticeably for long sides. If the angle is not between the sides, use the law of sines instead.

Angles of 0 or 180 degrees give degenerate triangles.

Geometry calculators: Arc Length and Sector Area Calculator, Ellipse Area Calculator, Pyramid Volume Calculator, Right Triangle & Pythagorean Calculator, Aquarium Volume Calculator, Annulus Area Calculator.

Two sides and the angle between them lock a triangle in place, so the third side is fixed and only needs the law of cosines to find it. When the angle is 90 degrees the cosine term vanishes and you get the Pythagorean theorem. Any other angle bends that result up or down.

Sides of 7 and 9 meeting at 60 degrees close at about 8.19, shorter than the 11.4 a right angle would give.

The angle must sit between the two sides you entered. An angle elsewhere in the triangle needs the law of sines, not this calculation.

See the law of sines calculator for other cases, the right triangle and Pythagorean theorem calculators for right angles, and Heron's formula on the triangle area page. The trigonometry calculator gives sines and cosines, and the arc length page handles circles.

What if I know two angles and a side?

Use the law of sines, which relates each side to the sine of its opposite angle, after finding the third angle by subtracting from 180 degrees.

What is the law of cosines?

A formula for the third side of a triangle from two sides and the angle between them: c squared equals a squared plus b squared minus two a b cosine C.

How is it related to the Pythagorean theorem?

At a right angle the cosine term is zero, so the law of cosines reduces to the Pythagorean theorem.