Precise & reliable results

Herons Formula Calculator

Free Heron's formula calculator: compute the area of any triangle from the three side lengths. No angle measurement requ

100% Accuracy
50+ Formulas Built In
Instant Calculation Speed
Free Always Free

Calculator

Your Results

Enter your values and click Calculate to see results

How Heron's Formula Works

Heron's formula calculates the area of a triangle using only its three side lengths — no height or angle measurement required. Named after Hero of Alexandria (circa 60 AD), this elegant 2,000-year-old formula is still essential in geometry, land surveying, and computer graphics today.

The formula: Step 1 — Calculate the semi-perimeter: s = (a + b + c) ÷ 2. Step 2 — Calculate the area: Area = √[s(s−a)(s−b)(s−c)].

Worked example: Triangle with sides a = 5, b = 7, c = 8. Semi-perimeter: s = (5 + 7 + 8) ÷ 2 = 10. Area = √[10 × (10−5) × (10−7) × (10−8)] = √[10 × 5 × 3 × 2] = √300 = 17.32 square units.

Area of Triangle Calculator: Multiple Methods Compared

Heron's formula is one of several ways to find triangle area. Choosing the right formula depends on what measurements you have:

  • Heron's formula (three sides known): Area = √[s(s−a)(s−b)(s−c)] — ideal when you can measure all sides but not height.
  • Base × height formula: Area = 1/2 × base × height — simplest, but requires knowing the perpendicular height (often hard to measure physically).
  • SAS formula (two sides and included angle): Area = 1/2 × a × b × sin(C) — use when you know two sides and the angle between them.
  • Coordinate formula: Area = 1/2 |x₁(y₂−y₃) + x₂(y₃−y₁) + x₃(y₁−y₂)| — use when you know the (x,y) coordinates of all three vertices, common in CAD and GIS work.

For land surveying and property boundaries, Heron's formula is the go-to because side lengths are measured directly using laser distance meters or GPS — the perpendicular height of a triangular parcel is rarely accessible.

Triangle Validity: The Triangle Inequality Test

Before applying Heron's formula, verify your three sides form a valid triangle. The triangle inequality theorem states: each side must be strictly less than the sum of the other two.

  • a < b + c (AND b < a + c AND c < a + b)
  • Example: sides 3, 4, 8 — invalid because 8 > 3 + 4 = 7. No triangle exists.
  • Example: sides 3, 4, 7 — degenerate (all points collinear); area = 0.
  • Example: sides 3, 4, 5 — valid right triangle; area = √[6×3×2×1] = √36 = 6.

A right triangle with legs 3 and 4 and hypotenuse 5 serves as a classic Heron's formula verification: 1/2 × 3 × 4 = 6, matching Heron's result of 6.

Real-World Applications of Heron's Formula

Where Heron's formula is used in practice:

  • Land surveying: Calculating area of triangular parcels from measured boundary lengths. GPS and laser range finders make side measurement easy; Heron's formula handles the rest.
  • Architecture and construction: Finding the area of triangular roof sections, gable ends, or hip roof planes using rafter lengths.
  • Computer graphics: Triangle area calculation is fundamental to 3D rendering, collision detection, and polygon mesh analysis. Heron's formula is used when vertex coordinates are in 3D space.
  • Navigation: Calculating the area of a triangle formed by three geographic position fixes — useful in celestial navigation for position verification.
  • Structural engineering: Computing forces in triangular truss members where all member lengths are known from the fabrication drawings.

Frequently Asked Questions

What is the semi-perimeter in Heron's formula?

The semi-perimeter (s) is simply half the triangle's perimeter: s = (a + b + c) ÷ 2. It appears in Heron's formula because it creates the elegant symmetry of the expression. The differences (s−a), (s−b), and (s−c) each represent how much shorter each side is than the semi-perimeter — and their product under the square root directly encodes the triangle's area.

Does Heron's formula work for all triangle types?

Yes — Heron's formula works for all valid triangles: acute (all angles < 90°), right (one 90° angle), and obtuse (one angle > 90°). It's algebraically exact, not an approximation. The only limitation is numerical precision: for very flat obtuse triangles (like sides 1, 1, 1.9999), standard floating-point arithmetic can lose precision. A numerically stable variant reorders terms to maintain accuracy: Area = 1/4√[(a+(b+c))(c+(a−b))(c−(a−b))(a+(b−c))].

Can Heron's formula be used for 3D triangles?

Yes. If you have a triangle in 3D space defined by three vertices, calculate the lengths of all three edges using the 3D distance formula: d = √[(x₂−x₁)2 + (y₂−y₁)2 + (z₂−z₁)2]. Then apply Heron's formula to those three lengths to get the triangle's surface area, regardless of its orientation in space.