Perimeter of a Triangle Calculator
Find the perimeter and semiperimeter of a triangle by entering the three side lengths. This tool validates the triangle inequality and computes both values.
How Triangle Perimeter Works
The perimeter of a triangle is the simplest calculation in triangle geometry: add the three side lengths. A triangle with sides 3, 4, and 5 has perimeter 12. A triangle with sides 7, 8, and 9 has perimeter 24. The formula P = a + b + c applies to all triangles, regardless of type.
Before calculating, this tool checks the triangle inequality: the sum of any two sides must exceed the third side. If you enter sides 2, 3, and 10, the calculator returns zero because 2 + 3 < 10, meaning those lengths cannot form a triangle.
The semiperimeter s = P / 2 is half the perimeter. It appears in Heron's formula for triangle area: A = √(s(s-a)(s-b)(s-c)). Knowing the semiperimeter simplifies that calculation, so this tool outputs both values.
Real-World Uses of Triangle Perimeter
Triangle perimeter calculations appear in construction, especially for triangular trusses, gusset plates, and roof sections. Knowing the perimeter helps estimate the length of framing lumber or metal edging needed.
In landscaping, triangular garden beds or pathways require perimeter measurements for borders and edging. A triangular flower bed with sides 6, 8, and 10 feet needs 24 feet of border material.
Sailing and navigation use triangles constantly. A sailboat's jib is roughly triangular, and knowing the perimeter helps estimate sail cloth. Surveyors divide irregular land parcels into triangles, and perimeter calculations contribute to total boundary lengths.
Triangle Inequality and Valid Triangles
Not every set of three numbers can form a triangle. The triangle inequality states that the sum of any two sides must be strictly greater than the third side. This must hold for all three combinations: a + b > c, a + c > b, and b + c > a.
Why does this matter? Imagine trying to build a triangle with sides 2, 3, and 10. The two short sides total 5, which is less than 10. You cannot stretch them far enough to connect the endpoints of the 10-unit side. The shape collapses into a line.
This calculator checks the inequality before computing the perimeter. If the check fails, it returns zero, signaling that the input sides do not form a valid triangle. This validation prevents errors and ensures the result is meaningful.
Frequently Asked Questions
What is the formula for the perimeter of a triangle?
Perimeter equals the sum of all three sides: P = a + b + c. Add the lengths together to get the total perimeter.
What is the semiperimeter?
The semiperimeter is half the perimeter: s = (a + b + c) / 2. It is used in Heron's formula to calculate triangle area.
What is the triangle inequality?
The sum of any two sides must be greater than the third side. If a + b ≤ c, the sides cannot form a triangle. This calculator checks the inequality before computing.
Does the perimeter formula work for all triangles?
Yes. Whether the triangle is scalene, isosceles, or equilateral, the perimeter is always the sum of the three sides.
How do I find the perimeter if I only know two sides and an angle?
Use the law of cosines to find the third side: c² = a² + b² - 2ab cos(C). Then add all three sides to get the perimeter.