Heron's formula

Heron's formula: A method for calculating a triangle's area from its three side lengths alone, without needing a separate height measurement. Unlike the base-times-height formula, it applies to any triangle. Right, obtuse or scalene.

The only condition is that the three lengths can form one.

A triangle has sides of 13, 14 and 15 units. The semi-perimeter s is (13 + 14 + 15) ÷ 2, or 21; the area is the square root of s × (s − a) × (s − b) × (s − c). That is the square root of 21 × 8 × 7 × 6, which is the square root of 7,056, or 84 square units.

No angle and no height were needed, only the three sides, and check it with a base of 14 and a height of 12, where ½ × 14 × 12 also gives 84. The formula is handy when a plot of land is measured only along its edges.

Heron's formula: interpretation pitfalls

Feeding in measurements where one side exceeds the other two combined. No such triangle exists, and the formula fails at the square root , not warning you the input was impossible.

Heron's formula: comparisons with other measurements

Heron's formula is not the same as half base times height, though both give the area; the base-height version needs a perpendicular height, which is often hard to measure. Heron's formula uses only side lengths. It also differs from the law of cosines and the law of sines, which relate sides and angles, and from Brahmagupta's formula for cyclic quadrilaterals, which extends the idea.

For a nondegenerate triangle, any two side lengths must add to more than the third. Equality gives a zero-area degenerate case; violating the inequality does not describe a real triangle.

Heron's formula: limits of the definition

Numerical accuracy suffers for very thin triangles, where the terms nearly cancel, and stable versions of the formula are used in software. Measurement errors in the sides carry through to the area. It applies to flat triangles on a plane.

On curved surfaces, such as large areas of the earth, spherical formulas are needed. For real land measurements, official surveys should be used for legal purposes.

Understanding Heron's formula

Every nondegenerate triangle has perpendicular heights, but a side-length survey need not supply one. Heron’s formula obtains area from three side lengths and their semiperimeter without a separately measured height. The lengths must satisfy the triangle inequality; a longer boundary measurement cannot substitute for a perpendicular altitude.

A land parcel with more than three sides needs a valid decomposition or additional geometry before this triangle formula applies.

Using Heron's formula

Surveyors use it to find the area of a triangular lot from measured sides. Builders and landscapers use it to estimate materials for triangular sections; students use it in geometry. Computer graphics and mapping software use versions of it to compute areas of triangles on a mesh; it turns a physical measurement task, walking the three edges, into a straightforward calculation without any need to establish a right angle.

Heron's formula: calculation reference

Heron's formula: s = (a+b+c)/2; area = √(s(s−a)(s−b)(s−c))

Heron's formula: assumed inputs and calculated quantities
QuantityEntered or calculated amountMeaning
Side A5Explicit example input.
Side B6Explicit example input.
Side C7Explicit example input.
Area14.7Result under the listed assumptions.
Perimeter18Result under the listed assumptions.
Area by Side ATriangle Area (Heron's Formula) Calculator. Assumed Side A values and their calculated Area. Side B: 6; Side C: 74124.513.4514.75.515.9617.1
Area by Side BTriangle Area (Heron's Formula) Calculator. Assumed Side B values and their calculated Area. Side A: 5; Side C: 74.8125.413.4614.76.615.87.216.6
Perimeter by Side ATriangle Area (Heron's Formula) Calculator. Assumed Side A values and their calculated Perimeter. Side B: 6; Side C: 74174.517.55185.518.5619

Triangle Area (Heron's Formula) Calculator: change the inputs and compare the resulting cases

Does it work for any triangle?

Yes, as long as the three sides can form a triangle. Any two sides must add up to more than the third.

What if the triangle is very thin?

Rounding errors can grow because two terms nearly cancel. Software uses a rearranged version that is more stable.

Check the three lengths can form a triangle.

Heron's formula: other glossary lookups