Triangle geometry · Visual learning

Heron's formula calculator

Find a triangle's area from its three side lengths—and learn why the formula works. The page connects semiperimeter, altitude, triangle inequality, and area through live geometry.

Report error
Area
14.697
square units · √[s(s−a)(s−b)(s−c)]
Perimeter
18
a + b + c
Semiperimeter
9
s = P / 2
Live triangle geometry · where the area lives
The triangle redraws from a, b, and c. The altitude to side a shows the geometric meaning of the same area Heron's formula recovers.
LIVE
Base a 5Altitude 5.879Area 14.697
Live Heron engine · four factors
The semiperimeter creates four positive factors. Their product is the quantity under the square root.
LIVE
s
9
s − a
4
s − b
3
s − c
2
Inside the root216
Square root → area14.697
Live triangle balance · what the side lengths imply
Side equality describes the triangle's symmetry; the squared-side comparison identifies acute, right, or obtuse shape.
LIVE
Type ScaleneAngle class AcuteTriangle inequality Pass
Live intelligence

What the current three sides are telling you

LIVE
Area14.697
Semiperimeter9
Altitude to a5.879
ShapeScalene · acute
Heron's area agrees with the ordinary base-height formula: A = a·h/2.

Current triangle at a glance

Derived from the three sides
QuantityExpressionValue
Enter three positive side lengths that satisfy the triangle inequality.

Triangle sides

unit
unit
unit
Enter three side lengths. The calculator checks the triangle inequality before applying Heron's formula.
Triangle geometry · Visual learning

Understanding Heron's formula from three sides to area

Heron's formula is the side-only area formula for a triangle. When a, b, and c are known but an angle or perpendicular height is not, the semiperimeter turns those three lengths into the exact area.

Central idea: the formula does not replace geometry—it compresses the missing altitude into information already contained in the three side lengths.
h a c b
The familiar formula A = ½ah needs the altitude h. Heron's formula recovers the same area without asking you to know h first.

1. What Heron's formula actually solves

For a triangle with side lengths a, b, and c, the usual area formula is A = ½ah when a is used as the base. That is simple, but the altitude h is often the quantity you do not know.

Heron's formula solves the SSS (side-side-side) case directly. Its organizing quantity is the semiperimeter, the perimeter divided by two:

s = (a + b + c) / 2

2. Heron's formula, step by step

A = √[s(s−a)(s−b)(s−c)]
s = (a+b+c)/2
01 · PerimeterP=a+b+cAdd the three sides.
02 · Semiperimeters=P/2Half the perimeter.
03 · Four factorss(s−a)(s−b)(s−c)Build the quantity under √.
04 · AreaA=√(...)Take the square root last.

The four factors are all non-negative for a valid non-degenerate triangle. That is not an accident: the triangle inequality is exactly what keeps the factors meaningful.

3. Why the triangle inequality comes first

Three positive numbers do not automatically make a triangle. They must satisfy all three inequalities:

a+b > c    a+c > b    b+c > a

If equality holds, the triangle collapses to a line and its area becomes zero. If one side is greater than the sum of the other two, the three segments cannot close.

a + b < c → cannot close valid triangle
The longest side must be shorter than the sum of the other two. The calculator checks all three pairings before calculating the area.

4. Where the formula comes from

Choose side a as the base and drop the altitude h. Let the altitude split a into two pieces x and a−x. Applying the Pythagorean theorem to the two right triangles gives two equations. Eliminating x produces an expression for h² in terms of a, b, and c; substituting that into A = ½ah simplifies to Heron's formula.

KNOWNa, b, c DROP ALTITUDEA = ah/2solve h from the sides HERONA = √[s(s−a)(s−b)(s−c)]same area, different route
Heron's formula is the algebraic compression of the ordinary base-height geometry.

5. Equivalent form without s

Some problems or algebraic manipulations are easier when the semiperimeter is expanded:

A = ¼√[(a+b+c)(−a+b+c)(a−b+c)(a+b−c)]

The two forms are mathematically equivalent. The semiperimeter form is usually easier to read and teach because each factor has a clear role.

6. Worked example: 5, 6, and 7

Complete SSS calculation
1
P = 5 + 6 + 7 = 18, so s = 18/2 = 9.
2
s−a = 4, s−b = 3, and s−c = 2.
3
s(s−a)(s−b)(s−c) = 9×4×3×2 = 216.
4
A = √216 ≈ 14.697 square units.
5
The altitude to side 5 is h = 2A/5 ≈ 5.879, so ½×5×5.879 ≈ 14.697 again.

7. What the side lengths tell you before you calculate

The three sides contain more information than area alone. Comparing equal sides identifies symmetry, while comparing the square of the longest side with the squares of the other two identifies the angle class.

What to inspectResultMeaning
All three equalEquilateralAll angles are 60°.
Exactly two equalIsoscelesTwo angles are equal.
All differentScaleneNo pair of sides is equal.
c² = a² + b² for longest cRightThe largest angle is 90°.
c² < a² + b²AcuteThe largest angle is less than 90°.
c² > a² + b²ObtuseThe largest angle is greater than 90°.

8. Choosing the right area method

Heron's formula is ideal when all three sides are known. If your known information is different, another area formula may be shorter.

Known informationUseful methodFormula
Base + perpendicular heightBase-heightA = ½bh
Two sides + included angleSAS areaA = ½ab sin C
Three sidesHeron's formulaA = √[s(s−a)(s−b)(s−c)]

9. Special triangles and limiting cases

Heron's formula is not a special-case trick. It reproduces familiar results when the triangle has extra structure.

TriangleConditionArea
Equilaterala=b=c√3a²/4
Right trianglea²+b²=c²½ab
3–4–53²+4²=5²6 square units
Degenerate limita+b=c0 area

10. Units, precision, and numerical checks

Side lengths are measured in length units, so area must be in square units. Keep the side lengths in consistent units before applying the formula. For example, mixing centimetres and metres without conversion changes the geometry itself.

Precision rule: keep extra digits through the semiperimeter and product stages, then round the final area. Rounding each intermediate factor too early can slightly change the final square root.

For a valid non-degenerate triangle, the Heron product s(s−a)(s−b)(s−c) is positive. If it becomes negative from the supplied lengths, the inputs do not describe a real triangle; the calculator therefore stops before taking the square root.

11. Common mistakes students make

  • Using the perimeter instead of the semiperimeter. The formula needs s = P/2.
  • Forgetting the square root. The four-factor product is not the area itself.
  • Skipping the triangle inequality. Positive numbers alone are not enough.
  • Mixing units. Area inherits squared units.
  • Rounding too early. Preserve precision until the final step.
  • Using Heron's formula when the height is already known. In that case, A = ½bh is often simpler.

12. Frequently asked questions

What does s mean in Heron's formula?

It is the semiperimeter: s = (a+b+c)/2, exactly half of the triangle's perimeter.

Do I need an angle?

No. Three valid side lengths are sufficient for the SSS case.

Can any three positive numbers form a triangle?

No. Every pair of sides must have a sum greater than the remaining side.

Does Heron's formula work for right triangles?

Yes. For a 3–4–5 triangle it gives √[6×3×2×1] = 6 square units, matching ½×3×4.

Why is the semiperimeter useful?

It packages the three side lengths into the four factors that appear naturally when the hidden altitude is eliminated.