terican

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.

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.

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

Frequently asked questions

What is Heron's Formula and how does it calculate triangle area from 3 sides?
Heron's Formula computes triangle area from three side lengths in two steps. First, calculate the semi-perimeter s = (a + b + c) / 2. Then apply A = √[s(s−a)(s−b)(s−c)]. For a triangle with sides 6, 8, and 10: s = 12, and A = √[12 × 6 × 4 × 2] = √576 = 24 square units — a result that also confirms the 6-8-10 right triangle via the standard base-times-height check of (1/2) × 6 × 8 = 24.
Does Heron's Formula work for all triangle types — equilateral, isosceles, scalene, and right triangles?
Yes. Heron's Formula is fully general and applies to every valid triangle type: equilateral, isosceles, scalene, acute, obtuse, and right. For an equilateral triangle with all sides equal to 6, s = 9 and A = √[9 × 3 × 3 × 3] = √243 ≈ 15.59 square units. The only cases where the formula fails are when the three sides cannot form a real triangle — that is, when the triangle inequality is violated and the radicand becomes negative or zero.
What happens if the three side lengths I enter violate the triangle inequality?
When the three sides violate the triangle inequality — meaning the sum of at least two sides does not exceed the third — no geometrically valid triangle exists. In Heron's Formula, the product s(s−a)(s−b)(s−c) becomes negative, which has no real square root. A result of zero indicates a degenerate flat triangle with no area. This calculator detects such inputs before computing and displays an error message rather than returning an imaginary or meaningless result.
How accurate is this 3 sides triangle area calculator for very flat or near-degenerate triangles?
Very flat triangles — where one side is nearly equal to the sum of the other two — can cause standard implementations of Heron's Formula to lose many significant digits due to floating-point cancellation inside the square root. For example, a triangle with sides 100, 100, and 199.99 is nearly degenerate. This calculator applies a numerically stable variant that reorders the sides and restructures the inner product, preserving full floating-point precision even in extreme near-degenerate cases, making it suitable for engineering and scientific use.
Can this triangle area calculator handle different units such as meters, feet, centimeters, and inches?
Yes. The unit system selector supports meters, centimeters, feet, inches, and yards. The calculated area is automatically expressed in the corresponding square unit — sides in meters yield area in square meters (m²), sides in feet yield square feet (ft²), and sides in centimeters yield square centimeters (cm²). All three side inputs must share the same unit. If original measurements use mixed units, convert all three sides to one consistent unit before entering values into the calculator to ensure a correct result.
How does Heron's Formula compare to the base-times-height formula for calculating triangle area?
The standard formula A = (1/2) × base × height requires knowing the perpendicular height from one vertex to the opposite side, which is often impossible to measure directly in real-world settings like uneven terrain or sloped rooftops. Heron's Formula requires only the three side lengths, making it the practical choice for surveying, construction, and navigation. Both methods produce identical results for the same triangle: a right triangle with legs 9 and 12 gives A = 54 square units by either formula, since side lengths 9, 12, and 15 yield the same answer through Heron's Formula.