Heron's Formula Calculator – Triangle Area from Three Side Lengths
Heron's Formula is a classical geometry result that computes the area of any triangle knowing only its three side lengths — no angles, no altitude, and no coordinate system required. It is one of the oldest algorithms in mathematics, attributed to Heron of Alexandria around 60 AD, and remains one of the most practical tools for real-world measurement problems where distances are easier to measure than heights.
The Formula
Given a triangle with sides a, b, and c, the area is:
s = (a + b + c) / 2 (semi-perimeter)
Area = √( s × (s − a) × (s − b) × (s − c) )
The semi-perimeter s is an elegant intermediate quantity: the four factors inside the square root — s, s−a, s−b, and s−c — each measure how much larger the full semi-perimeter is compared to one side. When all four factors are positive the triangle is valid; if any factor is zero or negative the sides violate the triangle inequality and no real triangle exists.
Triangle Validity Check
Before computing the area, the calculator verifies the triangle inequality: every side must be strictly less than the sum of the other two.
a + b > ca + c > bb + c > a
Sides that fail any of these checks — such as 1, 2, and 10 — produce an error message rather than a nonsensical area. Degenerate triangles where one side exactly equals the sum of the others also fail, since the area would be zero and the shape is a straight line.
What the Calculator Returns
Beyond the area, each calculation also provides:
- Semi-perimeter — the value of
s, shown for educational reference and to make the intermediate step transparent. - Perimeter — the total length of all three sides combined, useful for fencing, framing, and border calculations.
- Triangle type (by sides) — classified as Equilateral (all three sides equal), Isosceles (exactly two sides equal), or Scalene (all sides different).
- Step-by-step derivation — the substituted values at each stage so you can follow or verify the calculation by hand.
Unit Conversion
All three sides must share the same length unit, but the area output can be in any compatible area unit. For example, you can input sides in feet and receive the area in square meters. The calculator converts each side to meters, applies Heron's formula in SI base units, then converts the resulting m² to your chosen output unit using standard conversion factors.
Supported length units: mm, cm, m, km, in, ft, yd, mi. Supported area output units: mm², cm², m², km², in², ft², yd², mi².
Practical Applications
Heron's Formula is especially useful in scenarios where measuring the height of a triangle is impractical or impossible:
- Land surveying — when a plot boundary is measured by three points, the enclosing triangular area can be computed from the three boundary-to-boundary distances alone.
- Construction and carpentry — calculating the area of a triangular roof section, floor tile, or gable end from measured rafter and ridge lengths.
- Navigation — estimating the area of a triangular region formed by three waypoints whose mutual distances are known from GPS data.
- Woodworking — laying out and computing the area of irregular triangular panels or gussets when measuring angles is difficult.
- Education — a standard result in secondary and undergraduate geometry courses, demonstrating how area emerges purely from metric information without trigonometric functions.
Connection to Other Formulas
Heron's Formula is algebraically equivalent to the trigonometric area formula ½ab sin(C). When you know two sides and the included angle, that formula is more direct. When you know only the three sides — the SSS case — Heron's Formula is the natural choice. For right triangles, ½ × base × height gives the same result with less computation, but Heron's Formula works equally well without needing to identify which side is the base.
The formula also underlies several derived quantities. The inradius of a triangle is r = Area / s, and the circumradius is R = (abc) / (4 × Area). If you need these additional properties, the Inradius of Triangle Calculator and Circumradius of Triangle Calculator build directly on the same Heron's Formula foundation.
Precision and Numerical Notes
Heron's Formula can suffer from catastrophic cancellation when the triangle is very flat (one side nearly equal to the sum of the other two). In such cases, the four factors inside the square root become very small numbers near zero, and floating-point subtraction loses significant digits. For classroom and most engineering purposes this is not a concern, but for near-degenerate triangles with extreme precision requirements, an alternative numerically stable formulation is recommended. The decimal precision selector (0–10 places) lets you match the displayed output to the accuracy of your measurements.