Area of a triangle from three sides (Heron’s formula): how it works
Heron’s formula gives the area of a triangle when you know only its three sides, with no height to measure. Compute the semi-perimeter p, half the sum of the sides, then take the square root of p times the three differences p − a, p − b and p − c.
a, b and c are the sides, p = (a + b + c) / 2 the semi-perimeter and A the area. The three sides must satisfy the triangle inequality: each one is shorter than the sum of the other two.
This page opens the geometry calculator on this figure: type the measures and read every result at once, with the figure drawn and each formula next to its value. Everything is computed in your browser.
Formulas
- Area:
A = √(p(p − a)(p − b)(p − c)), p = (a + b + c) / 2 - Perimeter:
P = a + b + c
Worked example
With a = 13, b = 14, c = 15:
p = (13 + 14 + 15) / 2 = 21
A = √(21 × 8 × 7 × 6) = √7,056 = 84Table of sizes
Computed with the calculator’s own formulas, in any one unit of length (the results are in that unit, squared or cubed).
| a | b | c | Area | Perimeter |
|---|---|---|---|---|
| 3 | 4 | 5 | 6 | 12 |
| 5 | 12 | 13 | 30 | 30 |
| 8 | 15 | 17 | 60 | 40 |
| 13 | 14 | 15 | 84 | 42 |
| 7 | 8 | 9 | 26.8328 | 24 |
| 6 | 25 | 29 | 60 | 60 |
| 10 | 10 | 10 | 43.3013 | 30 |
| 20 | 21 | 29 | 210 | 70 |
Working backwards
If the three numbers do not form a triangle (for example 3, 4 and 8, because 3 + 4 < 8) the calculator says so instead of returning a number: one of the factors under the root would be zero or negative.
Common mistakes
- p is half of the perimeter, not the whole perimeter: using a + b + c under the root inflates the result.
- Typing the sides in another order changes nothing: the formula is symmetric, so a, b and c can be in any order.
Where it is used
- A surveyor who measured the three boundaries of a triangular lot (13, 14 and 15 m) gets 84 m² without ever measuring a height.
- The 3-4-5 triangle has area 6, and 5-12-13 has 30: right triangles whose sides are whole numbers also have whole areas, a good check for the calculator’s output.
Units
Areas come out in square units of the length you type: cm × cm gives cm², m × m gives m². 1 m² = 10,000 cm² = 1,000,000 mm²; 1 hectare = 10,000 m²; 1 ft² = 929.03 cm².
How to use the calculator
- Fill in the measures of the figure; the example values are already there.
- Choose the unit of length: the results follow it, in square or cubic units.
- Read area and the other measures, and copy them all with one button.
Frequently asked questions
What is Heron’s formula?
A = √(p(p − a)(p − b)(p − c)) with p = (a + b + c) / 2. For 13, 14 and 15, p = 21 and A = 84.
Can I use it for a right triangle?
Yes, it gives the same result as legs × legs / 2: for 3, 4 and 5 both give 6.
Why does the calculator say the sides do not form a triangle?
Because the longest side is as long as, or longer than, the other two together, so they cannot close. Check the measurements.