Triangle Area and Perimeter From Three Sides: Heron's Formula Explained

Last updated October 3, 2026 · How we calculate and check results

If you know the three side lengths of a triangle, you can find its perimeter and area without measuring any angles or heights. Heron's formula does the work, once you confirm the sides actually form a triangle.

Open the Triangle Calculator

Step 1: do the sides form a triangle?

The triangle inequality says that the sum of any two sides must be greater than the third. Sides of 3, 4 and 5 work: 3 + 4 > 5, 3 + 5 > 4, 4 + 5 > 3. Sides of 2, 3 and 7 do not, because 2 + 3 = 5 is less than 7, so the two short sides cannot reach each other. If the sum equals the third side exactly, the "triangle" is flat, with zero area. The calculator reports an error in these cases.

Step 2: the perimeter

The perimeter is the sum of the sides. For sides 7, 8 and 9, it is 7 + 8 + 9 = 24. The semi-perimeter s is half of that: 12.

Step 3: area with Heron's formula

Heron's formula states that Area = √[s(s − a)(s − b)(s − c)]. With s = 12: area = √(12 × 5 × 4 × 3) = √720 = 26.83 square units. For the 3-4-5 triangle: s = 6, area = √(6 × 3 × 2 × 1) = √36 = 6, which matches the familiar half base times height of ½ × 3 × 4.

Types of triangle

By sidesDescription
EquilateralAll three sides equal
IsoscelesTwo sides equal
ScaleneAll sides different
By anglesTest
Righta² + b² = c² for the longest side c (as in 3-4-5)
Acutea² + b² > c²: all angles under 90°
Obtusea² + b² < c²: one angle over 90°

For our 7-8-9 triangle: 7² + 8² = 113, which is greater than 9² = 81, so it is acute and scalene.

Other area formulas

  • Base and height: Area = ½ × base × height, when you know a side and the perpendicular height onto it.
  • Two sides and the included angle: Area = ½ × a × b × sin(C).
  • Equilateral: Area = (√3 ÷ 4) × side².
  • Coordinates: the shoelace formula works from the vertices.

Practical uses

Surveyors and builders use triangles to compute land areas and roof surfaces. In design and crafts, area tells you how much material you need. In physics and navigation, three known distances define a triangle. In each case, make sure all sides are in the same unit; the area is then in that unit squared.

Common mistakes

  • Mixing units, such as one side in feet and another in inches.
  • Forgetting to square the units for the area.
  • Entering sides that violate the triangle inequality.
  • Rounding the semi-perimeter early. Keep full precision until the end.

Frequently asked questions

Can I find the area with only two sides?

Not without more information, such as the included angle or the height. Two sides alone do not determine a triangle.

Who was Heron?

Heron of Alexandria, a Greek mathematician and engineer who lived in the first century CE and described the formula, though it may be older.

Why is the perimeter shown as a whole number but the area has decimals?

The perimeter is a plain sum. The area involves a square root, which is usually irrational and is rounded for display.

Keep reading