Skip to content
CalculatorZilo Logo
  • Home
  • CalculatorsExpand
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
CalculatorZilo Logo
Home / Math Calculators / Heron’s Formula Calculator
Geometry Calculators

Heron’s Formula Calculator

Published onOctober 12, 2025 Updated onOctober 22, 2026 9:05 am

A Heron’s formula calculator finds a triangle’s area from its three side lengths, with no height to measure. This one also covers the other three ways a triangle usually turns up: base and height, two sides with the angle between them, or the coordinates of its three corners. Every method shows its working, and the three-sides mode checks the triangle inequality and names the triangle type before it gives you a number.

Heron’s Formula Calculator
Triangle area from three sides, with steps and a validity check

Triangle area

Quick Answer

For sides 5, 6 and 7, the semi-perimeter is s = (5 + 6 + 7) / 2 = 9, and the area is √(9 × 4 × 3 × 2) = √216 = 14.6969 square units. The calculator above is pre-filled with this triangle: it is scalene, not right-angled, and the base-height method on base 7 with the true height 4.19912 returns the same 14.6969.

Key takeaways

  • Heron’s formula needs only the three sides. No height, no angle, no diagram required.
  • The three lengths must pass the triangle inequality first: each pair must beat the remaining side, or there is no triangle to measure.
  • All four methods in this tool agree on the same triangle, so a second method is a free accuracy check.
  • Results are rounded to four decimal places, and the steps box shows the exact semi-perimeter working behind every answer.
On this page
  • Quick Answer
  • How to use this Heron’s formula calculator
  • Heron’s formula, step by step
  • Worked example: the 5, 6, 7 triangle
  • Heron or base-height: which method fits your measurements?
  • Where Heron’s formula gets fragile: needle-thin triangles
  • What competing calculators miss
  • Frequently asked questions
  • Add This Calculator to Your Website
  • References

How to use this Heron’s formula calculator

Start from the measurements you actually have, not the ones a textbook wishes you had. The “What do you know?” menu switches the fields, and results stay hidden until you click Calculate.

  1. Three sides (Heron’s formula): enter sides a, b and c in any consistent unit. The tool checks the triangle inequality, computes the semi-perimeter, then the area, and reports the perimeter plus whether the triangle is equilateral, isosceles or scalene and whether it is right-angled.
  2. Base and height: enter a base and its perpendicular height. The pre-filled pair (base 7, height 4.19912) is the 5, 6, 7 triangle seen from its longest side, so it returns the same 14.6969 and proves the two methods match.
  3. Two sides and included angle: enter the two sides that form the angle and the angle between them in degrees, greater than 0 and less than 180. Sides 5 and 7 at 60 degrees give 15.1554.
  4. Three vertex coordinates: type each corner as “x, y”. The shoelace formula does the rest, negative coordinates included. Three points on one straight line are reported as collinear, not as an area of zero.
  5. Copy or share: the buttons under the result copy the headline, the method line and the full step-by-step working, which is what a teacher or a colleague actually wants to see.

Surveyors lean on the three-sides method because pacing or taping three boundary lengths is easier than finding a true perpendicular on sloping ground. Once several triangles tile a whole plot, a field area calculator handles the larger parcel, and the same three corner coordinates you typed here also feed a center of mass calculator when the question turns from area to balance.

Heron’s formula, step by step

The formula has two moves: halve the perimeter, then take one square root. Everything else is bookkeeping.

Semi-perimeter: s = (a + b + c) ÷ 2
Area: A = √( s(s − a)(s − b)(s − c) )
Base and height: A = (base × height) ÷ 2
Two sides and included angle: A = (1/2) × a × b × sin(C)
Coordinates (shoelace): A = (1/2) |x1(y2 − y3) + x2(y3 − y1) + x3(y1 − y2)|
1. Add the sides, halve for s→ 2. Subtract each side from s→ 3. Multiply s by the three differences→ 4. Square root the product

The validity gate comes before any of this. The triangle inequality says each pair of sides must sum to more than the third side, strictly. Equality is not enough: sides 1, 2 and 3 collapse into a flat segment with zero area, so this calculator rejects them with the failing pair named, instead of quietly returning 0. The formula itself is credited to Hero of Alexandria, whose proof in the Metrica is the earliest surviving one; the MacTutor biography of Heron of Alexandria covers the man and the manuscript, and Eric Weisstein’s MathWorld entry on Heron’s formula gives the modern statement and its equivalent forms.

Worked example: the 5, 6, 7 triangle

Sides 5, 6 and 7 give s = 9 and an area of √216 = 14.6969, and the steps box in the calculator prints exactly that working. Here is the same triangle attacked all four ways, plus the classic 3, 4, 5 right triangle, with every row reproduced in the tool.

RunInputsAreaAlso reported
Heron (worked example)Sides 5, 6, 714.6969Perimeter 18, s = 9, scalene
Base and height checkBase 7, height 4.1991214.6969Same triangle, same area
Right triangleSides 3, 4, 56Perimeter 12, s = 6, right-angled
EquilateralSides 5, 5, 510.8253Perimeter 15, s = 7.5
Two sides and angleSides 5, 7 at 60 degrees15.1554sin(60) = 0.866 in the steps
Coordinates(0, 0), (4, 0), (0, 3)6The 3, 4, 5 triangle in disguise

One warning about cross-checking by hand: the old version of this page claimed that base 7 with height 4.199 also gives 14.6969. It does not. Half of 7 × 4.199 is 14.6965, because 4.199 is the true height 4.1991253 rounded too early. Carry one more digit, 4.19912, and the methods agree to all four decimals. Rounding an intermediate value is the single most common reason two correct methods appear to disagree.

Heron or base-height: which method fits your measurements?

Pick Heron when you have three lengths and no height; pick base-height when a perpendicular height is already known or easy to measure. The trade-off is real, and it decides which tool run to trust.

Heron’s formula wins when

  • You measured three boundary lengths on the ground, as in land surveying.
  • No right angle exists to hang a perpendicular from.
  • The triangle is defined by three distances, such as a truss or a sail’s three edges.

Base and height wins when

  • The height is given in the problem or drops naturally from a right angle.
  • You need a mental-arithmetic answer: half of base × height is one multiplication.
  • Only two measurements exist and inventing a third side would add error.

The other two methods slot into the same logic. Two sides and the included angle is the surveyor’s second instrument, the one to reach for when an angle is easier to read than a third distance. Coordinates win whenever the corners come from a map, a CAD drawing or GPS, where converting back to side lengths would waste precision. And when the shape stops being a triangle at all, the honest move is a different tool: round excavations belong to a hole area calculator, and a large plot measured in square feet usually wants converting with an acreage calculator at the end.

Where Heron’s formula gets fragile: needle-thin triangles

Heron’s formula is exact in theory, but very thin triangles stress it in practice. When one side is almost the sum of the other two, two of the (s − side) factors become tiny differences of nearly equal numbers, and rounding eats them.

Try sides 10, 10 and 19.9 in the tool: the area is a modest 9.9376, and the steps show why, s − c is just 0.05. Push the long side to 19.9999 and the surviving digits in that factor shrink again. Numerical analysts have flagged this for decades; William Kahan’s note Miscalculating Area and Angles of a Needle-like Triangle works through the failure and the rearranged form that fixes it. This calculator keeps the classic form, rounds outputs to four decimals, and the practical takeaway is simple: on a needle-shaped triangle, trust the first two or three decimals and treat the fourth as approximate. For ordinary triangles, classroom, construction or garden-variety, the issue never appears.

What competing calculators miss

The top results for this keyword split into full triangle solvers that bury the area and thin one-formula pages that skip the checks. This page was built to sit between them:

  • Omni Calculator’s Heron’s formula page: the strongest rival, with angles, heights and a good discussion of the thin-triangle weakness. But it is Heron only: no base-height, SAS or coordinate method on the page, so a reader holding a height or three coordinates has to leave and convert.
  • AI Online Calculator’s triangle area page: adds the three interior angles via the law of cosines and a tidy examples table. It stops at two methods (base-height and Heron) and shows no step-by-step working for the Heron run itself.
  • EasyUnitConverter: covers base-height and Heron with a clean example, the same 5, 6, 7 triangle used here. No SAS, no coordinates, no triangle-type or right-angle report, and its reference table is base-height only.
  • MiniWebTool and ShortCalc: rich Heron extras (altitudes, inradius, circumradius, diagrams) but a single method again, and ShortCalc’s live-updating fields give no validity narrative when sides fail, just a refusal.
  • Full triangle solvers (Firgelliauto and similar): solve everything from any three values, which is powerful and also why the area is one line in a wall of outputs. A student who only needs the area and its working wades through sides, angles and radii to find it.
  • The gap this page fills: all four school-standard area methods in one tool, each with printed steps, a named triangle-inequality failure instead of a silent NaN, type and right-angle detection in three-sides mode, and an honest note on the one case, needle-thin triangles, where the fourth decimal deserves suspicion.

Frequently asked questions

Use Heron’s formula when you know all three side lengths but not the perpendicular height. If you do know the height, base times height divided by two is quicker, and both methods return the same area for the same triangle, which makes one a good check on the other.

The calculator stops and names the failing pair. Three lengths only make a triangle when each pair adds up to more than the third side, so 1, 2 and 10 are rejected because 1 + 2 is not greater than 10, and a flat set like 1, 2 and 3 is rejected for the same reason.

The semi-perimeter s is half the perimeter: s = (a + b + c) / 2. For sides 5, 6 and 7 it is 9. Heron’s formula then multiplies s by (s – a), (s – b) and (s – c) and takes the square root of the product.

The shoelace formula finds the area of a polygon from its corner coordinates. For a triangle it is (1/2)|x1(y2 – y3) + x2(y3 – y1) + x3(y1 – y2)|, and the coordinates method in this calculator uses exactly that. It also works for any simple polygon whose vertices are listed in order.

Yes. Heron’s formula works for any valid triangle: equilateral, isosceles or scalene, acute, right or obtuse. In three-sides mode this calculator also runs a Pythagorean check on the sides and reports whether the triangle is right-angled.

They are four views of the same geometry. Heron’s formula can be derived from the base-height formula, and the two-sides-and-angle and shoelace forms are algebraically equivalent, so on the same triangle all four must agree. If two methods disagree, the inputs are not describing the same triangle.

Any unit, as long as all the sides use the same one. Enter sides in metres and the area is in square metres; enter them in feet and the area is in square feet. The calculator itself is unit-agnostic and prints the result in square units.

Every result is rounded to four decimal places, which is far more precision than a tape measure gives you. On very thin triangles, where one side is almost the sum of the other two, floating-point arithmetic can wobble the last decimal, so treat the fourth place as approximate on needle-shaped triangles.

Hero of Alexandria, a first-century Greek engineer and mathematician working in Roman Egypt. He proved the formula in his work Metrica, written around 60 AD, although the result was probably known to earlier mathematicians.

Add This Calculator to Your Website

Embed this calculator on your own site with the code below. Pick a size to preview it live, then copy the code.

Powered by Calculator Zilo

References

  1. Eric W. Weisstein, MathWorld (Wolfram Research). Heron’s Formula. Accessed October 22, 2026.
  2. Eric W. Weisstein, MathWorld (Wolfram Research). Shoelace Formula. Accessed October 22, 2026.
  3. Eric W. Weisstein, MathWorld (Wolfram Research). Triangle Inequality. Accessed October 22, 2026.
  4. J. J. O’Connor and E. F. Robertson, MacTutor History of Mathematics, University of St Andrews. Heron of Alexandria. Accessed October 22, 2026.
  5. National Institute of Standards and Technology. Digital Library of Mathematical Functions, Section 4.14: Trigonometric Functions. Accessed October 22, 2026.
  6. William Kahan, University of California, Berkeley. Miscalculating Area and Angles of a Needle-like Triangle. Accessed October 22, 2026.

Related calculators

Geometry Calculators45 45 90 Triangle Calculator A 45-45-90 triangle is the isosceles right triangle: two equal legs, a right angle, and a hypotenuse that is always the leg times √2.Geometry CalculatorsPerimeter Formula Calculator – Calculate Perimeter of Any Shape InstantlyGive this calculator a shape and its dimensions and it returns the perimeter with the formula written out and your numbers substituted, so you can follow every step.Geometry CalculatorsParallel Or Perpendicular CalculatorAre two lines parallel, perpendicular, or neither?Geometry Calculators30 60 90 Calculator: Solve Any Triangle FastA 30-60-90 triangle locks its sides into the ratio 1: √3: 2, so a single known value fixes the whole triangle.Geometry CalculatorsSin Calculator: Free Trigonometry Tool OnlineA sin calculator should do more than one ratio.Geometry CalculatorsGeometric Formula CalculatorSix shapes account for most geometry homework and most job-site measurement questions: rectangle, circle, triangle, square, sphere and cylinder.

We use cookies to analyze traffic. You can accept or decline cookies below. Learn more

calculatorzilo

CalculatorZilo

Free calculators for everyday life. No signup, no cost, just answers.

Categories

Finance Math Health & Fitness Education Science Real Estate Chemistry Browse all calculators

Popular tools

Mortgage Payment Calculator BMI Walking Calculator Salary Per Minute Calculator Percentage Off Calculator

Company

About Us Contact Us Privacy Policy Terms and Conditions
Disclaimer Cookie Policy DMCA Policy Affiliate Disclosure FAQ Accessibility Statement

© 2026 CalculatorZilo • Free calculators for everyone

  • Home
  • Calculators
    • Browse all calculators
    • Education
    • Real Estate
    • Chemistry
  • Finance
  • Math
  • Health & Fitness
  • Science
  • About
  • Contact
Search