Perimeter of a Triangle
The perimeter of a triangle is its three sides added together. Change the sides below, and see what happens when one of them gets too long to close the triangle.
Last updated
The perimeter of a triangle is the distance all the way around it. Add the three sides:
P = a + b + c
Move the three sliders below. The triangle redraws itself with sides a, b and c, and the perimeter follows. Make one side too long and the widget stops drawing a triangle and tells you why.
Add the three sides
There is nothing to multiply and nothing to halve. For sides of 5, 7 and 9:
P = 5 + 7 + 9 = 21
The perimeter is a length, so it is in plain units: centimetres, metres, inches. Area is the one in square units. Make sure all three sides are in the same unit before you add them.
Equilateral, isosceles and scalene
Equal sides give shortcuts:
| triangle | sides | perimeter |
|---|---|---|
| scalene, no sides equal | 5, 7, 9 | 21 |
| isosceles, two sides equal | 6, 6, 4 | 2 × 6 + 4 = 16 |
| equilateral, all sides equal | 8, 8, 8 | 3 × 8 = 24 |
| right triangle | 3, 4, 5 | 12 |
So an equilateral triangle with side s has P = 3*s.
When three lengths cannot make a triangle
Each side has to be shorter than the other two added together. Otherwise the two shorter sides cannot reach each other over the long one.
Try 3, 4 and 8 in the widget. The two short sides add up to 7, which is less than 8, so even laid flat along the long side they cannot reach each other. The widget draws side c on its own and says the three lengths cannot make a triangle. With 3, 4 and 7 the two short sides add up to exactly 7: the triangle would be squashed into a flat line, so that fails too.
The quick test: compare the longest side with the sum of the other two. If the longest is shorter, the triangle exists. This rule is called the triangle inequality.
Finding a missing side from the perimeter
Subtract the sides you know. A triangle with a perimeter of 30 and sides of 8 and 12:
c = 30 - 8 - 12 = 10
For an isosceles triangle, take away the base and halve the rest. A perimeter of 32 with a base of 10 leaves 22 for the two equal sides, so each one is 11.
The perimeter of a right triangle
Often a right triangle comes with only two sides. Find the third with Pythagoras, then add. If you know the two legs, the hypotenuse is:
c = sqrt(a^2 + b^2)
Legs of 6 and 8 give c = sqrt(36 + 64) = 10, so the perimeter is 6 + 8 + 10 = 24.
If you know the hypotenuse and one leg, subtract the squares instead. A hypotenuse of 10 and a leg of 6 give the other leg as sqrt(10^2 - 6^2) = 8.
The third side is not always a whole number. Legs of 2 and 3 give a hypotenuse of sqrt(13), so the perimeter is 5 + sqrt(13), about 8.61. The Pythagorean theorem calculator works out the missing side with every step shown, and right triangles has the rest of the formulas.
Try one
A right triangle has legs of 5 and 12. What is its perimeter?
The hypotenuse is sqrt(25 + 144) = sqrt(169) = 13, so the perimeter is 5 + 12 + 13 = 30 units. 5, 12 and 13 is one of the Pythagorean triples.
Common mistakes
- Adding only the sides you were given. A right triangle with two known sides needs its third side found before you add.
- Forgetting the square root. a² + b² is the square of the hypotenuse, not the hypotenuse. For legs 6 and 8 that is 100, not 10.
- Using Pythagoras without a right angle. It only works when one angle is exactly 90°.
- Writing square units. A perimeter is a length: 21 cm, not 21 cm².
- Assuming any three lengths fit. Check that the longest side is shorter than the other two together.
Common questions
What is the formula for the perimeter of a triangle?
P = a + b + c, the three sides added together. A triangle with sides of 5 cm, 7 cm and 9 cm has a perimeter of 21 cm. The perimeter is a length, so it is in plain units, not square units.
How do I find the perimeter of a right triangle when I know two sides?
Find the third side with Pythagoras first. If you know the two legs, the hypotenuse is √(a² + b²). With legs of 6 and 8 the hypotenuse is √100 = 10, so the perimeter is 6 + 8 + 10 = 24. If you know the hypotenuse and one leg, the other leg is √(c² - a²).
How do I find a missing side when I know the perimeter?
Subtract the two sides you know from the perimeter. A triangle with a perimeter of 30 and sides of 8 and 12 has a third side of 30 - 8 - 12 = 10. For an isosceles triangle, subtract the base and halve what is left to get each equal side.
Can any three lengths make a triangle?
No. Each side must be shorter than the other two added together. Lengths of 3, 4 and 8 cannot make a triangle, because 3 + 4 = 7 is less than 8. It is enough to check the longest side against the sum of the other two.
What is the perimeter of an equilateral triangle?
Three times one side, because all three sides are equal. An equilateral triangle with sides of 8 cm has a perimeter of 3 × 8 = 24 cm. For an isosceles triangle, double one of the equal sides and add the base.
Want to run this on your own numbers?
Pythagorean Theorem Calculator Open the calculatorThis and every related formula, on one printable sheet:
Geometry Formulas