Article

Heron's Formula: Area of a Triangle from Three Sides, with Examples

Heron's formula gives the area of a triangle when you know only the lengths of its three sides. You first find the semiperimeter s = (a + b + c) ÷ 2, and then the area A = √[s(s − a)(s − b)(s − c)]. This article walks through the formula step by step, the condition for a triangle to exist, finding the height from the area and four worked examples. You can check your own sides in the Heron's formula calculator. For the sides 13, 14, 15 the area is 84.

Last updated:

Find the area of a triangle from three sides in the Heron's formula calculator. Find the area from a base and a height in the triangle area calculator.

Heron's formula step by step

Heron's formula describes the area of a triangle using only the lengths of the sides, with no height and no angles. You apply it in three steps.

1. Find the semiperimeter: s = (a + b + c) ÷ 2.
2. Find the differences: s − a, s − b, s − c.
3. Find the area: A = √[s · (s − a) · (s − b) · (s − c)].
example 13, 14, 15: s = 21, A = √(21 · 8 · 7 · 6) = 84

SidessUnder the rootArea A
3, 4, 56366
5, 5, 6814412
13, 14, 1521705684
6, 6, 6924315.5885
7, 8, 91272026.8328

The formula is named after Heron of Alexandria, who lived in the first century AD. It works for any triangle, not only a right triangle.

A triangle with sides 13, 14 and 15 and its heightA triangle with the sides 13, 14, 15. A height equal to 12 is drawn from the vertex opposite the base of 14. The area of the triangle is 84.b = 14c = 15a = 13h = 12A = 84
Heron's formula gives an area of 84. The same area follows from the base and the height: ½ · 14 · 12 = 84.

Try it with an example

Example: a triangle with the sides 13, 14, 15. All three values are already stored in the link to the calculator.

Side a
13
Side b
14
Side c
15
Result
semiperimeter 21, perimeter 42, area 84

Open the calculator with these numbers

The calculator reads the values from the page address and shows the result right away. You can change them freely.

How the calculator works

The calculator finds the semiperimeter s = (a + b + c) ÷ 2, the differences s − a, s − b and s − c and the area with Heron's formula. It shows the results to six decimal places, together with the perimeter and a drawing of the triangle. All three sides must be greater than zero and satisfy the triangle inequality: the sum of any two sides must be greater than the third. Otherwise, the calculator shows an error message and does not report an area. The unit (cm or inches) follows the setting in the page header, but the calculator does not convert the numbers you enter.

When to use Heron's formula

Use Heron's formula when you know the three sides and the height is unknown. If you know a base and a height, it is simpler to use A = ½ · b · h. For the triangle with the sides 13, 14, 15 both methods give the same result: 84. The area from a base and a height is in the triangle area calculator, and the two formulas are compared in Triangle Area.

For an equilateral triangle with side a, Heron's formula simplifies to A = (√3 ÷ 4) · a². For a = 6 the area is 15.5885, which agrees with the result 15.5885 from that formula. The area of an equilateral triangle is in the equilateral triangle area calculator.

The triangle inequality and the semiperimeter

A triangle with sides a, b and c exists only if the sum of any two sides is greater than the third. For 2, 3 and 6 we have 2 + 3 = 5, which is less than 6, so no such triangle exists, and the expression under the root would be negative. For 3, 4 and 7 the sum 3 + 4 equals 7, so the triangle is degenerate and has an area of zero. The calculator rejects both cases.

The semiperimeter s is always greater than each side, so the differences s − a, s − b and s − c are positive. The perimeter for the sides 13, 14, 15 is 42 and the semiperimeter is 21. The calculator shows the semiperimeter and the three differences in separate rows, and a square root can also be found in the square root calculator.

The height of a triangle from its area

Once you know the area from Heron's formula, the height drawn to any side is h = 2A ÷ side. For the triangle 13, 14, 15 the height to the side of 14 is 2 · 84 ÷ 14 = 12, and to the side of 15 it is 11.20. The shorter side has the longer height, because the area is fixed.

If the triangle is a right triangle, the area follows directly from the legs, for example ½ · 3 · 4 = 6 for the sides 3, 4 and 5. You can check the third side of such a triangle in the Pythagorean theorem calculator, and the formula is described in The Pythagorean Theorem. The area of a rectangle with the same sides is in the rectangle area calculator.

Four worked examples

You can repeat each example in the Heron's formula calculator.

1. The area of a triangle with sides 3, 4, 5

A right triangle.

  1. Find the semiperimeter: (3 + 4 + 5) ÷ 2 = 6.
  2. Find the differences: 3, 2 and 1.
  3. Find the area: √(6 · 3 · 2 · 1) = √36.
  4. The area is 6.

2. The area of a triangle with sides 13, 14, 15

A whole-number result despite different sides.

  1. Find the semiperimeter: (13 + 14 + 15) ÷ 2 = 21.
  2. Find the differences: 8, 7 and 6.
  3. Under the root is 21 · 8 · 7 · 6 = 7056.
  4. The area is 84.

3. The area of an isosceles triangle with sides 5, 5, 6

The height from the area.

  1. Find the semiperimeter: (5 + 5 + 6) ÷ 2 = 8.
  2. Under the root is 8 · 3 · 3 · 2 = 144.
  3. The area is 12.
  4. The height to the base of 6 is 2 · 12 ÷ 6 = 4.

4. The area of a lot with sides of 25 ft, 30 ft and 35 ft

Measured data.

  1. Find the semiperimeter: (25 + 30 + 35) ÷ 2 = 45 ft.
  2. Find the differences: 20, 15 and 10 ft.
  3. Under the root is 45 · 20 · 15 · 10 = 135000.
  4. The area is 367.42 ft².

Common mistakes when using Heron's formula

  • Using the perimeter instead of the semiperimeter — the formula uses s = (a + b + c) ÷ 2, not the whole perimeter.
  • Leaving out one of the differences — the root must contain four factors: s, s − a, s − b and s − c.
  • Checking the triangle inequality for only one pair of sides — the sum of any two sides must be greater than the third.
  • Forgetting the square root — the final result is the root of the product, not the product itself.
  • Mixing units — all sides must use the same unit, and the area has a square unit.
  • Confusing the semiperimeter with a side — the semiperimeter is always greater than each side, so s − a, s − b and s − c are positive.
  • Rounding an intermediate result — round only the final answer, because an earlier rounding distorts the result.

Frequently asked questions

How do you find the area of a triangle with three sides?

Find the semiperimeter s = (a + b + c) ÷ 2, then A = √[s(s − a)(s − b)(s − c)]. For the sides 13, 14, 15 the area is 84.

What is Heron's formula?

Heron's formula is A = √[s(s − a)(s − b)(s − c)], where a, b and c are the sides of the triangle and s = (a + b + c) ÷ 2 is the semiperimeter.

When do you use Heron's formula?

When you know the lengths of all three sides and do not know the height or the angles. When you know a base and a height, A = ½ · b · h is enough.

How do you use Heron's formula for a triangle with sides 3, 4, 5?

The semiperimeter is 6 and the area is √(6 · 3 · 2 · 1) = 6.

What is the area of a triangle with sides 7, 8, 9?

The semiperimeter is 12, the value under the root is 720 and the area is about 26.8328.

Does Heron's formula work for every triangle?

Yes, for every triangle whose sides satisfy the triangle inequality. It needs neither a right angle nor a height.

How do you find the height of a triangle with Heron's formula?

Find the area, then h = 2A ÷ side. For the sides 13, 14, 15 the height to the side of 14 is 12.

Why does the calculator give no area for the sides 2, 3, 6?

For these sides the sum of the two shorter ones is less than the third, so no triangle exists. The calculator then shows an error message.

Find the area of your own triangle

Enter the three sides in the Heron's formula calculator and read the semiperimeter, the perimeter and the area of the triangle.

Find the area from a base and a height in the triangle area calculator, and the area of an equilateral triangle in the equilateral triangle area calculator.