Geometry

Heron's Formula: Find a Triangle's Area From Its Three Sides

Heron’s formula gives a triangle’s area from its three sides alone: A=s(s−a)(s−b)(s−c)A=\sqrt{s(s-a)(s-b)(s-c)}, where s=a+b+c2s=\frac{a+b+c}{2} is half the perimeter.

A=s(s−a)(s−b)(s−c),s=a+b+c2A=\sqrt{s(s-a)(s-b)(s-c)},\quad s=\frac{a+b+c}{2}

Try it with your numbers

Show every step

There is no height to measure and no angle to find. That makes it the rescue plan whenever the usual area of a triangle recipe of one half base times height is stuck because the height is missing.

What is Heron’s formula and when does it apply?

The quantity ss is called the semiperimeter. The three differences s−as-a, s−bs-b and s−cs-c are best read as gaps: each one is what remains of the semiperimeter after you spend one side. The gaps always add up to ss, since 3s−(a+b+c)=3s−2s=s3s-(a+b+c)=3s-2s=s. That small fact becomes a free error check later.

Each gap is positive exactly when the sides obey the triangle inequality: s−c>0s-c>0 means a+b>ca+b>c. So the formula quietly tests whether your triangle exists before it gives you an area.

Three sides are enough because SSS congruence pins down the triangle’s shape and size completely. The area is therefore forced, and Heron’s formula is the explicit recipe for it. Reach for it when the problem gives three sides and nothing else. If you are handed a height, or two sides and the angle between them, a shorter route exists.

How to use Heron’s formula step by step

The method is four moves, and the order matters.

  1. Add the sides and halve the total to get ss.
  2. Compute the three gaps s−as-a, s−bs-b, s−cs-c, and confirm they add up to ss.
  3. Multiply ss by the three gaps. This product equals A2A^2, not AA.
  4. Take the square root and attach square units.

Take a triangle with sides 77, 88 and 99. The semiperimeter is s=7+8+92=12s=\frac{7+8+9}{2}=12, and the gaps are 55, 44 and 33, which do add to 1212. Then:

A=12⋅5⋅4⋅3=720=144⋅5=125≈26.83A=\sqrt{12\cdot 5\cdot 4\cdot 3}=\sqrt{720}=\sqrt{144\cdot 5}=12\sqrt5\approx 26.83

Before reaching for a calculator, factor into primes and pair them up. Here 12⋅5⋅4⋅3=24⋅32⋅512\cdot5\cdot4\cdot3=2^4\cdot3^2\cdot5, and every pair escapes the root: 22⋅3⋅5=1252^2\cdot 3\cdot\sqrt5=12\sqrt5. Doing it this way gives the exact answer, which is what most teachers want, and it avoids rounding 720\sqrt{720} too early.

Quick check

A triangle has sides 44, 1313 and 1515. What is its area?

Where does Heron’s formula come from?

The whole proof rests on one idea: turn the angle in A=12absin⁡CA=\frac12ab\sin C into sides. The law of cosines, which is the Pythagorean theorem with a correction term, says cos⁡C=a2+b2−c22ab\cos C=\frac{a^2+b^2-c^2}{2ab}. Because sin⁡2C=1−cos⁡2C\sin^2C=1-\cos^2C, you get:

16A2=4a2b2−(a2+b2−c2)216A^2=4a^2b^2-(a^2+b^2-c^2)^2

The right side is a difference of squares, and it factors twice:

16A2=(c2−(a−b)2)((a+b)2−c2)=(c−a+b)(c+a−b)(a+b−c)(a+b+c)16A^2=\big(c^2-(a-b)^2\big)\big((a+b)^2-c^2\big)=(c-a+b)(c+a-b)(a+b-c)(a+b+c)

Now rewrite each factor with ss. Since a+b+c=2sa+b+c=2s, we get a+b−c=2(s−c)a+b-c=2(s-c), and likewise for the other two. Four factors of 22 give 1616, which cancels the left side and leaves A2=s(s−a)(s−b)(s−c)A^2=s(s-a)(s-b)(s-c).

Why the 16 disappears

Each of the four factors is twice something: 2s2s, 2(s−a)2(s-a), 2(s−b)2(s-b), 2(s−c)2(s-c). The 24=162^4=16 matches the 1616 in 16A216A^2, so the formula has no stray constants.

A second proof, built on the incircle, shows A=rsA=rs and leads to the inradius result used further down. Heron himself worked geometrically in Metrica, so the version above is a modern shortcut rather than his original argument.

Heron’s formula with decimals and fractions

Decimal and fractional sides make the arithmetic messy, but there is a clean workaround: scale the triangle up to whole numbers, apply the formula, and scale the area back down. Doubling every side multiplies the area by 44, because area grows with the square of the scale factor, as described in similar triangles.

Try sides 2.52.5, 66 and 6.56.5. Double them to get 55, 1212 and 1313, a familiar entry in the list of Pythagorean triples. Then s=15s=15, the gaps are 1010, 33 and 22, and:

Adoubled=15⋅10⋅3⋅2=900=30A_{\text{doubled}}=\sqrt{15\cdot10\cdot3\cdot2}=\sqrt{900}=30

Divide by 44, not by 22: the original area is 304=7.5\frac{30}{4}=7.5. Because this one is a right triangle, you can confirm it directly: 12⋅2.5⋅6=7.5\frac12\cdot2.5\cdot6=7.5.

Fractions work the same way. Sides 32\frac32, 22 and 52\frac52 become 33, 44, 55 after doubling, giving area 66, and then 64=32\frac64=\frac32 for the original. The trap here is dividing by the scale factor instead of its square. If you must keep decimals, do not round ss or the gaps. Round only the final answer.

Heron’s formula for equilateral and isosceles triangles

For an equilateral triangle with side aa, the semiperimeter is s=3a2s=\frac{3a}{2} and all three gaps equal a2\frac a2. The formula collapses nicely:

A=3a2⋅a2⋅a2⋅a2=3a416=34a2A=\sqrt{\frac{3a}{2}\cdot\frac{a}{2}\cdot\frac{a}{2}\cdot\frac{a}{2}}=\sqrt{\frac{3a^4}{16}}=\frac{\sqrt3}{4}a^2

This matches what you get by splitting the triangle into two 30-60-90 triangles, where the height is 32a\frac{\sqrt3}{2}a. If you have forgotten which type of triangle has which properties, that page lays out the equal-sides cases clearly.

Isosceles shortcut

For legs aa and base bb, Heron's formula simplifies to A=b44a2−b2A=\frac b4\sqrt{4a^2-b^2}. For sides 1010, 1010, 1212 this is 3256=483\sqrt{256}=48.

You can verify the shortcut the long way: the sides 1010, 1010, 1212 give s=16s=16 and A=16⋅6⋅6⋅4=2304=48A=\sqrt{16\cdot6\cdot6\cdot4}=\sqrt{2304}=48. The height route agrees, since h=102−62=8h=\sqrt{10^2-6^2}=8 and 12⋅12⋅8=48\frac12\cdot12\cdot8=48. For isosceles problems, the height route is usually faster, because it needs one square root instead of a long product.

What happens when the three sides do not make a triangle?

Try sides 33, 44 and 88. Then s=7.5s=7.5 and the gaps are 4.54.5, 3.53.5 and −0.5-0.5. The product 7.5⋅4.5⋅3.5⋅(−0.5)=−59.06257.5\cdot4.5\cdot3.5\cdot(-0.5)=-59.0625 is negative, and a negative number has no real square root. A calculator error on this step is not a malfunction: the formula is telling you that 3+4<83+4<8, so no such triangle exists.

The boundary case is just as informative. Sides 33, 44, 77 give s=7s=7 and a gap of exactly 00, so the area is 00. The sides lie flat along a line, a degenerate triangle.

There is one more failure, and it hits programmers rather than students. When one side is tiny compared with the others, s−as-a subtracts two nearly equal numbers, and floating-point arithmetic loses digits. The fix, due to William Kahan, is to sort the sides so a≥b≥ca\ge b\ge c and compute A=14(a+(b+c))(c−(a−b))(c+(a−b))(a+(b−c))A=\frac14\sqrt{(a+(b+c))(c-(a-b))(c+(a-b))(a+(b-c))}, keeping the brackets exactly as written. On paper with exact numbers, you never need it.

Quick check

Can sides 66, 99 and 1616 form a triangle? What does Heron's formula show?

Heron’s formula or another area formula: which one?

The right choice depends on what the problem hands you. Using Heron’s formula when a height is given wastes effort, and using one half base times height when only sides are given forces you to find a height first.

What you know Best formula
Base and height A=12bhA=\frac12bh
Two sides and the angle between them A=12absin⁡CA=\frac12ab\sin C
All three sides Heron’s formula
Coordinates of the three vertices Half the absolute value of a determinant

The coordinate case connects to linear algebra: place the vertices as rows (x,y,1)(x,y,1) and take half the absolute value of the 3×3 determinant. It is the same area by a different road.

Heron’s formula is sometimes confused with the Pythagorean theorem because both start from three sides. The difference is the job: Pythagoras tests or finds a side in a right triangle, while Heron finds an area in any triangle. It also works on right triangles, where it must agree with 12⋅leg⋅leg\frac12\cdot\text{leg}\cdot\text{leg}, which makes right triangles a perfect self-test.

How to find height and inradius with Heron’s formula

13-14-15 triangle drawn to scale split by its height 12 into two right triangles with areas 30 and 54
Heron's area of 84 is confirmed by gluing a 5-12-13 triangle (area 30) to a 9-12-15 triangle (area 54).

Once Heron’s formula gives you the area, other measurements fall out of it. Any height follows from h=2Abaseh=\frac{2A}{\text{base}}, and the inradius (the radius of the inscribed circle) follows from r=Asr=\frac As.

Take the triangle with sides 1313, 1414, 1515. Here s=21s=21, the gaps are 88, 77 and 66 (sum 2121, as required), and:

A=21⋅8⋅7⋅6=7056=84A=\sqrt{21\cdot8\cdot7\cdot6}=\sqrt{7056}=84

The height onto the side of length 1414 is 2⋅8414=12\frac{2\cdot84}{14}=12. The inradius is r=8421=4r=\frac{84}{21}=4. As a bonus, the circumradius is R=abc4A=2730336=8.125R=\frac{abc}{4A}=\frac{2730}{336}=8.125. This triangle is also two right triangles glued together: the height 1212 splits the base 1414 into 55 and 99, giving a 55, 1212, 1313 triangle and a 99, 1212, 1515 triangle.

Try this: Compute r=Asr=\frac As for the right triangles 66, 88, 1010 and 55, 1212, 1313. Then test whether r=a+b−c2r=\frac{a+b-c}{2} (legs aa, bb, hypotenuse cc) gives the same numbers.

Where is Heron’s formula used in real life?

Surveyors measure with tapes far more reliably than with angles. A triangular plot with three measured boundaries has a definite area, and Heron’s formula produces it without a single angle reading. The same logic powers triangle meshes in graphics and engineering software, where each facet is stored by its edge lengths.

It also scales up. Any polygon can be cut into triangles by drawing diagonals (an nn-sided polygon gives n−2n-2 of them, the count behind the interior angles of a polygon), so measuring the sides and diagonals lets you add up Heron areas for the whole shape.

For four-sided shapes inscribed in a circle, Brahmagupta’s formula extends the idea: A=(s−a)(s−b)(s−c)(s−d)A=\sqrt{(s-a)(s-b)(s-c)(s-d)}. Set d=0d=0 and it becomes Heron’s formula. The formula is named for Heron of Alexandria, whose Metrica records it around the first century, although it was probably known earlier.

How can you check a Heron’s formula answer?

Four quick checks catch almost every error:

  • The three gaps must add up to ss. If they do not, the arithmetic for ss is wrong.
  • Every gap must be positive. A zero or negative gap means the sides do not form a real triangle.
  • The area cannot exceed 336P2\frac{\sqrt3}{36}P^2, where PP is the perimeter. That is the area of the equilateral triangle with the same perimeter, the fattest triangle possible.
  • Units: four lengths sit under the root, giving length to the fourth power, and the root brings it back to square units.

Run the bound on sides 99, 1010, 1111. The perimeter is 3030, so the ceiling is 336⋅900=253≈43.30\frac{\sqrt3}{36}\cdot900=25\sqrt3\approx43.30. The actual area is 15⋅6⋅5⋅4=1800=302≈42.43\sqrt{15\cdot6\cdot5\cdot4}=\sqrt{1800}=30\sqrt2\approx42.43, just under the ceiling, as expected for a near-equilateral triangle. A long, skinny triangle with the same perimeter would land far below it.

The last trap is the oldest: forgetting the square root, or using the perimeter in place of ss. If your answer looks enormous compared with the sides, check for exactly these two slips. For more geometry practice, browse the geometry lessons on this site.

Quick check

A triangle has sides 99, 1010 and 1111. A student gets an area of 6060. Is that plausible?

Practice problems

0 of 5 solved

  1. Find the area of a triangle with sides 66, 88 and 1010.

  2. Find the area of a triangle with sides 99, 1010 and 1717.

  3. Find the area of an isosceles triangle with sides 1717, 1717 and 1616.

  4. Find the exact area of a triangle with sides 55, 66 and 77, then round to two decimal places.

  5. A triangle has sides 1010, 1717 and 2121. Find its area and the height drawn to the longest side.

Common questions

What is Heron's formula?

Heron's formula gives the area of a triangle from its three side lengths: A=s(s−a)(s−b)(s−c)A=\sqrt{s(s-a)(s-b)(s-c)}, where ss is half the perimeter. No height or angle is needed.

Does Heron's formula work for every triangle?

Yes, for any triangle that exists: acute, right, obtuse, scalene, isosceles or equilateral. If the sides break the triangle inequality, one factor goes negative and no real area exists.

Is Heron's formula the same as Hero's formula?

Yes. Hero and Heron are two spellings of the name of Heron of Alexandria, the Greek engineer who recorded the formula with a proof in his book Metrica.

What is the area of a triangle with sides 3, 5 and 7?

Here s=7.5s=7.5, so A=7.5⋅4.5⋅2.5⋅0.5=67516=1534≈6.50A=\sqrt{7.5\cdot 4.5\cdot 2.5\cdot 0.5}=\sqrt{\frac{675}{16}}=\frac{15\sqrt3}{4}\approx 6.50. This triangle has a 120∘120^\circ angle, which is why the area is small for its perimeter.

Can Heron's formula give a negative area?

No. A negative number under the root means the three lengths cannot form a triangle. A zero means they form a flat, degenerate triangle, such as sides 33, 44 and 77.

How do you find the semiperimeter?

Add the three sides and divide by 22: s=a+b+c2s=\frac{a+b+c}{2}. It is half the perimeter, not the perimeter itself, and mixing the two up is the most common slip.

Up next