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 is called the semiperimeter. The three differences , and are best read as gaps: each one is what remains of the semiperimeter after you spend one side. The gaps always add up to , since . That small fact becomes a free error check later.
Each gap is positive exactly when the sides obey the triangle inequality: means . 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.
- Add the sides and halve the total to get .
- Compute the three gaps , , , and confirm they add up to .
- Multiply by the three gaps. This product equals , not .
- Take the square root and attach square units.
Take a triangle with sides , and . The semiperimeter is , and the gaps are , and , which do add to . Then:
Before reaching for a calculator, factor into primes and pair them up. Here , and every pair escapes the root: . Doing it this way gives the exact answer, which is what most teachers want, and it avoids rounding too early.
Quick check
Answer:
Where does Heron’s formula come from?
The whole proof rests on one idea: turn the angle in into sides. The law of cosines, which is the Pythagorean theorem with a correction term, says . Because , you get:
The right side is a difference of squares, and it factors twice:
Now rewrite each factor with . Since , we get , and likewise for the other two. Four factors of give , which cancels the left side and leaves .
Each of the four factors is twice something: , , , . The matches the in , so the formula has no stray constants.
A second proof, built on the incircle, shows 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 , because area grows with the square of the scale factor, as described in similar triangles.
Try sides , and . Double them to get , and , a familiar entry in the list of Pythagorean triples. Then , the gaps are , and , and:
Divide by , not by : the original area is . Because this one is a right triangle, you can confirm it directly: .
Fractions work the same way. Sides , and become , , after doubling, giving area , and then for the original. The trap here is dividing by the scale factor instead of its square. If you must keep decimals, do not round or the gaps. Round only the final answer.
Heron’s formula for equilateral and isosceles triangles
For an equilateral triangle with side , the semiperimeter is and all three gaps equal . The formula collapses nicely:
This matches what you get by splitting the triangle into two 30-60-90 triangles, where the height is . If you have forgotten which type of triangle has which properties, that page lays out the equal-sides cases clearly.
For legs and base , Heron's formula simplifies to . For sides , , this is .
You can verify the shortcut the long way: the sides , , give and . The height route agrees, since and . 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 , and . Then and the gaps are , and . The product 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 , so no such triangle exists.
The boundary case is just as informative. Sides , , give and a gap of exactly , so the area is . 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, subtracts two nearly equal numbers, and floating-point arithmetic loses digits. The fix, due to William Kahan, is to sort the sides so and compute , keeping the brackets exactly as written. On paper with exact numbers, you never need it.
Quick check
Answer:
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 | |
| Two sides and the angle between them | |
| 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 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 , which makes right triangles a perfect self-test.
How to find height and inradius with Heron’s formula

Once Heron’s formula gives you the area, other measurements fall out of it. Any height follows from , and the inradius (the radius of the inscribed circle) follows from .
Take the triangle with sides , , . Here , the gaps are , and (sum , as required), and:
The height onto the side of length is . The inradius is . As a bonus, the circumradius is . This triangle is also two right triangles glued together: the height splits the base into and , giving a , , triangle and a , , triangle.
Try this: Compute for the right triangles , , and , , . Then test whether (legs , , hypotenuse ) 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 -sided polygon gives 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: . Set 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 . If they do not, the arithmetic for 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 , where 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 , , . The perimeter is , so the ceiling is . The actual area is , 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 . 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
Answer:
Practice problems
0 of 5 solved
- Find the area of a triangle with sides , and .
Answer:
The semiperimeter is . The gaps are , and . Then . - Find the area of a triangle with sides , and .
Answer:
. The gaps are , and , which add to . . - Find the area of an isosceles triangle with sides , and .
Answer:
. The gaps are , and . . Check: the height is , and . - Find the exact area of a triangle with sides , and , then round to two decimal places.
Answer:
. The gaps are , and . . Since , the area is about . - A triangle has sides , and . Find its area and the height drawn to the longest side.
Answer: Area 84, height 8
. The gaps are , and . . From with : .
Common questions
What is Heron's formula?
Heron's formula gives the area of a triangle from its three side lengths: , where 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 , so . This triangle has a 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 , and .
How do you find the semiperimeter?
Add the three sides and divide by : . It is half the perimeter, not the perimeter itself, and mixing the two up is the most common slip.