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))
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.
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
- Standard Euclidean triangle geometry (Heron’s formula, the Pythagorean theorem, the law of cosines). Results are mathematically calculated from the supplied values, subject to input and display precision; the exact formula is shown on this page.
- OpenStax — Algebra and Trigonometry 2e (non-right triangles: law of cosines and Heron’s formula chapter)
- Khan Academy — Right triangles and trigonometry (kept as an accessible explainer, not the primary source)
- Reviewed: 2026-07-31
Related calculators
Last updated: 2026-07-31 · v1.0.0 · Report an error