Heron's Formula: Area of a Triangle from Three Sides
Calculates the area of a triangle from its three sides with Heron's formula √(s(s−a)(s−b)(s−c)), where s is the semi-perimeter.
Explanation
Heron's formula gives the area of a triangle from its three sides alone. No angle, no height. It earns its keep in surveying and anywhere else that lengths are all you can measure.
S=s(s−a)(s−b)(s−c),s=2a+b+c
a, b, c — the three side lengths
s — the semi-perimeter, half the distance around the triangle
S — the area
Work out s first, subtract each side from it in turn, multiply the three results together with s, and take the square root.
Example
Take a=3, b=4, c=5. The semi-perimeter is s=23+4+5=6, so
S=6×(6−3)×(6−4)×(6−5)=6×3×2×1=36=6
The area is 6. As 3, 4, 5 is a right triangle, this agrees with 21×3×4=6.
Notes
The sides must satisfy the triangle inequality: any two of them must add up to more than the third. Lengths that fail it describe no triangle, and the calculator reports it.
When the inequality holds, s−a, s−b and s−c all come out positive. For instance s−a=2b+c−a, which is positive exactly when b+c>a. That is why the quantity under the square root is positive and the area is a real number.
Keep the units consistent: sides in cm give an area in cm², sides in m give m².
Three sides determine a triangle completely, so the area they give is unique.