Math

Triangle Perimeter Calculator

Enter the three side lengths of a triangle to calculate perimeter, semiperimeter and area. The calculator also checks whether the three sides can form a valid triangle.

Free online toolWorks in your browserNo sign-up required
Explore this topic

Geometry & Triangles

Right triangles, areas, slopes, distances and common coordinate-geometry formulas.

Topic hub →

How to calculate the perimeter of a triangle

The perimeter is the total distance around the triangle. Add the three side lengths together.

Perimeter = a + b + c

Example: 3-4-5 triangle

For side lengths 3, 4 and 5, the perimeter is 3 + 4 + 5 = 12. The semiperimeter is 6.

Triangle inequality check

Three positive lengths form a triangle only when every pair of sides adds to more than the remaining side. The calculator checks this automatically before returning a result.

Perimeter, semiperimeter and area

The semiperimeter is half the perimeter and is useful in Heron’s formula for finding area when all three side lengths are known.

s = (a + b + c) ÷ 2   •   Area = √[s(s − a)(s − b)(s − c)]

Frequently asked questions

What is the triangle perimeter formula?

Add all three sides: P = a + b + c.

Can any three side lengths make a triangle?

No. The sum of any two sides must be greater than the third side.

What units does the perimeter use?

Perimeter uses the same linear unit as the side lengths, such as inches, feet, centimeters or meters.

Transparency

Method, assumptions & corrections

See how formulas, sources and limitations are handled across ERICH Calculators.