Heron's Formula Calculator

Triangle area (Heron's formula)6.00
Semiperimeter (s)6.00
Inradius (r)1.00
Circumradius (R)2.50
Triangle typeScalene
How this was calculated
  1. Semiperimeter: s = (3.00 + 4.00 + 5.00) / 2 = 6.00.
  2. Heron: area = sqrt(s (s - a) (s - b) (s - c)) = sqrt(6.00 x 3.00 x 2.00 x 1.00) = 6.00 square units.
  3. The inscribed circle has radius r = area / s = 1.00, and the circumscribed circle R = abc / (4 x area) = 2.50.

This Heron's formula calculator finds the area of any triangle using only the lengths of its three sides. Enter sides a, b, and c, and the tool computes the semiperimeter s = (a + b + c) / 2 and the area using heron's formula: sqrt(s(s - a)(s - b)(s - c)). Along with the area, the calculator returns the inradius r = Area / s and the circumradius R = abc / (4 x Area). For a triangle with sides 3, 4, and 5, the semiperimeter is 6.00, the area is 6.00, the inradius is 1.00, and the circumradius is 2.50. For sides 5, 5, and 6, the area is 12.00, the inradius is 1.50, and the circumradius is 3.13. For sides 7, 8, and 9, the area is 26.83, the inradius is 2.24, and the circumradius is 4.70.

Heron's formula is the accepted standard for calculating triangle area from side lengths because it needs no angles and no height, unlike alternative methods that require additional measurements. Named for Hero of Alexandria, who proved it in his Metrica in the 1st century AD, the formula remains the most direct and reliable approach when only the three sides are known. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result and understand each calculation.

Worked examples

3-4-5 right triangle

Primary result: 6.00 — Heron agrees with half base times height for the classic right triangle. (3 · 4 · 5)

Triangle area (Heron's formula)6.00
Semiperimeter (s)6.00
Inradius (r)1.00
Circumradius (R)2.50
Triangle typeScalene

5-5-6 isosceles

Primary result: 12.00 — semiperimeter 8.00, inradius 1.50, circumradius 3.13. (5 · 5 · 6)

Triangle area (Heron's formula)12.00
Semiperimeter (s)8.00
Inradius (r)1.50
Circumradius (R)3.13
Triangle typeIsosceles

7-8-9 scalene

Primary result: 26.83 — no right angle and no height needed, just the three sides. (7 · 8 · 9)

Triangle area (Heron's formula)26.83
Semiperimeter (s)12.00
Inradius (r)2.24
Circumradius (R)4.70
Triangle typeScalene

Heron's formula step by step

Heron's formula step by step Working with heron's formula is straightforward when you break it into two stages. First, find the semiperimeter s by adding the three side lengths and dividing by 2: s = (a + b + c) / 2. The semiperimeter is simply half the perimeter, and it becomes the base value for every term inside the square root. Once you have s, plug it into the full expression for area: sqrt(s(s - a)(s - b)(s - c)). Multiply the four quantities together — s, s minus a, s minus b, and s minus c — and then take the square root of that product. The result is the area of the triangle. No angles and no height are needed, which is why this method works well when you only know the side lengths.

A quick worked example shows the process clearly. For a triangle with sides 3, 4, and 5, the semiperimeter is s = (3 + 4 + 5) / 2 = 6.00. Next, compute each difference: s - a = 6 - 3 = 3, s - b = 6 - 4 = 2, and s - c = 6 - 5 = 1. Multiply all four values: 6 × 3 × 2 × 1 = 36. The square root of 36 is 6.00, so the area is 6.00. You can also derive the inradius and circumradius from here. The inradius is r = Area / s, which gives 6.00 / 6.00 = 1.00. The circumradius is R = abc / (4 × Area), which gives (3 × 4 × 5) / (4 × 6.00) = 2.50.

Two more examples confirm the pattern. For sides 5, 5, and 6, the semiperimeter is s = 8.00. The product under the root is 8 × 3 × 3 × 2 = 144, and the square root gives an area of 12.00. The inradius is 12.00 / 8.00 = 1.50, and the circumradius is (5 × 5 × 6) / (4 × 12.00) = 3.13. For sides 7, 8, and 9, the semiperimeter is s = 12.00. The product is 12 × 5 × 4 × 3 = 720, whose square root is 26.83. The inradius is 26.83 / 12.00 = 2.24, and the circumradius is (7 × 8 × 9) / (4 × 26.83) = 4.70.

One important warning: the three sides must actually form a triangle. The triangle inequality requires that the sum of any two sides be greater than the third side. If the sides fail this test, one of the terms (s - a), (s - b), or (s - c) turns out negative, which makes the entire product under the root negative. A negative value under a square root has no real result, so the formula breaks down. Always check the triangle inequality first before computing the semiperimeter and the product. The formula is named for Hero of Alexandria, a 1st century AD mathematician who proved it in his work Metrica, and it remains a reliable tool for finding triangle area from side lengths alone.

Worked examples

To see how Heron's formula works in practice, start with the familiar 3-4-5 right triangle. The semiperimeter is s = (3 + 4 + 5) / 2 = 6.00. Plugging into the formula gives an area of sqrt(6.00 x 3.00 x 2.00 x 1.00) = 6.00. You can verify this result against the standard right-triangle method of half base times height: (1/2)(3)(4) = 6.00. The match confirms that the formula holds even when you already know the height. The inradius is r = Area / s = 6.00 / 6.00 = 1.00, and the circumradius is R = abc / (4 x Area) = 60 / 24 = 2.50.

The same approach handles a 5-5-6 isosceles triangle, where the height is not immediately obvious without extra steps. Here the semiperimeter is s = (5 + 5 + 6) / 2 = 8.00, and the area works out to sqrt(8.00 x 3.00 x 3.00 x 2.00) = 12.00. The inradius is r = 12.00 / 8.00 = 1.50, and the circumradius is R = (5 x 5 x 6) / (4 x 12.00) = 3.13. Because the formula needs no angles and no height, you get the area directly from the three side lengths.

Now consider a 7-8-9 scalene triangle, where no side sits neatly perpendicular to another and the height cannot be read off at a glance. The semiperimeter is s = (7 + 8 + 9) / 2 = 12.00. Applying the formula gives an area of sqrt(12.00 x 5.00 x 4.00 x 3.00) = 26.83. The inradius is r = 26.83 / 12.00 = 2.24, and the circumradius is R = (7 x 8 x 9) / (4 x 26.83) = 4.70. This is exactly the kind of case where the formula shines: you skip the construction lines and go straight from sides to area.

Each example follows the same two-step pattern. First compute the semiperimeter s = (a + b + c) / 2, then evaluate sqrt(s(s - a)(s - b)(s - c)). The inradius and circumradius fall out from the same numbers using r = Area / s and R = abc / (4 x Area). Named for Hero of Alexandria, who proved it in his Metrica in the 1st century AD, the method works the same way whether the triangle is right, isosceles, or scalene.

Inradius and circumradius from the area

Once you have the area from heron's formula, you can find two important circles associated with the triangle. The inradius is r = Area / s, where s is the semiperimeter. The circumradius is R = abc / (4 x Area), where a, b, and c are the three side lengths. Because heron's formula needs no angles and no height, you can compute both radii using only the three sides.

Geometrically, the inradius is the radius of the inscribed circle — the largest circle that fits inside the triangle and touches all three sides. The center of this circle, called the incenter, sits at the point where the angle bisectors meet. The circumradius is the radius of the circumscribed circle — the smallest circle that passes through all three vertices of the triangle. Its center, the circumcenter, lies where the perpendicular bisectors of the sides intersect. Together, these two circles describe how tightly the triangle is filled and how broadly it spans.

For a triangle with sides 3, 4, and 5, the semiperimeter is 6.00 and the area is 6.00. The inradius is 1.00 and the circumradius is 2.50. A triangle with sides 5, 5, and 6 has a semiperimeter of 8.00 and an area of 12.00, giving an inradius of 1.50 and a circumradius of 3.13. For sides 7, 8, and 9, the semiperimeter is 12.00 and the area is 26.83, so the inradius is 2.24 and the circumradius is 4.70. These examples show how the two radii scale with the size and shape of the triangle.

Side aSide bSide cSemiperimeter (s)AreaInradius (r)Circumradius (R)
3456.006.001.002.50
5568.0012.001.503.13
78912.0026.832.244.70
The formula is named for Hero of Alexandria (1st century AD), who proved it in his Metrica. Since it needs no angles and no height, you can compute the area, inradius, and circumradius from the three sides alone.

When to use Heron vs base-height

Heron's formula is the right choice when you know all three sides of a triangle and have no height or angle measurements. This comes up often in surveying, construction layout, and any SSS (side-side-side) problem where direct height measurement is impractical or impossible. The formula is named for Hero of Alexandria, a 1st century AD mathematician who proved it in his Metrica. Because it needs no angles and no height, you can find the area from side lengths alone, which makes it especially useful for irregular triangles.

The base-height method, by contrast, is faster when a height is already given. If a problem states that a triangle has a base of 10 and a height of 4, you simply multiply and divide by 2 to get 20. Reaching for Heron's formula in that situation adds unnecessary steps. Use whichever approach matches the information you already have rather than converting between measurements.

To see how Heron's formula works, consider a triangle with sides 3, 4, and 5. The semiperimeter is s = (3 + 4 + 5) / 2 = 6.00, and the area is sqrt(6.00(6.00 - 3)(6.00 - 4)(6.00 - 5)) = 6.00. The same triangle has an inradius of 1.00 and a circumradius of 2.50. A second example with sides 5, 5, and 6 gives s = 8.00 and an area of 12.00, with an inradius of 1.50 and a circumradius of 3.13. A third triangle with sides 7, 8, and 9 yields s = 12.00 and an area of 26.83, with an inradius of 2.24 and a circumradius of 4.70.

These extra values follow directly from the area. The inradius is r = Area / s, and the circumradius is R = abc / (4 x Area). Once you have the area from Heron's formula, both radii take only a quick additional calculation. This is another advantage of the formula when working with SSS problems: a single computation opens the door to several other triangle properties without needing a separate method.

  • Use Heron's formula when all three sides are known and no height is given
  • Use base-height when a height is already provided, since it requires fewer steps
  • The formula needs no angles and no height, making it ideal for surveying and SSS problems
  • The inradius equals Area divided by s; the circumradius equals abc divided by 4 times Area
Heron's formula shines in SSS problems where measuring a height directly is difficult or impossible, but base-height remains the simpler method whenever a height is already known.

FAQs

What is Heron's formula?

Heron's formula gives the area of a triangle from its three side lengths: Area = sqrt(s(s - a)(s - b)(s - c)), where s is the semiperimeter. For a triangle with sides 7, 8, and 9, the formula yields an area of 26.83. It is useful because no angles or heights are needed.

What is the semiperimeter?

The semiperimeter is half the perimeter of the triangle, calculated as (a + b + c) / 2. For the 7-8-9 triangle, the semiperimeter is (7 + 8 + 9) / 2 = 12.00. This value is then plugged into Heron's formula alongside each side length to determine the triangle's area.

Does Heron's formula work for any triangle?

Yes, Heron's formula works for any triangle whose sides satisfy the triangle inequality, meaning each side must be shorter than the sum of the other two. If one side is at least the sum of the other two, no triangle exists, and the formula cannot be applied.

Who was Heron?

Heron, or Hero of Alexandria, was a 1st-century AD mathematician and engineer known for contributions to geometry and mechanics. Heron's formula appears in his work Metrica, which covers methods for measuring areas and volumes of geometric figures and remains influential in mathematics today.

How do I get the inradius from Heron's formula?

Divide the area by the semiperimeter to get the inradius. For the 5-5-6 triangle, the semiperimeter is 8.00 and the area is 12.00, so the inradius is 12.00 / 8.00 = 1.50. This relationship comes from the fact that a triangle's area equals its inradius times its semiperimeter.

Can Heron's formula give a non-integer area?

Usually it does. The 7-8-9 triangle has area 26.83, which is not an integer. Integer-area cases like 6.00 and 12.00 are the exception rather than the rule. Most triangles with integer side lengths will produce an area that includes decimal places when computed using Heron's formula.

Sources

Related calculators

Triangle Calculator
Triangle area three ways: base × height, Heron's formula from three sides, or two sides with the included angle — plus perimeter and side classification.
Law of Sines & Cosines Calculator
Solve any triangle — SSS, SAS, ASA or the ambiguous SSA case (both solutions shown) — for every side, angle and the area.
Pythagorean Theorem Calculator
Find the hypotenuse from two legs, or a missing leg from the hypotenuse — with area and perimeter of the triangle thrown in.
Circle Sector Calculator
Sector area, arc length, chord and segment area from a radius and an angle in degrees or radians.