Math · 64 calculators
Perimeter Of A Triangle Calculator
The perimeter of a triangle is the total distance around its three edges, found by simply adding the three side lengths. This page also derives the related quantities that share those sides: the semi-perimeter, the area via Heron's formula and the longest of the three sides.
Last updated
Perimeter
12
- Semi-perimeter
- 6
- Area (Heron)
- 6
- Longest side
- 5
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
The formula this calculator uses
P = a + b + c
- a
- Length of the first side
- b
- Length of the second side
- c
- Length of the third side
- P
- Perimeter (a + b + c)
- s
- Semi-perimeter (P / 2)
How to check the result by hand
- 1
Measure all three sides in the same unit
Write down the lengths a, b and c, converting them so every side uses one unit. Mixing metres and centimetres is the fastest way to a wrong perimeter, and the answer can only be as consistent as the inputs.
- 2
Add the sides to find the perimeter
Compute P = a + b + c. For the worked triangle, 3 + 4 + 5 = 12. This single sum is the perimeter, the total distance around the boundary, expressed in the same length unit as the sides.
- 3
Halve the perimeter for the semi-perimeter
Divide the perimeter by two: s = P / 2. Here 12 / 2 = 6. The semi-perimeter is not an end in itself but the key intermediate value that Heron's formula needs to turn the three sides into an area.
- 4
Apply Heron's formula for the area
Evaluate sqrt(s × (s − a) × (s − b) × (s − c)). With our numbers that is sqrt(6 × 3 × 2 × 1) = sqrt(36) = 6. Notice the three bracketed terms are the amounts by which the semi-perimeter exceeds each side.
- 5
Pick out the longest side
Take the maximum of a, b and c. For sides 3, 4 and 5 the longest is 5. Because 3² + 4² = 5², this is the hypotenuse of a right-angled triangle, and it must always be shorter than the sum of the other two sides.
Common Questions
How does the Perimeter Of A Triangle Calculator work?
Add the three side lengths to get the perimeter. Half of that total is the semi-perimeter, which feeds Heron's formula for the area, and the longest side is simply the largest of the three lengths. For a triangle with sides 3, 4 and 5 the perimeter is 12, the semi-perimeter is 6, the area is 6 and the longest side is 5.
What do I need to enter in the Perimeter Of A Triangle Calculator?
It takes 3 inputs: Side A, Side B, Side C. Fields that expect a unit say so next to the label.
Where does Perimeter come from?
It comes from P = a + b + c — the perimeter is the sum of the three side lengths. It is a one-dimensional measure in the same unit as the sides and requires no angles or additional geometry.
What is the most common mistake with the Perimeter Of A Triangle Calculator?
Mixing units between sides. Adding a side in metres to one in centimetres gives a meaningless perimeter. Convert every length to a single unit before adding, and state that unit alongside the answer.
For worked examples, common mistakes and the limits of this formula, read the full How To Calculate The Perimeter Of A Triangle page.
