Heron's Formula Calculator
Heron's formula gives you the area of any triangle when you know its three side lengths, with no need to measure an angle or a height. It was described by the ancient Greek mathematician Heron of Alexandria in the first century and remains one of the most practical tools in geometry because side lengths are almost always easier to measure than the perpendicular height. The method works in two steps. First you calculate the semi-perimeter, which is simply half the sum of the three sides: s = (a + b + c) / 2. Then you plug that into the area formula: area = the square root of s times (s minus a) times (s minus b) times (s minus c). The result only exists as a real number if the three sides satisfy the triangle inequality, meaning each side must be less than the sum of the other two. If that condition is not met, the expression under the square root is negative and no valid triangle exists. This calculator handles that check automatically and displays an error if the inputs are invalid. Enter the three side lengths in any consistent unit, whether centimetres, metres or anything else, and the calculator returns the area in square units of the same measure, the semi-perimeter, the full perimeter, and a classification of the triangle as equilateral, isosceles or scalene. The tool suits students, tradespeople estimating material quantities, and anyone needing to find an area from a measured outline. Results are for reference only.
How it works
Enter the three side lengths. The calculator first checks the triangle inequality: each side must be strictly less than the sum of the other two. If that passes, it computes the semi-perimeter s = (a + b + c) / 2 and applies Heron's formula: area = √(s × (s − a) × (s − b) × (s − c)). The perimeter is a + b + c. The type is equilateral if all three sides are equal, isosceles if exactly two are equal, and scalene if all three differ.
Worked example
With a=5, b=6, c=7 (the default values), the semi-perimeter is s = (5+6+7)/2 = 9. The area = √(9 × (9−5) × (9−6) × (9−7)) = √(9 × 4 × 3 × 2) = √216 = 14.70 square units. The perimeter is 18.00. All three sides differ, so the triangle is scalene.
Related calculators
- Triangle Calculator: solve any triangle from three known values including sides and angles.
- Area Calculator: find the area of circles, rectangles, and other common 2D shapes.
- Hypotenuse Calculator: apply Pythagoras's theorem to right triangles.
- Percent Error Calculator: check how far a calculated area differs from a measured one.