Heron's Formula Calculator, Triangle Area &
angles.
Three side lengths are enough to find a triangle's area, with no height or angles.
- Semi-perimeter s
- 12 cm
- Perimeter
- 24 cm
- Largest angle
- 73.4°
Every angle is under 90° (the largest is 73.4°), so the triangle is acute and all three altitudes fall inside it.
The triangle, to scale
Drag corner A to change two sidesSides a = 7 cm, b = 8 cm and c = 9 cm, with angles A = 48.1897°, B = 58.4119° and C = 73.3985°. The dashed line is the altitude from A to side a, 7.6665 cm long.
Working
- 1Check it is a triangle: the longest side is under the other two9 is less than 15
- 2Semi-perimeter: half the distance arounds =7 + 8 + 92= 12
- 3The three differencess − a = 5, s − b = 4, s − c = 3
- 4Heron’s formula√(12 × 5 × 4 × 3) = 26.8328
- 5Angles from the law of cosinesA = 48.1897°, B = 58.4119°, C = 73.3985°
- 6Check: half of side a times its altitude gives the area again7 × 7.66652= 26.8328
Sides, opposite angles and altitudes
| Side | Length | Opposite angle | Altitude to side |
|---|---|---|---|
| a | 7 cmAltitude 7.6665 cm | 48.1897° | 7.6665 cm |
| b | 8 cmAltitude 6.7082 cm | 58.4119° | 6.7082 cm |
| c | 9 cmAltitude 5.9628 cm | 73.3985° | 5.9628 cm |
If the tape is off
Area with one side off
| Side off | Area if shorter | Area if longer | Largest change |
|---|---|---|---|
| a | 26.6128Longer: 27.051 | 27.051 | 0.82% |
| b | 26.6344Longer: 27.0279 | 27.0279 | 0.74% |
| c | 26.7094Longer: 26.9508 | 26.9508 | 0.46% |
Find the third side for an area
- Side c, with 36.87° between a and b
- 5 cm
- Side c, with 143.13° between a and b
- 12.3693 cm
Two triangles fit: one with the angle between a and b acute, one with it obtuse.
Keyboard shortcuts
- Up and Down in a number box change it by 1. Hold Shift for 10, Alt for 0.1.
- Tab to the corner handle, then use the arrow keys to move it. Shift moves it further.
- In the plot list, paste three columns copied from a spreadsheet into the first box.
A plot split into triangles
Split an uneven plot along straight lines you can measure, then enter each triangle’s three sides. The total adds up every row that makes a triangle.
| # | Side a | Side b | Side c |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 |
Each triangle
| Sides | Area |
|---|---|
| 12, 17, 23 | 99.1363 |
| 23, 19, 15 | 141.7857 |
| 15, 11, 9 | 49.1649 |
- Total of 3 triangles
- 290.0869 cm²
How it's worked out
Add the three sides and halve the total. That number, s, is called the semi-perimeter. Heron's formula then uses s with each side.
Every factor under the root has to be positive, and that is the same thing as saying each side is shorter than the other two together. The sides can be in any one unit, and the area comes out in that unit squared.
The formula carries Heron of Alexandria's name from his book Metrica, though later writers credit Archimedes with it first. It matches the half base times height rule, since the height to side c is 2A over c.
With two sides and the angle between them, the area uses the sine of that angle, and the third side comes from the law of cosines. From there, the angles, radii and drawing all follow.
The arithmetic here is the safer form. Written as above, the formula goes wrong for long, thin triangles, because s almost equals the longest side and the subtraction throws digits away. So the sides are sorted with a the longest, and William Kahan's rearrangement is used instead. For sides of 100,000, 100,000 and 0.000015 the true area is 0.75. This form returns 0.75, and the usual form returns 0.75.
Worked examples
Dev works the 13, 14, 15 exam triangle
Half the perimeter is 21, and the differences are 8, 7 and 6. Multiplying those by 21 gives 7,056, whose root is 84.
The height to the side of 14 is 12, also a whole number, which is why this triangle turns up so often in exams. Its largest angle is 67.38°, so it is acute.
Rosa mulches a triangular garden bed
Rosa measures sides of 12 m, 17 m and 23 m with a tape. The semi-perimeter is 26 m, and the bed covers 99.14 m². Mulch 5 cm deep would take about 4.96 m³.
The angle opposite the 23 m side is 103.61°, more than 90°, so the triangle is obtuse. That is why she could not simply measure a height across the bed: from two of the corners, the height lands outside the shape.
Marek has two fence runs and the angle between them
Runs of 5 m and 8 m meet at 60°. The area is half of 5 times 8 times sin 60°, about 17.32 m², and the side that closes the triangle is 7 m.
Heron's formula on those three sides gives the same 17.32 m², which is the check at the end of the steps.
Reading your result
The exact form is often neater. With whole-number sides the root simplifies: the 7, 8, 9 triangle has an area of 12√5, about 26.83. A right triangle needs no root at all, since 3, 4, 5 gives 6, the same as half of 3 times 4.
Acute, right or obtuse comes from the longest side. Square it, and square the other two. If the longest square is equal to the other two added, the triangle is right. Larger means obtuse, and smaller means acute.
Inradius is the radius of the largest circle that fits inside, the area over s. Circumradius is the radius of the circle through all three corners, abc over 4A. Both grow in step with the size of the triangle, and their ratio tells you its shape.
Thin triangles amplify tape errors. When two sides barely add up to the third, a small slip changes the area a lot. A 1% error on the long side of 5, 5, 9.5 moves the area by up to 8.9%, but the same slip on an equilateral 5, 5, 5 moves it only 0.7%. Measure the longest side of a thin plot with care.
Sides that are not a triangle get a clear refusal. For 2, 3 and 6 you see: These sides cannot form a triangle: the two shorter sides add up to 5, which is not more than the longest side, 6.
Two sides and an area can fit two triangles. Sides of 13 and 14 with an area of 84 take a third side of either 15 or 22.47. The angle between them is acute in one and obtuse in the other, and both angles share a sine.
| Sides | Area |
|---|---|
| 3, 4, 5 | 6 |
| 5, 5, 6 | 12 |
| 5, 5, 8 | 12 |
| 4, 13, 15 | 24 |
| 5, 12, 13 | 30 |
| 9, 10, 17 | 36 |
| 3, 25, 26 | 36 |
| 7, 15, 20 | 42 |
Common mistakes
- Using the full perimeter instead of half. The s in the formula is half the distance around. Using the whole perimeter gives a much larger number, with no warning.
- Forgetting to take the root. The product under the root is the area squared, so 7,056 for the 13, 14, 15 triangle, not its area.
- Mixing units. One side in feet and two in inches gives a meaningless answer. Convert first, then enter them.
- Rounding s before you subtract. On a thin triangle, a rounded s can wipe out the small differences. Keep every digit until the last step.