Heron's Formula for Triangle Area
Heron's formula (also known as Hero's formula) allows you to calculate the area of any triangle when you know the lengths of all three sides. It is particularly useful for scalene triangles where the base-height method is not straightforward.
The Formula
Given a triangle with sides a, b, and c:
- Calculate the semi-perimeter: s = (a + b + c) / 2
- Apply Heron's formula: A = sqrt(s(s-a)(s-b)(s-c))
Why Heron's Formula Works
Heron's formula is derived from the law of cosines and algebraic manipulation. It was first proved by Hero of Alexandria in the 1st century AD. The formula elegantly computes the area without needing to find the height of the triangle, making it ideal for computational purposes.
Examples
Triangle: 3, 4, 5
s = 6, Area = sqrt(6 * 3 * 2 * 1) = sqrt(36) = 6
Triangle: 5, 7, 10
s = 11, Area = sqrt(11 * 6 * 4 * 1) = sqrt(264)
Triangle: 8, 11, 13
s = 16, Area = sqrt(16 * 8 * 5 * 3) = sqrt(1920)
Limitations
- The three sides must satisfy the triangle inequality (sum of any two sides must exceed the third).
- All side lengths must be positive numbers.
- For very flat triangles (nearly degenerate), numerical precision may be an issue.