The perimeter is the total distance around a triangle. Add its three side lengths, using the same unit for all three.
Perimeter is a length, so report it in cm, m, or another length unit—not square units.
Triangle perimeter calculator
Enter three side lengths. The calculator checks that the sides can form a triangle before adding them.
Each side must be positive and no more than 1,000,000, with at most six decimal places.
How to calculate it
- Identify the three outside edges of the triangle.
- Convert the side lengths to the same unit if necessary.
- Add all three lengths and include the length unit in your answer.
Example 1: three unequal sides
A triangle has sides 5 cm, 7 cm, and 9 cm.
The sides are valid because the two shorter sides add to more than the longest: \(5+7>9\).

Example 2: a right triangle
The sides are 12 cm, 16 cm, and 20 cm. A right triangle uses the same perimeter rule as every other triangle.
The right angle does not change the addition. The Pythagorean theorem is needed only if a side must first be found.

Special triangles
If each side is 8 cm, \(P=3\times8=24\) cm.
With equal sides of 7 cm and base 10 cm, \(P=2\times7+10=24\) cm.
Check the number of sides first
The shape below has four sides, so it is a quadrilateral, not a triangle. Its perimeter is still the sum of its outside edges:

What if a side is missing?
If the perimeter and two sides are known, rearrange the formula to \(c=P-a-b\). Use the missing-side calculator and worked examples.
Can 2 cm, 3 cm, and 7 cm be triangle sides?
No. The two shorter sides add to only 5 cm, which is less than 7 cm. Adding the numbers gives 12 cm, but they cannot form a triangle, so it would be misleading to call that a triangle’s perimeter.