Connect via MCP →

Enter Calculation

Formula

Show calculation steps (1)
  1. Heron Area Check

    Heron Area Check: Triangle Perimeter & Semiperimeter Calculator

    A = sqrt of s(s-a)(s-b)(s-c), valid only when each pair of sides sums to more than the third

Advertisement

Results

Perimeter
12
units
Semiperimeter (s = P/2) 6
Area (Heron's formula) 6
These sides satisfy the triangle inequality — a valid triangle.

What this calculator does

This tool computes the perimeter of a triangle from its three side lengths, then derives the semiperimeter (half the perimeter). As a bonus it checks whether the sides actually form a valid triangle and uses Heron's formula to report the area. It works with any consistent unit — centimeters, inches, meters — and the answer comes out in that same unit.

How to use it

Enter the lengths of the three sides (a, b and c) and press calculate. The calculator adds them for the perimeter, halves the result for the semiperimeter, and verifies the triangle inequality: the sum of any two sides must be greater than the third. If that condition fails, no real triangle exists and the area is reported as zero.

The formula explained

The perimeter is simply \(P = a + b + c\). The semiperimeter $$s = \frac{P}{2}$$ is a key quantity in geometry because it lets you find the area without knowing any angle. Heron's formula states that the area equals $$A = \sqrt{s\left(s-a\right)\left(s-b\right)\left(s-c\right)}$$ The semiperimeter therefore links the perimeter directly to the area.

Advertisement
Triangle inequality showing two short sides failing to meet across a long side
The triangle inequality: the two shorter sides must together exceed the longest side.
Triangle with sides labeled a, b, and c
The perimeter is the sum of the three side lengths a, b, and c.

Worked example

For a 3-4-5 right triangle: $$P = 3 + 4 + 5 = 12$$ The semiperimeter is $$s = \frac{12}{2} = 6$$ Heron's area is $$\sqrt{6 \times (6-3) \times (6-4) \times (6-5)} = \sqrt{6 \times 3 \times 2 \times 1} = \sqrt{36} = 6$$ square units, which matches the familiar \(\frac{1}{2} \times \text{base} \times \text{height} = \frac{1}{2} \times 3 \times 4 = 6\).

FAQ

What units does it use? Any unit you like, as long as all three sides use the same one. The perimeter shares that unit; the area is in square units.

Why does it say my triangle is invalid? The triangle inequality requires each side to be shorter than the sum of the other two. If one side is too long, the three segments cannot close into a triangle.

Why is the semiperimeter useful? It is the value plugged into Heron's formula, and it also appears in the inradius (Area/s) and circumradius formulas.

Last updated: