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.

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(sa)(sb)(sc),s=a+b+c2S = \sqrt{s(s-a)(s-b)(s-c)}, \quad s = \dfrac{a+b+c}{2}

Work out ss first, subtract each side from it in turn, multiply the three results together with ss, and take the square root.

Example

Take a=3a = 3, b=4b = 4, c=5c = 5. The semi-perimeter is s=3+4+52=6s = \dfrac{3 + 4 + 5}{2} = 6, so

S=6×(63)×(64)×(65)=6×3×2×1=36=6S = \sqrt{6 \times (6-3) \times (6-4) \times (6-5)} = \sqrt{6 \times 3 \times 2 \times 1} = \sqrt{36} = 6

The area is 6. As 3, 4, 5 is a right triangle, this agrees with 12×3×4=6\dfrac{1}{2} \times 3 \times 4 = 6.

Notes