Heron's Formula Calculator

Heron's Formula Calculator

Growing AI Skill PRO
Triangle
TriangleTrianglea = 3b = 4c = 5ABC
Worked stepsStep 2 of 2

Perimeter P=a+b+cP = a + b + c

Download figure
Figure data
Side a3
Side b4
Side c5
Perimeter12
Triangle in the Library: formulas and every calculator

Enter Calculation

Formula

Area=s(s−a)(s−b)(s−c)wheres=Side a+Side b+Side c2\begin{gathered} \text{Area} = \sqrt{s\,(s-a)(s-b)(s-c)} \\[1.5em] \text{where}\quad s = \frac{\text{Side a} + \text{Side b} + \text{Side c}}{2} \end{gathered}
Usage stats

Advertisement

Results

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

Report an error on this page

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).

Advertisement
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.

Advertisement

Comparing Different Triangle Types

Sides (a, b, c) Triangle type Semi-perimeter s Perimeter Area (square units)
3, 4, 5 Right 6 12 6
5, 5, 5 Equilateral 7.5 15 ≈ 10.83
5, 5, 8 Isosceles 9 18 12
7, 8, 9 Scalene (acute) 12 24 ≈ 26.83
1, 1, 1.99 Near-degenerate (very flat isosceles) 1.995 3.99 ≈ 0.0994
1, 2, 3 Invalid (degenerate) 3 6 0

Notes: for 5, 5, 8 the product is \(9 \cdot 4 \cdot 4 \cdot 1 = 144\), so the area is exactly 12. For 1, 1, 1.99 the term \(s-c = 0.005\) is tiny, which makes the area very small. For 1, 2, 3 we get \(s-c = 0\), so the area is 0: the three points lie on one line and no real triangle exists.

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:

Most popular in Geometry

View all Geometry calculators