Triangle Perimeter Calculator - Three-Side Sum and Semi-Perimeter

Use this triangle perimeter calculator to enter three side lengths in cm, m, in, ft, or yd and read the total perimeter, semi-perimeter, and inequality check.

Updated: June 16, 2026 • Free Tool

Triangle Perimeter Calculator

Length of the first side in the unit you choose below. Must be greater than zero.

Length of the second side. Same unit as Side A.

Length of the third side. Same unit as Side A.

Linear unit applied to all three sides. The calculator does not convert between units, so every side must be entered in the same unit.

Results

Perimeter
0
Semi-perimeter (s) 0
Equilateral? 0
Triangle inequality 0

What Is the Triangle Perimeter Calculator?

A triangle perimeter calculator is a tool that adds the three side lengths of any triangle and returns the total distance around the shape in a single step. Enter side a, side b, and side c in your chosen linear unit and the calculator returns the full perimeter, the semi-perimeter for Heron's formula, and a triangle inequality check.

  • Classroom and homework checks: Verify a triangle's perimeter on a worksheet, including 3-4-5 right triangles and equilateral reference problems, before submitting the answer.
  • Construction and DIY measurements: Sum the three edges of a triangular deck frame, garden bed, or shelf bracket to size trim, edging, and fabric.
  • Fencing and trim estimates: Estimate linear footage of fence, edging, or molding needed to enclose a triangular lot, plot, or fabric panel.
  • Heron's formula prep work: Get the semi-perimeter s = (a + b + c) / 2 ready to drop into Heron's formula for the triangle's area when only the three sides are known.

The calculator assumes a closed three-sided figure on a flat plane. Enter the three side lengths once, pick the unit from a dropdown, and the result panel returns the perimeter, semi-perimeter, and a quick triangle inequality check.

If your measurements come from a tape, ruler, or laser tool, the tool is unit-aware but does not convert. Pick one linear unit, enter all three sides in that unit, and the result carries that same label.

If your sides come in fractional inches, eighths, or sixteenths, the Perimeter of a Triangle with Fractions Calculator handles mixed numbers alongside straight decimals.

How the Triangle Perimeter Calculator Works

The calculator is built on the standard perimeter definition for a polygon: add the lengths of all sides. For a triangle, the result is the simple sum a + b + c, returned in real time as you type.

P = a + b + c
  • P: Perimeter of the triangle, in the linear unit you selected (cm, m, in, ft, or yd).
  • a: Length of side a, opposite vertex A.
  • b: Length of side b, opposite vertex B.
  • c: Length of side c, opposite vertex C.

The result panel also shows the semi-perimeter, the value you drop into Heron's formula for area. An 'Equilateral?' row confirms whether all three inputs match, and the triangle inequality row tells you whether the three lengths can close into a real triangle.

According to Wikipedia (Perimeter), the perimeter of any polygon is the sum of the lengths of its edges, so a triangle's perimeter is simply a + b + c.

Right triangle 3-4-5 in centimeters

Side a = 3 cm, Side b = 4 cm, Side c = 5 cm

P = 3 + 4 + 5 = 12 cm

Perimeter = 12.00 cm, semi-perimeter = 6.00 cm

Use the perimeter for trim length and the semi-perimeter for Heron's formula.

Equilateral triangle with side 7 m

Side a = 7 m, Side b = 7 m, Side c = 7 m

P = 7 + 7 + 7 = 3 · 7 = 21 m, s = 21 / 2 = 10.5 m

Perimeter = 21.00 m, semi-perimeter = 10.50 m, equilateral flag = Yes

When all three sides match, the perimeter simplifies to 3a, so you only need to measure one side.

According to Wolfram MathWorld, a triangle is a three-sided polygon whose perimeter equals the sum of its three side lengths, commonly written P = a + b + c.

Once you have the three side lengths of a right triangle, the Right Triangle Calculator can also work backwards from two sides and the right angle to find the missing hypotenuse or leg.

Key Concepts Behind the Triangle Perimeter Calculator

These four ideas cover the geometry the calculator relies on. They explain why a simple sum of three numbers can describe the boundary of every triangle.

Perimeter as the sum of side lengths

Perimeter is the total length of the boundary of a closed shape. For a triangle, that means a + b + c with no extra terms. Once you know all three sides, no other measurement is required.

Equilateral special case (P = 3a)

An equilateral triangle has all three sides equal, so the perimeter collapses to 3a. If you only have one side length, multiply it by three.

Triangle inequality

Three positive numbers form a triangle only if the sum of any two is greater than the third. The calculator checks a + b > c, a + c > b, and b + c > a to flag bad inputs like 1, 1, 5.

Semi-perimeter and Heron's formula

The semi-perimeter s = (a + b + c) / 2 is the value that goes into Heron's formula for the area. Knowing the perimeter gives you s for free.

These concepts come straight from the polygon definition of perimeter and the triangle inequality. They do not depend on the angle measurements of the triangle, so the perimeter of an obtuse triangle is no harder to find than the perimeter of a right one.

If you would rather start from one side and an angle, a dedicated triangle tool fits better.

When all three sides are equal, the Equilateral Triangle Area gives the area in a single step with the same one-input flow used here for the perimeter.

How to Use the Triangle Perimeter Calculator

The calculator needs three numbers and a unit label. Use the steps below to read the perimeter, semi-perimeter, and triangle inequality check on the result panel.

  1. 1 Pick one linear unit for every side: Choose centimeters, meters, inches, feet, or yards from the Unit dropdown. The calculator does not convert between units, so all three sides must use the same unit.
  2. 2 Enter side a, side b, and side c: Type the three side lengths into the matching fields. Decimals are fine up to the precision of your measurement tool.
  3. 3 Read the perimeter on the result panel: The result panel updates as you type and shows the total perimeter in the unit you selected, rounded to two decimal places.
  4. 4 Copy the semi-perimeter for Heron's formula: If you also need the triangle's area, copy the semi-perimeter row s = (a + b + c) / 2 and use it inside Heron's formula for the area.
  5. 5 Check the triangle inequality flag: The result panel shows a 'Triangle inequality' row. If it says Invalid, the three lengths cannot close into a real triangle, so recheck a measurement before you trust the perimeter.

A triangular garden bed is measured at 5.5 ft, 8.25 ft, and 10.75 ft. Enter the three lengths with Unit = Feet, and the calculator returns a perimeter of 24.50 ft, a semi-perimeter of 12.25 ft, and a valid triangle flag. That 24.50 ft is the edging strip you need for the border.

For the area of the same triangular garden bed, the Heron's Formula Calculator takes the semi-perimeter you just read and returns the area without any angle measurements.

Benefits of Using the Triangle Perimeter Calculator

The tool is small, but it solves a real measurement problem. These benefits show where it pays off in school, on the job, and at the planning desk.

  • Saves time on the three-side sum: You do not need to add three numbers by hand; the result panel updates as soon as you finish typing.
  • Catches bad inputs with the triangle inequality: A quick check of a + b > c, a + c > b, and b + c > a flags measurements that cannot form a real triangle, so you can correct a typo before it becomes an estimate mistake.
  • Pairs directly with Heron's formula: The semi-perimeter is half of the perimeter and is the value Heron's formula needs for the area, so you can copy the s row straight into an area tool without recomputing.
  • Works for any triangle type: Acute, right, obtuse, equilateral, isosceles, and scalene triangles all use the same a + b + c rule, so the calculator handles them with no extra steps or angle inputs.
  • Unit-flexible for school and field use: Centimeters, meters, inches, feet, and yards cover the linear units you will see on a worksheet, a tape measure, or a building plan.

These benefits apply whenever the three side lengths are already known or measurable. If you only have one side and a few angles, an angle-and-side triangle solver is a better starting point.

The tool pairs well with a length converter when the three sides are stored in mixed units. Convert everything to a single unit first, then add them here.

For non-triangle shapes like rectangles, circles, or regular polygons, the general Perimeter Calculator accepts several side inputs and returns a sum in the same unit-aware style.

Factors That Affect Your Triangle Perimeter Result

The sum a + b + c is short, but the number you read off the panel can still be skewed by a few practical factors. Watch these before you commit a perimeter to a quote or cut list.

Unit consistency across the three sides

Mixing centimeters with inches or feet with meters is the fastest way to get a perimeter that is off by a factor of 2.54. Convert every side to the same linear unit before you enter it.

Rounding of each side length

Tape measures, rulers, and laser tools round to a fixed precision, and rounding three sides can push the final sum off by a few millimeters. Keep two extra decimal places when the cut list has to be exact.

Triangle inequality

If the three numbers cannot close into a real triangle — for example, 1, 1, 5 — the calculator still returns the sum but flags the inequality row as Invalid. Treat that as a measurement error.

  • The calculator returns a numeric sum even when the three sides do not form a valid triangle. Always check the triangle inequality row before you trust the perimeter for any real-world estimate.
  • The tool does not convert between linear units. If your sides are stored in different units, run them through a length converter first.
  • Perimeter is a flat-plane measurement, so the result assumes a planar triangle. For 3D triangular surfaces such as roof panels or fabric, account for the slope or the diagonal of the face.

These factors rarely change the formula, but they do change the answer. An Invalid flag is a sign that one side was taken on the wrong line.

If you need the area, the semi-perimeter s feeds Heron's formula, so this tool is also a quick pre-step for a full side-only solution.

According to Wikipedia (Triangle), an equilateral triangle has all three sides equal so its perimeter is 3a, and any triangle must satisfy the triangle inequality a + b > c, a + c > b, and b + c > a.

When the three angles of a triangle are given instead of the three sides, the AAA Triangle Calculator works from two angles and a reference side to fill in every edge length before a perimeter tool is used.

Triangle perimeter calculator with three side inputs and the resulting perimeter, semi-perimeter, and triangle inequality status in the selected linear unit
Triangle perimeter calculator with three side inputs and the resulting perimeter, semi-perimeter, and triangle inequality status in the selected linear unit

Frequently Asked Questions

Q: What is the formula for the perimeter of a triangle?

A: The formula is P = a + b + c, where a, b, and c are the lengths of the three sides. Add the three side lengths together in the same linear unit. For an equilateral triangle the formula simplifies to 3a because all three sides are equal.

Q: How do you calculate the perimeter of a triangle with three different sides?

A: Add the three side lengths together. For example, a 5-12-13 right triangle has a perimeter of 5 + 12 + 13 = 30 in the chosen unit. The calculator does the same sum in real time, so changing any side updates the result on the same frame.

Q: What is the perimeter of an equilateral triangle?

A: An equilateral triangle has all three sides equal, so the perimeter is 3a. A side of 7 m gives a perimeter of 21 m and a semi-perimeter of 10.5 m, which the result panel reports along with an equilateral flag.

Q: Do all three sides of a triangle need to be in the same unit?

A: Yes. The calculator does not convert between linear units, so a mix of centimeters and inches produces a wrong answer with a misleading label. Pick one unit, enter all three sides in that unit, and the result carries the matching label.

Q: What is the difference between perimeter and area of a triangle?

A: Perimeter is the total length around the outside of the triangle, measured in linear units like cm or ft. Area is the space inside the triangle, measured in square units. The same three sides give both: perimeter = a + b + c, and area via Heron's formula using the semi-perimeter s.

Q: Can a triangle have a negative or zero side length?

A: No. A side length must be a positive number for the shape to be a real triangle. The calculator rejects zero or negative inputs with a clear validation message so a stray minus sign does not produce a wrong perimeter.