Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Triangle Area
6
square units
Semi-perimeter (s) 6
Perimeter (a+b+c) 12

What Is Heron's Formula?

Heron's formula lets you compute the area of a triangle when you know the lengths of all three sides — no angles or height required. Named after Heron of Alexandria, it is one of the most elegant results in geometry and works for any valid triangle, whether acute, right, or obtuse.

Triangle with sides labeled a, b, and c
Heron's formula finds a triangle's area from its three side lengths a, b, and c.

How to Use This Calculator

Enter the three side lengths a, b, and c in the same unit (cm, m, inches, etc.). The calculator first computes the semi-perimeter \(s\), then applies Heron's formula to return the area. The result is given in square units of whatever unit you entered. For the sides to form a real triangle, each side must be shorter than the sum of the other two (the triangle inequality).

The Formula Explained

First find the semi-perimeter: $$s = \frac{a + b + c}{2}$$ Then the area is $$\text{Area} = \sqrt{s\,(s-a)(s-b)(s-c)}$$ The clever part is that the expression under the square root is always non-negative for a valid triangle and equals zero when the points are collinear (a degenerate triangle).

Triangle showing semi-perimeter as half the total perimeter
The semi-perimeter \(s\) is half the sum of the three sides and feeds into the area formula.

Worked Example

Take a triangle with sides \(a = 3\), \(b = 4\), \(c = 5\). The semi-perimeter is $$s = \frac{3 + 4 + 5}{2} = 6$$ Then $$\text{Area} = \sqrt{6 \times (6-3) \times (6-4) \times (6-5)} = \sqrt{6 \times 3 \times 2 \times 1} = \sqrt{36} = 6 \text{ square units}$$ This is the familiar 3-4-5 right triangle, and indeed \(\tfrac{1}{2} \times 3 \times 4 = 6\) confirms the answer.

FAQ

Do I need to know the angles? No — Heron's formula uses only the three side lengths.

What if I get zero or no result? The three sides don't form a valid triangle; one side is too long relative to the other two.

What units does the area use? Square units of whatever unit you used for the sides — enter all sides in the same unit.

Last updated: