ES EN FR PT DE IT

Triangle Area (Heron's Formula)

Triangle Area (Heron's Formula). Free online calculator with formula, examples and step-by-step guide.

The Triangle Area (Heron's Formula) is a free online math calculator. Triangle Area (Heron's Formula). Free online calculator with formula, examples and step-by-step guide. Get instant results with the detailed formula and step-by-step examples.
Inputs
Technical Parameters
Dimensions
Result
Enter values and press Calculate

Heron's Formula Calculator: Find Triangle Area from Three Sides

What is Heron's Formula?

Heron's formula calculates the area of any triangle when you know all three side lengths—no height or angles required. This ancient method, attributed to Heron of Alexandria around 60 AD, solves a problem that stumped earlier mathematicians: finding area without perpendicular measurements.

Imagine a triangular plot of land with sides measuring 13 meters, 14 meters, and 15 meters. You can't easily measure the height because it falls outside the property or crosses uneven terrain. Heron's formula handles this effortlessly. First, calculate the semi-perimeter: s = (13 + 14 + 15) / 2 = 21 meters. Then apply the formula: Area = √[21 × (21-13) × (21-14) × (21-15)] = √[21 × 8 × 7 × 6] = √7,056 = 84 square meters.

The formula works for every triangle type: equilateral (all sides equal), isosceles (two sides equal), and scalene (no equal sides). It even handles obtuse triangles where the height falls outside the triangle itself. The 13-14-15 triangle above is scalene and acute, but Heron's formula would work identically for a 5-6-10 obtuse triangle.

This method appears in surveying, architecture, computer graphics, and navigation. GPS systems use it to calculate areas of irregular parcels defined by coordinate points. Video game engines apply it to render triangular surface patches. The formula's elegance lies in its universality—one equation handles all cases.

How It Works: The Mathematics Behind Heron's Formula

Heron's formula transforms three side lengths into area through the semi-perimeter. Understanding why it works reveals beautiful connections between algebra and geometry.

The Semi-Perimeter: The semi-perimeter s equals half the triangle's perimeter: s = (a + b + c) / 2. For sides 7, 8, and 9: s = (7 + 8 + 9) / 2 = 12. This value represents the average "reach" of the triangle's boundary and appears in many triangle formulas beyond Heron's.

The Core Formula: Area = √[s(s-a)(s-b)(s-c)]. Each term (s-a), (s-b), (s-c) measures how much the semi-perimeter exceeds each side. For our 7-8-9 triangle: Area = √[12 × (12-7) × (12-8) × (12-9)] = √[12 × 5 × 4 × 3] = √720 ≈ 26.83 square units.

Why It Works: The formula derives from combining the standard area formula (A = ½bh) with the Law of Cosines. Through algebraic manipulation, the height and angle terms eliminate, leaving only side lengths. Geometrically, the product s(s-a)(s-b)(s-c) represents a kind of "geometric mean" that captures the triangle's spread.

Alternative Forms: Heron's formula can be rewritten without the semi-perimeter: Area = ¼√[(a+b+c)(-a+b+c)(a-b+c)(a+b-c)]. This form shows the symmetry more clearly—each factor sums two sides and subtracts the third. For computation, the semi-perimeter version requires fewer operations and reduces rounding errors.

Connection to Other Formulas: For an equilateral triangle with side a, Heron's formula simplifies to the familiar A = (√3/4)a². Try it: s = 3a/2, then A = √[(3a/2)(a/2)(a/2)(a/2)] = √(3a⁴/16) = (√3/4)a². This consistency confirms Heron's formula generalizes all triangle area calculations.

Step-by-Step Guide: Using Heron's Formula

Step 1: Verify Triangle Validity
Before calculating, confirm the three lengths can form a triangle. The triangle inequality states that any two sides must sum to more than the third. For sides 5, 7, and 15: 5 + 7 = 12, which is less than 15. These cannot form a triangle—stop here. For 5, 7, 10: all inequalities hold (5+7>10, 5+10>7, 7+10>5), so proceed.

Step 2: Calculate the Semi-Perimeter
Add all three sides and divide by 2. For a triangle with sides a = 11, b = 13, c = 16: s = (11 + 13 + 16) / 2 = 40 / 2 = 20. Write this value down—you'll use it four times. The semi-perimeter must exceed each individual side; if s ≤ any side, check your arithmetic.

Step 3: Compute Each Difference Term
Calculate (s-a), (s-b), and (s-c). For our example: (20-11) = 9, (20-13) = 7, (20-16) = 4. These differences must all be positive—if any is zero or negative, the sides don't form a valid triangle. Keep these values organized; you're building the product under the square root.

Step 4: Multiply All Four Terms
Compute s × (s-a) × (s-b) × (s-c). For our triangle: 20 × 9 × 7 × 4 = 180 × 28 = 5,040. Work systematically to avoid errors. You might group as (20 × 9) × (7 × 4) = 180 × 28, or (20 × 4) × (9 × 7) = 80 × 63 = 5,040. Both give the same result.

Step 5: Take the Square Root
Find the square root of your product. For 5,040: √5,040 ≈ 70.99 square units. This is your triangle's area. If the product is a perfect square (like 7,056 = 84²), you get an exact integer area. Most real-world triangles yield irrational areas that require decimal approximation.

Step 6: Check Reasonableness
Compare your answer to a bounding rectangle. A triangle with sides 11, 13, 16 fits inside roughly an 11 × 13 rectangle (area 143). Your answer of ~71 is about half this—reasonable for a triangle. If you calculated 710 or 7.1, recheck your work. The area should be positive and less than s².

Real-World Examples with Complete Calculations

Example 1: Surveying a Triangular Lot
A property has boundaries measuring 45 feet, 52 feet, and 61 feet. What's the lot size in square feet and acres? Semi-perimeter: s = (45 + 52 + 61) / 2 = 79 feet. Area = √[79 × (79-45) × (79-52) × (79-61)] = √[79 × 34 × 27 × 18] = √1,306,116 ≈ 1,143 square feet. Convert to acres: 1,143 / 43,560 ≈ 0.026 acres—too small for building. Check: this might be just the front portion of a larger irregular lot.

Example 2: Sail Area Calculation
A triangular mainsail has edges of 4.2m, 5.8m, and 6.5m. What's its surface area? Semi-perimeter: s = (4.2 + 5.8 + 6.5) / 2 = 8.25m. Area = √[8.25 × (8.25-4.2) × (8.25-5.8) × (8.25-6.5)] = √[8.25 × 4.05 × 2.45 × 1.75] = √143.36 ≈ 11.97 square meters. Sailmakers add 10% for seams: 11.97 × 1.10 ≈ 13.17 m² of fabric needed.

Example 3: Computer Graphics Rendering
A 3D model uses a triangle with vertices at (0,0), (8,0), and (3,6). Side lengths: a = 8, b = √(3² + 6²) = √45 ≈ 6.71, c = √(5² + 6²) = √61 ≈ 7.81. Semi-perimeter: s = (8 + 6.71 + 7.81) / 2 ≈ 11.26. Area = √[11.26 × 3.26 × 4.55 × 3.45] ≈ √576 ≈ 24 square units. (The exact area using coordinates is ½ × 8 × 6 = 24, confirming Heron's formula.)

Example 4: Quilt Patch Design
A quilter creates triangular patches with sides 5 inches, 6 inches, and 7 inches. How much fabric for 20 patches? Semi-perimeter: s = (5 + 6 + 7) / 2 = 9 inches. Area = √[9 × (9-5) × (9-6) × (9-7)] = √[9 × 4 × 3 × 2] = √216 ≈ 14.7 square inches per patch. For 20 patches: 14.7 × 20 = 294 square inches ≈ 2.04 square feet. Add 15% for seam allowance: 2.35 square feet total.

Example 5: Yield Sign Dimensions
A standard yield sign is an equilateral triangle with 36-inch sides. Verify Heron's formula gives the expected area. Semi-perimeter: s = (36 + 36 + 36) / 2 = 54 inches. Area = √[54 × (54-36) × (54-36) × (54-36)] = √[54 × 18 × 18 × 18] = √314,928 ≈ 561.2 square inches. Using the equilateral formula: (√3/4) × 36² ≈ 565.7 square inches. The small difference is rounding; exact calculation confirms they match.

Common Mistakes to Avoid

Mistake 1: Forgetting to Divide by 2 for Semi-Perimeter
Using the full perimeter instead of semi-perimeter breaks the formula. For sides 3, 4, 5: wrong approach uses s = 12, giving √[12 × 9 × 8 × 7] = √6,048 ≈ 77.8—far too large. Correct s = 6 gives √[6 × 3 × 2 × 1] = √36 = 6, matching the known area of a 3-4-5 right triangle (½ × 3 × 4 = 6). Always divide by 2.

Mistake 2: Applying to Invalid Side Combinations
Sides 2, 3, and 8 cannot form a triangle (2 + 3 = 5 < 8), but plugging into Heron's formula gives s = 6.5, then √[6.5 × 4.5 × 3.5 × (-1.5)], which involves the square root of a negative number. This signals invalid inputs. Always check the triangle inequality first: the sum of any two sides must exceed the third.

Mistake 3: Mixing Units Between Sides
Combining centimeters, inches, and meters produces nonsense results. A triangle with sides 10 cm, 5 inches, and 0.15 m must convert to common units first. Converting all to centimeters: 10 cm, 12.7 cm (5 × 2.54), 15 cm (0.15 × 100). Then s = 18.85 cm, and area ≈ 63.5 cm². Consistent units are essential.

Mistake 4: Rounding Intermediate Values Too Early
Rounding s or the differences before multiplying introduces errors. For sides 7.33, 8.47, 9.21: exact s = 12.505. Rounding to 12.5 gives area ≈ 30.18. Using full precision: √[12.505 × 5.175 × 4.035 × 3.295] ≈ 30.22. The 0.04 difference may matter in engineering contexts. Keep full precision through all steps, round only the final answer.

Pro Tips for Heron's Formula

Tip 1: Use the Right Triangle Shortcut When Possible
If you recognize a right triangle, use A = ½ × base × height instead. For sides 9, 40, 41: this is a Pythagorean triple (9² + 40² = 81 + 1,600 = 1,681 = 41²). Area = ½ × 9 × 40 = 180. Heron's formula gives the same result but requires more calculation. Reserve Heron's for non-right triangles where height isn't obvious.

Tip 2: Factor Before Multiplying
When computing s(s-a)(s-b)(s-c), look for opportunities to simplify. For s = 15, (s-a) = 12, (s-b) = 10, (s-c) = 7: instead of 15 × 12 × 10 × 7 = 12,600, factor as (3 × 5) × (3 × 4) × (2 × 5) × 7 = 2² × 3² × 5² × 7. Then √(2² × 3² × 5² × 7) = 2 × 3 × 5 × √7 = 30√7 ≈ 79.37. This reveals exact forms when they exist.

Tip 3: Check with Coordinate Geometry
When you have vertex coordinates, use the determinant formula as a cross-check: Area = ½|x₁(y₂ - y₃) + x₂(y₃ - y₁) + x₃(y₁ - y₂)|. For vertices (0,0), (6,0), (3,4): Area = ½|0 + 6(4-0) + 3(0-0)| = ½ × 24 = 12. Heron's formula with sides 6, 5, 5 should match: s = 8, A = √[8 × 2 × 3 × 3] = √144 = 12 ✓.

Tip 4: Handle Near-Degenerate Triangles Carefully
When sides nearly satisfy a + b = c (like 5, 7, 11.999), the triangle is extremely flat and area approaches zero. Numerical precision becomes critical. The product s(s-a)(s-b)(s-c) involves subtracting nearly equal numbers, amplifying rounding errors. Use high-precision arithmetic or the alternative ¼√[(a+b+c)(-a+b+c)(a-b+c)(a+b-c)] form for better stability.

Tip 5: Memorize Common Integer-Area Triangles
Some integer-sided triangles have integer areas—these are Heronian triangles. Examples: 3-4-5 (area 6), 5-5-6 (area 12), 5-5-8 (area 12), 13-14-15 (area 84). Recognizing these saves calculation time. The 13-14-15 triangle is especially common in textbooks because it produces a clean integer result despite being scalene.

Frequently Asked Questions

Heron (or Hero) was a Greek mathematician and engineer living in Roman Egypt around 10-70 AD. He invented the aeolipile (first steam engine), described vending machines, and wrote extensively on mechanics and geometry. His formula for triangle area appeared in "Metrica," a work lost until 1896. Archimedes may have known it earlier, but Heron's proof survives.

No, but the value under the square root can be negative if the sides don't form a valid triangle. This happens when one side equals or exceeds the sum of the other two. A zero result means the three points are collinear—they form a "flat" triangle with no interior area. Always verify triangle inequality before calculating.

Yes, Heron's formula works for all triangles regardless of angle type. An obtuse triangle with sides 5, 6, 10 has s = 10.5 and area = √[10.5 × 5.5 × 4.5 × 0.5] ≈ 13.7 square units. The obtuse angle (opposite the longest side) doesn't affect the calculation. This universality is the formula's main advantage over base-height methods.

Use the trigonometric area formula: A = ½ab·sin(C). For sides 8 and 11 with included angle 60°: A = ½ × 8 × 11 × sin(60°) = 44 × 0.866 ≈ 38.1 square units. This is faster than finding the third side via Law of Cosines, then applying Heron's. Choose the formula matching your known values.

Written and reviewed by the CalcToWork editorial team. Last updated: 2026-04-29.

Frequently Asked Questions

15% of 200 is 30. Calculated as 200 × 15 / 100 = 30.
Percentage change = ((final − initial) / |initial|) × 100. From 80 to 100 it is (20/80)×100 = 25%.
The Pythagorean theorem states that in a right triangle, c² = a² + b², where c is the hypotenuse and a, b are the legs.
If A corresponds to B, and we want what corresponds to C: X = (B × C) / A.