Heron’s Formula Calculator

Triangle area from the three sides, with Heron’s formula worked in full.

What does this calculator do?

Heron’s formula computes a triangle’s area from its three sides alone — no height or angle needed. This page focuses on the formula itself: the result panel and steps show each stage of the computation (semiperimeter, the product under the root, the final square root) so you can follow or check a textbook exercise line by line. Use any length unit — as long as every input uses the same one, the results come out in that unit (areas in that unit squared).

Formula

Named after Heron of Alexandria (1st century AD):

s = (a + b + c) ÷ 2
A = √(s(s−a)(s−b)(s−c))
Triangle diagramA triangle with sides labelled a, b and c and a dashed height h.bach
Diagram not to scale.

How to use it

Enter the three sides in the same unit; they must satisfy the triangle inequality. For the full angle breakdown and classification of the same triangle, use the Triangle Calculator — this page keeps the focus on the area formula.

Worked example

Sides 7, 8, 9: s = 12, product = 12 × 5 × 4 × 3 = 720, area = √720 = 26.8328.

Formula version1.0.0
Formulas = (a + b + c) ÷ 2 A = √(s(s−a)(s−b)(s−c))
Precision4 decimals

Frequently asked questions

When is Heron’s formula the right choice?

When you know all three sides but no height or angle — a common situation with measured land plots or triangles cut from materials. With a base and height, ½bh is simpler.

Why does the formula fail for some inputs?

If the sides violate the triangle inequality, at least one factor (s−a), (s−b) or (s−c) becomes negative and the square root is undefined — which matches the geometry: no such triangle exists.

Is Heron’s formula exact?

The formula is exact in exact arithmetic. Numerical results depend on the precision of the supplied measurements and on floating-point computation — displayed values are rounded to 4 decimals, and extremely thin “needle” triangles can show small rounding effects.

Sources

Related calculators

Last updated: 2026-07-31 · v1.0.0 · Report an error