terican

Last verified · v1.0

Calculator · math

Heron's Formula Calculator

Compute the area of any triangle from its three side lengths using Heron's Formula: A = sqrt(s(s-a)(s-b)(s-c)). No height measurement needed.

FreeInstantNo signupOpen source

Inputs

Triangle Area

Explain my result

0/3 free

Get a plain-English breakdown of your result with practical next steps.

Triangle Areasq units

The formula

How the
result is
computed.

What Is Heron's Formula?

Heron's Formula provides a direct method to calculate the area of any triangle when only the three side lengths are known. Named after the Greek mathematician Heron of Alexandria (circa 10-70 AD), the formula eliminates the need for height measurements, making it especially valuable in surveying, engineering, and computational geometry. The University of Illinois MSTE documents the original derivation, which remains valid for all non-degenerate triangles.

The Formula and Its Variables

The area A of a triangle with sides a, b, and c is computed using:

A = sqrt( s(s - a)(s - b)(s - c) )

where s is the semi-perimeter:

s = (a + b + c) / 2

  • a - Length of the first side of the triangle
  • b - Length of the second side of the triangle
  • c - Length of the third side of the triangle
  • s - Semi-perimeter: half the total perimeter of the triangle
  • A - Area of the triangle expressed in square units

Why the Semi-Perimeter?

The semi-perimeter s simplifies the expression under the radical and gives each factor (s - a), (s - b), and (s - c) a clear geometric meaning: each value represents how much shorter the semi-perimeter is than each individual side. For a valid triangle, all three factors must be strictly positive, a condition guaranteed by the Triangle Inequality Theorem. When any factor reaches zero, the triangle collapses to a line segment with zero area.

Step-by-Step Calculation Process

  1. Identify the three side lengths: a, b, and c.
  2. Compute the semi-perimeter: s = (a + b + c) / 2.
  3. Subtract each side from s to obtain the three factors: (s - a), (s - b), (s - c).
  4. Multiply all four quantities together: s x (s - a) x (s - b) x (s - c).
  5. Take the positive square root of the product to find the area: A = sqrt(product).

Worked Examples

Example 1: Classic Right Triangle (3-4-5)

For sides a = 3, b = 4, c = 5: the semi-perimeter is s = (3 + 4 + 5) / 2 = 6. The area equals sqrt(6 x 3 x 2 x 1) = sqrt(36) = 6.00 square units. This matches the base-height formula exactly: (1/2) x 3 x 4 = 6, confirming the formula's consistency across methods.

Example 2: Scalene Triangle (5-6-7)

For sides a = 5, b = 6, c = 7: the semi-perimeter is s = (5 + 6 + 7) / 2 = 9. The area equals sqrt(9 x 4 x 3 x 2) = sqrt(216) = approximately 14.70 square units. No height measurement was required at any step.

Example 3: Equilateral Triangle (Side = 8)

For an equilateral triangle with a = b = c = 8: the semi-perimeter is s = (8 + 8 + 8) / 2 = 12. The area equals sqrt(12 x 4 x 4 x 4) = sqrt(768) = approximately 27.71 square units. The standard equilateral formula (sqrt(3) / 4) x 64 produces the same result, verifying accuracy.

Real-World Applications

  • Land Surveying: Computing irregular plot areas directly from GPS boundary measurements without physical height access.
  • Architecture: Estimating material quantities for triangular roof sections, gable facades, and decorative skylights.
  • Computer Graphics: Calculating polygon surface areas in 3D mesh rendering pipelines using triangle decomposition.
  • Navigation and GIS: Estimating geographic coverage within triangular coordinate regions on maps.
  • Structural Engineering: Analyzing load distributions across triangular trusses and space frames.

According to the University of Akron geometry curriculum, Heron's Formula is a foundational result that bridges algebraic and geometric properties of triangles and generalizes naturally to cyclic quadrilaterals through Brahmagupta's formula.

Triangle Validity and Numeric Precision

Before applying the formula, confirm that the three sides satisfy the Triangle Inequality: each side must be strictly less than the sum of the other two. If any factor (s - a), (s - b), or (s - c) is zero or negative, the triangle degenerates into a straight line with zero area and no real solution exists. For nearly degenerate triangles where angles approach 0 or 180 degrees, sorting the sides before computation reduces floating-point cancellation errors and preserves numeric accuracy.

Reference

Frequently asked questions

What is Heron's Formula and when should it be used?
Heron's Formula computes the area of any triangle using only the three side lengths — no height or angle measurement is required. Named after Heron of Alexandria (circa 10-70 AD), it is the preferred method in land surveying, GPS-based mapping, and computer graphics, where direct height measurements are impractical or impossible. The formula is A = sqrt(s(s-a)(s-b)(s-c)), where the semi-perimeter s = (a+b+c)/2.
How do you calculate the semi-perimeter for Heron's Formula?
The semi-perimeter s equals half the sum of all three side lengths: s = (a + b + c) / 2. For a triangle with sides 5, 12, and 13, the semi-perimeter is (5 + 12 + 13) / 2 = 15. This value feeds directly into the four multiplication factors — s, (s-a), (s-b), and (s-c) — which are multiplied together and square-rooted to produce the triangle's area.
Can Heron's Formula be used to find the area of a right triangle?
Yes. Heron's Formula produces accurate results for right triangles and all other triangle types. For a 3-4-5 right triangle, the semi-perimeter is s = 6, and the area equals sqrt(6 x 3 x 2 x 1) = sqrt(36) = 6 square units, which is identical to the standard formula result of (1/2) x base x height = (1/2) x 3 x 4 = 6. Every valid area method agrees on the same answer.
What happens if the side lengths do not form a valid triangle?
If the three sides violate the Triangle Inequality — meaning one side equals or exceeds the sum of the other two — at least one of the factors (s-a), (s-b), or (s-c) becomes zero or negative. A negative value under the square root has no real solution, and the Heron's Formula calculator will return an error or undefined result. Always confirm that each individual side is strictly less than the sum of the remaining two sides before calculating.
How accurate is Heron's Formula for very flat or nearly degenerate triangles?
For triangles where one angle approaches 0 or 180 degrees, standard floating-point implementations can suffer from catastrophic cancellation — a precision loss caused by subtracting nearly equal numbers. Numerical analysis texts recommend sorting the sides so that a is greater than or equal to b is greater than or equal to c, then applying the stable variant: A = (1/4) x sqrt((a+(b+c)) x (c-(a-b)) x (c+(a-b)) x (a+(b-c))). This rearrangement preserves significant digits across all triangle shapes.
What are the main real-world applications of Heron's Formula?
Heron's Formula appears across surveying, engineering, and computing. Land surveyors use it to compute plot areas from GPS boundary coordinates. Architects apply it to estimate material quantities for triangular roof sections and gable facades. Computer graphics pipelines use it in polygon mesh surface area calculations. Structural engineers rely on it when analyzing triangular truss load distributions. Its sole requirement — three side lengths — makes it practical whenever altitude measurements are inaccessible or inconvenient.