Heron's Formula Calculator

Find a triangle's area from its three sides with Heron's formula, plus height, inradius and circumradius.

Math and PercentUpdated 2026-11-184 min read
Heron's Formula Calculator
Area
...
Semi-perimeter...
Perimeter...
Triangle type...
Height to the longest side...
Circumradius...
Inradius...

What it does

The usual area rule for a triangle is half the base times the height. That is simple when the height is known and awkward when it is not. Heron's formula removes the height from the problem entirely: give it the three side lengths and it returns the area. OpenStax Precalculus introduces it for the case where all three sides are known and no angle is given.

The formula uses the semi-perimeter, written s, which is half of a + b + c. From there it multiplies s by the three differences s - a, s - b and s - c, then takes the square root. The University of Georgia page gives a derivation that starts with the Pythagorean theorem applied to the two small right triangles formed by dropping a height, so the result is firmly tied to the familiar geometry.

A triangle with sides 13, 14 and 15 is a good illustration. The perimeter is 42, so s is 21, and the three differences are 8, 7 and 6. Their product with 21 is 7056, whose square root is exactly 84. No decimal angle and no measured height are needed to reach a clean whole number.

Once the area is known, other quantities follow. Dividing twice the area by the longest side gives the height dropped onto that side. Dividing the area by s gives the radius of the inscribed circle, and dividing the product of the three sides by four times the area gives the radius of the circle through the vertices. OpenStax Contemporary Mathematics places the formula alongside these other area results.

Feed the three side lengths into the tool and it returns the area, the semi-perimeter, the perimeter, the triangle type, the height to the longest side, the inradius and the circumradius. It assumes a flat triangle. The three lengths must obey the triangle inequality, so a side as long as or longer than the other two combined is rejected rather than reported as a zero area.

How to use

  1. Enter the length of side a in any unit you like.
  2. Enter the lengths of sides b and c in that same unit.
  3. Make sure the longest side is shorter than the sum of the other two.
  4. Read the area in square units and the semi-perimeter in the original units.
  5. Use the height and the two radii when a construction or a further calculation needs them.
  6. Check the triangle type line if you want to know whether the sides form a right, isosceles or equilateral triangle.

Formula

Area = square root of (s (s - a) (s - b) (s - c)), where s = (a + b + c) / 2. Height to side c = 2 Area / c, inradius = Area / s, and circumradius = a b c / (4 Area).
a
Length of the first side, in any unit.
b
Length of the second side, in the same unit.
c
Length of the third side, in the same unit.
s
Semi-perimeter, (a + b + c) / 2, in the same unit.
A
Area returned by the formula, in square units.
r
Inradius, the radius of the circle inside the triangle: A / s.
R
Circumradius, the radius of the circle through the vertices: a b c / (4 A).

The height shown is measured onto the longest side, which keeps the value as small as possible. A triangle is flagged as right when the two shorter sides satisfy the Pythagorean equation to within rounding. Equal sides give an isosceles or equilateral label, and all other shapes are reported as scalene. Heron's formula itself does not depend on which side is called a, b or c.

Worked example

Example: a triangle with sides 13, 14 and 15

Defaults: side a = 13, side b = 14 and side c = 15 units.

  1. Perimeter: 13 + 14 + 15 = 42 units.
  2. Semi-perimeter: s = 42 / 2 = 21 units.
  3. The three differences are s - a = 8, s - b = 7 and s - c = 6.
  4. Product: 21 x 8 x 7 x 6 = 7056.
  5. Area: the square root of 7056 is 84 square units.
  6. Cross check with the longest side: height = 2 x 84 / 15 = 11.2, and half of 15 x 11.2 = 84.
  7. Inradius = 84 / 21 = 4 and circumradius = 13 x 14 x 15 / (4 x 84) = 2730 / 336 = 8.125. The tool shows 84.000, 21.000, 42.000, Scalene, 11.200, 8.125 and 4.000.

Reference table

Heron's formula applied to several integer side triples
Sides (a, b, c)Semi-perimeterProduct s(s-a)(s-b)(s-c)Area
3, 4, 56.000366.000
5, 12, 1315.00090030.000
13, 14, 1521.0007,05684.000
7, 24, 2528.0007,05684.000
9, 10, 1718.0001,29636.000

Limits

  • Needs all three sides; an angle, a height or two sides alone are not enough to use this formula.
  • The lengths must satisfy the strict triangle inequality, so a degenerate triangle with zero area is rejected.
  • Applies to a triangle drawn on a flat plane, not to a triangle whose edges follow a curved surface.
  • Extremely large or extremely small sides may lose a few digits of precision in the intermediate product.

Common mistakes

  • Substituting the full perimeter where the semi-perimeter belongs.
  • Mixing up which side is subtracted from s in the three difference factors.
  • Forgetting the final square root after multiplying s by the three differences.
  • Applying the formula to three lengths that fail the triangle inequality.
  • Rounding s early, which shifts the digits of every later result.

Try it yourself

Quick checks. Answers sit tucked under each question.

Find the area of a triangle with sides 3, 4 and 5.

s = 6, and s - a, s - b, s - c are 3, 2 and 1. The product 6 x 3 x 2 x 1 = 36, so the area is 6 square units. The tool also reports a right triangle with inradius 1 and circumradius 2.5.

A triangle has sides 5, 12 and 13. What area does the formula give?

s = 15, the differences are 10, 3 and 2, and 15 x 10 x 3 x 2 = 900. The square root is 30 square units.

What is the area of an equilateral triangle with all three sides equal to 10?

s = 15, each difference is 5, and 15 x 5 x 5 x 5 = 1875. The square root is 43.301 square units, which agrees with the equilateral shortcut.

Questions

What is Heron's formula?

A way to find a triangle's area from its three side lengths. It multiplies the semi-perimeter by the three differences between that semi-perimeter and each side, then takes the square root.

Why use it instead of half the base times the height?

Because the height is often unknown or hard to measure. When all three sides are available, Heron's formula gives the area without finding an angle or dropping a perpendicular.

What is the semi-perimeter?

Half of the perimeter. For sides 13, 14 and 15 the perimeter is 42 and the semi-perimeter is 21.

Does the formula work for right triangles?

Yes. With sides 3, 4 and 5 it gives s = 6 and an area of 6 square units, the same result as half of 3 x 4.

What if the three lengths cannot form a triangle?

The tool returns an error. If one side is at least as long as the other two together, one of the difference factors is zero or negative and there is no triangle to measure.

Is the answer exact?

For the given side lengths it is exact in exact arithmetic. The display rounds to three decimals, so a value such as 84 is shown as 84.000 while an irrational area is rounded.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.