Heron's formula calculator

Area from three sides. s = (a+b+c)/2. A = √[s(s−a)(s−b)(s−c)].

Area
½ab
Perimeter
a+b+c
Long diag.
c
Triangle geometry
Live
a c b h A B C
Heron engine
Live
Watch the three side lengths become an area, one mathematical step at a time.
01
Semiperimeter
s = (a + b + c) / 2
02
Remaining lengths
s−a · s−b · s−c
03
Product inside the root
s(s−a)(s−b)(s−c)
04
Triangle area
A = √[s(s−a)(s−b)(s−c)]
Geometry at a glance
Calculated from sides
Semiperimeter
s = P / 2
Altitude to a
h = 2A / a
Area
square units
Triangle type
from side lengths

Parts

PartValue
A = lw

Parameters

cm
cm
cm
Geometry · Triangle area

Understanding Heron’s Formula

When the three side lengths of a triangle are known but its height is not, Heron’s formula gives the area without requiring an angle or an altitude.

The central idea

Students usually meet triangle area as A = ½bh. That formula is elegant, but it needs a perpendicular height. Heron’s formula solves the complementary problem: the triangle is known only through its three sides a, b, and c.

The decisive quantity is the semiperimeter, half of the perimeter. Once s = (a+b+c)/2 is known, the three differences s−a, s−b, and s−c complete the expression for the area.

h cba
The ordinary area formula needs the altitude. Heron’s formula encodes that missing altitude through the three side lengths.

Heron’s formula, step by step

A = √[s(s−a)(s−b)(s−c)]
s = (a + b + c) / 2
Step 01
s = (a+b+c)/2
Step 02
s−a, s−b, s−c
Step 03
P = s(s−a)(s−b)(s−c)
Step 04
A = √P
Professor’s interpretation: Heron’s formula is not a random four-factor trick. The semiperimeter is the organizing quantity that lets three side lengths carry the information needed to recover the area.

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 into a line and its area is zero. If one side is greater than the sum of the other two, no triangle exists.

Worked example: 5, 6, and 7

Complete calculation
1
s = (5+6+7)/2 = 9
2
s−a = 4, s−b = 3, s−c = 2
3
9 × 4 × 3 × 2 = 216
4
A = √216 ≈ 14.697 square units

Why the formula works

If side c is chosen as the base, the familiar formula is A = ch/2. The challenge is that the altitude h is unknown. Drop that altitude, apply the Pythagorean theorem to the two right triangles, and express the altitude using only a, b, and c. Substituting into the area formula produces Heron’s expression.

This is the important conceptual point: Heron’s formula has not abandoned geometry. It has compressed the geometry of the missing altitude into a side-only formula.

INPUTa, b, c SEMIPERIMETERs=(a+b+c)/2 HERON’S AREA√[s(s−a)(s−b)(s−c)]
Three sides → semiperimeter → four factors → area.

Equivalent form

The semiperimeter form is usually the clearest for teaching. An equivalent form writes everything directly in terms of the three sides:

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

Equivalent expressions are useful when manipulating the formula algebraically or implementing it numerically.

Special triangles

TriangleConditionAreaHeron’s role
Equilaterala=b=c√3a²/4Reduces to the familiar special case.
Righta²+b²=c²ab/2Returns the same area without using the angle.
Isoscelesb=cDepends on base and equal sideSymmetry simplifies the arithmetic.
Scaleneall sides differGeneral HeronThe general SSS case.

Choose the method from the information you have

Known informationMethodFormula
Base + perpendicular heightBase-heightA=½bh
Two sides + included angleSASA=½ab sin(C)
Three sidesHeron / SSSA=√[s(s−a)(s−b)(s−c)]

Common mistakes

  • Using perimeter instead of semiperimeter.
  • Forgetting the square root.
  • Skipping the triangle inequality.
  • Mixing units. Area is expressed in squared units.
  • Rounding too early. Keep precision until the final step.

FAQ

What does s mean?

The semiperimeter: s=(a+b+c)/2.

Do I need an angle?

No. Three valid side lengths are sufficient.

Can any three positive numbers form a triangle?

No. All three triangle inequalities must hold.

Does Heron work for a right triangle?

Yes. For 3-4-5 it returns 6 square units, matching ½×3×4.