Math

Heron's Formula: Find Triangle Area From Three Sides

Use Heron's formula to find triangle area from three sides. Check triangle inequality, semiperimeter, numerical precision and a complete worked example. This guide explains the reasoning, not just the keystrokes.

Published · Updated · 4 min read

Use the semiperimeter rather than perimeter

Heron's formula gives area K=sqrt(s(s−a)(s−b)(s−c)), where a,b,c are positive triangle side lengths and s=(a+b+c)/2. The quantity s is half the perimeter. Substituting the full perimeter into the product is a different expression and produces an incorrect area. The formula is useful when all three sides are known but an altitude is not. It describes the area enclosed by a valid plane triangle, not the area of an arbitrary bent three-edge path.

Check that the triangle exists first

For positive sides, each pair must sum to more than the remaining side. Equivalently, sort them and require the two smaller lengths to sum to more than the largest. Sides 4,5,9 fail because equality gives a flat arrangement with zero area. Sides 4,5,10 cannot close. Do this check before evaluating a square root; a calculator error or an unexpected zero should not be treated as an acceptable ordinary triangle merely because an expression returned something numeric.

Work sides 5, 6 and 7

Perimeter is 18, so semiperimeter is 9. The factors are s=9, s−5=4, s−6=3 and s−7=2. Their product is 216. Therefore area is sqrt(216)=6sqrt(6), approximately 14.69693846 square units. Keep the intermediate factors visible when first applying the formula. If one side is entered in a different unit, the factors cannot be meaningfully subtracted until all lengths are converted to the same unit.

Recover an altitude as an independent interpretation

Using side 6 as the chosen base, the corresponding altitude is h=2K/6=2sqrt(6), approximately 4.898979486. Substituting into bh/2 returns the same area. This explains how Heron's side-only result relates to the familiar base-height formula without identifying a sloping edge as height. The recovered altitude belongs to that base; selecting side 5 would require a different altitude. Record the selected side when transferring a height into another calculation or a dimensioned diagram.

Check a right-triangle example

For sides 3,4,5, semiperimeter is 6 and the product is 6×3×2×1=36. Heron's area is 6. The right-triangle calculation 3×4/2 also gives 6. This second method works because those two sides are perpendicular, not because the two shortest sides of every triangle can be multiplied and halved. Use the right-angle condition explicitly when choosing that shortcut. A successful check on one special triangle does not replace the general SSS formula.

Heron examples and existence checks
SidesSemiperimeterResult
5,6,79Area 6√6
3,4,56Area 6
4,5,99Degenerate; not a positive triangle
4,5,109.5No triangle

Validate side inequalities before interpreting any square-root expression.

Understand sensitivity near a flat triangle

When a+b is only slightly greater than c, one Heron factor is very small. Subtraction of nearly equal measured lengths can lose significant information, and tiny changes in the original measurements can strongly affect the recovered area. Extra decimal digits in software do not repair measurements rounded too coarsely to resolve the triangle. Keep original precision and investigate near-equality before claiming a precise physical area. An algebraically valid near-flat triangle can still exceed a tool's supported numerical limits.

Use SSS mode for the three supplied sides

In the Triangle Calculator choose SSS and enter 5,6,7 in the matching side fields. Confirm area near 14.69693846 and perimeter 18. The implementation uses a numerically stable rearrangement of the area calculation for difficult side ratios, while rejecting degenerate or inadequately resolved cases. The mathematical meaning is still the area determined by the side lengths. The tool does not infer measurement tolerances or select which rounded side should be adjusted to make an impossible triangle close.

Check units and scaling

If all sides are doubled from 5,6,7 to 10,12,14, semiperimeter doubles and all four factors double. Their product grows by sixteen and the square root makes area four times as large. Thus lengths scale linearly and area quadratically. Sides measured in meters produce square meters. Converting centimeters to meters before applying Heron must agree with converting the resulting square centimeters by dividing by 10,000. A linear unit conversion applied directly to area misses that squared factor.

Keep side-only area within its scope

A triangular land parcel can be approximated with this method when its measured sides define the relevant plane geometry. A sloping surface, curved boundary or significant terrain relief may require a different measurement model. Do not treat one three-side calculation as a complete surveying or construction determination. Save the source side lengths, units, triangle-inequality check and rounding policy. Showing semiperimeter and the factor product makes the numerical work reviewable without suggesting the calculation verifies every physical assumption behind the measurements.

Frequently asked questions

What does s mean?

It is half the perimeter, not the full perimeter.

Do I need an altitude?

No. Heron uses three valid side lengths.

Can equality in triangle inequality be allowed?

It gives a flat zero-area arrangement, not a nondegenerate triangle.

Why might a nearly flat case be rejected?

The supplied measurements or numerical precision may not resolve a reliable positive triangle.

Sources

References used to support definitions and interpretation in this guide.

  1. OpenStax — Trigonometry Key Equations
  2. OpenStax — Law of Sines