Last verified · v1.0
Calculator · math
Triangle Area Calculator (3 Sides Heron's Formula)
Compute any triangle's area from three side lengths using Heron's Formula. Input sides a, b, and c to instantly get the exact area in square units.
Inputs
Triangle Area
—
Explain my result
Get a plain-English breakdown of your result with practical next steps.
The formula
How the
result is
computed.
How to Calculate Triangle Area from 3 Sides Using Heron's Formula
When all three side lengths of a triangle are known but no perpendicular height is available, Heron's Formula delivers the exact area using only those distances. Named after Hero of Alexandria (c. 60 AD), the formula requires no angles, no altitudes, and no trigonometry tables — just the three side lengths a, b, and c.
The Formula
Heron's Formula computes triangle area in two steps:
- Step 1 — Semi-perimeter: s = (a + b + c) / 2
- Step 2 — Area: A = √[s(s − a)(s − b)(s − c)]
The variable s is the semi-perimeter — exactly half the triangle's total perimeter. According to DMU's Area of Triangle Practice materials, this two-step method is the standard approach used in geometry curricula worldwide for triangles where only side lengths are measurable.
Variable Definitions
- a — Length of the first side
- b — Length of the second side
- c — Length of the third side
- s — Semi-perimeter: (a + b + c) / 2
- A — Triangle area expressed in square units matching the chosen unit system
Triangle Inequality Requirement
For a valid triangle to exist, all three conditions must hold simultaneously: a + b > c, a + c > b, and b + c > a. When any condition fails, no real triangle can be constructed from those three side lengths. The expression inside the square root becomes zero (degenerate flat triangle) or negative (geometrically impossible), and no real area exists. Always verify the triangle inequality before applying the formula.
Step-by-Step Worked Example
Consider a triangle with sides a = 7, b = 10, and c = 5:
- Semi-perimeter: s = (7 + 10 + 5) / 2 = 11
- s − a = 11 − 7 = 4
- s − b = 11 − 10 = 1
- s − c = 11 − 5 = 6
- Product: 11 × 4 × 1 × 6 = 264
- Area: √264 ≈ 16.25 square units
Real-World Applications
Heron's Formula is the preferred tool whenever measuring a perpendicular height directly is impractical:
- Land surveying: Surveyors triangulate property boundaries by measuring distances along terrain, then compute parcel areas by applying Heron's Formula to each triangulated sub-region.
- Architecture and construction: Roof tilers, glass cutters, and flooring contractors calculate material requirements for triangular sections using only the measured edge lengths.
- Navigation and cartography: Pilots and marine navigators compute the area of triangular zones formed by three known distance markers for collision-avoidance and airspace planning.
- Computer graphics: 3D rendering engines decompose polygon meshes into triangles and apply Heron's Formula to compute surface area for physically accurate shading and collision detection.
Mathematical Derivation
Heron's Formula follows directly from the law of cosines. Expressing cos(C) = (a² + b² − c²) / (2ab) and substituting into A = (1/2)ab·sin(C), combined with the Pythagorean identity sin²(C) + cos²(C) = 1, eliminates all trigonometric terms and yields the purely algebraic radical expression. A complete step-by-step derivation, tracing every substitution from the cosine rule to the final form, appears in JCU's Area and Volume Formulas Derivation.
Unit Handling
The area result always appears in square units corresponding to the unit selected for the sides. Sides entered in meters produce area in square meters (m²); sides in feet yield square feet (ft²); sides in centimeters give square centimeters (cm²). Mixing units across the three inputs — for example, entering one side in inches and another in centimeters — produces an incorrect result. Convert all three sides to a single common unit before calculating.
Precision Note for Near-Degenerate Triangles
When one side nearly equals the sum of the other two, standard floating-point arithmetic can lose significant digits through catastrophic cancellation inside the square root. A numerically stable variant sorts the sides so that a ≥ b ≥ c and restructures the product as A = (1/4)√[(a + (b + c))(c − (a − b))(c + (a − b))(a + (b − c))]. This rearrangement preserves precision for extremely flat triangles and is recommended for high-accuracy engineering and scientific applications.
Reference