Heron's Formula Calculator

Calculate the area of a triangle from its three side lengths alone — no angle or height needed.

Area
6.00
Sides: 3, 4, 5
Perimeter
12.00
Embed on your website →

How to use Heron's formula calculator

  1. Enter the three side lengths of the triangle.
  2. The calculator works out the area automatically — no angle or height is needed.
  3. The sides must be able to form a valid triangle, otherwise "Invalid" is shown.

Heron's formula

Heron's formula gives the area of any triangle directly from its three side lengths a, b and c. First the semi-perimeter (s) is calculated, then the area itself:

s = (a + b + c) ÷ 2
Area = √(s × (s − a) × (s − b) × (s − c))

The formula is named after Heron of Alexandria, who described it around 60 AD — though there are indications it was known earlier. It's especially useful when you know all three sides but not any angle or height, since the alternative (½ × base × height) isn't directly applicable then.

Note: The three sides must satisfy the triangle inequality (the sum of any two sides must be greater than the third) to form a valid triangle. If not, the calculator shows "Invalid".
Ad space — reserved for future partners

Frequently asked questions

When should I use Heron's formula instead of ½ × base × height?

Use Heron's formula when you know all three side lengths but not the height. If you know the base and height directly instead, ½ × base × height is both simpler and faster.

Why does the calculator show "Invalid"?

Because the three sides can't form a valid triangle — the sum of the two shortest sides must always be greater than the longest side (the triangle inequality). If it's equal to or less, the triangle "flattens" into a straight line or can't close at all.

Does the formula work for all types of triangles?

Yes, Heron's formula works for any triangle — right, isosceles, equilateral, or scalene — as long as the three side lengths are valid.

Embed this calculator on your website

Copy the code below to show this calculator directly on your blog or website — completely free.