CCalclabhub

Math · 75 calculations

Geometry

How To Calculate The Area Using Heron's Formula

Heron's formula answers a question that the familiar half-base-times-height rule cannot: what is the area of a triangle when all you know is the length of its three sides? No height, no angles and no drawing are required — only the three measurements and a square root.

Last updated

Quick Answer

A = √(s(s − a)(s − b)(s − c)), where s = (a + b + c) / 2

a, b, c
The three side lengths of the triangle
s
The semi-perimeter, half the sum of the sides
A
The area of the triangle
P
The perimeter, the sum of the three sides

Add the three sides and halve the total to get the semi-perimeter s. Subtract each side from s, multiply those three differences together with s itself, and take the square root. For sides of 13, 14 and 15 the semi-perimeter is 21, the differences are 8, 7 and 6, and the area is 84.0 square units. The same numbers also give a perimeter of 42.0 and twice an area of 168.0.

What Is The Area Using Heron's Formula?

Heron's formula gives the area of a triangle from its three side lengths alone. It is named after Heron of Alexandria, who described the method in the first century, although there is evidence that the result was known earlier. Its great advantage is that it needs no perpendicular height, so it works for triangles drawn on paper, triangles marked out on the ground and triangles defined only by three measured distances.

The calculation begins with the semi-perimeter, conventionally written as s. This is simply half the perimeter: add the three sides together and divide by two. Calling it the semi-perimeter rather than just a half-sum is more than a naming convenience, because the quantity s and the three differences s − a, s − b and s − c have a geometric meaning — each difference measures how much of the half-perimeter remains beyond one particular side.

The formula itself is compact: the area A equals the square root of s times (s − a) times (s − b) times (s − c). Every factor under the root is positive for a genuine triangle, which guarantees a real answer. The expression is symmetric in the three sides, so it makes no difference which side you label a, which b and which c — reordering them leaves the product unchanged and is a useful way to check that your arithmetic is sound.

The result is not a separate piece of geometry invented for the occasion; it follows from the ordinary area rule A = ½ab sin C combined with the cosine rule. Substituting the expression for cos C in terms of the three sides and simplifying produces exactly Heron's product. That connection explains both why the formula is always valid for a real triangle and why the semi-perimeter appears: the algebra of the cosine rule naturally groups the sides into sums and differences.

There is a boundary condition that must be respected. Three lengths form a triangle only when each is shorter than the sum of the other two, the triangle inequality. If one side equals the sum of the other two, the triangle collapses into a straight line and Heron's formula gives zero area, which is correct. If one side is longer than the sum, one of the differences under the root becomes negative, the square root is not real, and the input simply does not describe a triangle at all.

The classic worked case uses sides of 13, 14 and 15. The perimeter is 42, so the semi-perimeter is 21, and subtracting the sides leaves 8, 7 and 6. Multiplying 21 by 8 by 7 by 6 gives 7056, whose square root is exactly 84. A triangle with integer sides and an integer area is called a Heronian triangle, and the 13-14-15 case is the most quoted example because every intermediate value is a whole number.

The same intermediate values deliver two related quantities with no extra work. The perimeter is just a + b + c, which is 42.0 here, and twice the area is simply 2A, or 168.0. Twice the area is not a curiosity: it appears in coordinate geometry through the determinant giving the area from three vertices, and it is the natural quantity when applying formulas that relate a triangle's area to its circumradius. Keeping it alongside the area costs one multiplication.

Heron's formula is one of several routes to a triangle's area, and knowing when to use each one saves effort. If a base and its perpendicular height are available, half their product is fastest. If two sides and the angle between them are known, ½ab sin C wins. If the vertices are given as coordinates, the shoelace formula is direct. Heron's formula is the right tool specifically when the three sides are known and nothing else, which is a common situation in surveying, construction and geometry problems.

One numerical caution is worth carrying into real work. For a very thin, nearly flat triangle, one of the differences s − a is tiny, and subtracting two nearly equal numbers loses precision. If extreme accuracy matters for such a shape, reordering the sides into an equivalent but more stable expression, or using a coordinate method, avoids the loss. For ordinary triangles the formula is entirely reliable, and the neatness of its answer is why it has survived as the standard side-based method for nearly two thousand years.

Formula

A = √(s(s − a)(s − b)(s − c))

Formula page →

The area of a triangle from its three sides, using the semi-perimeter s and the three differences between s and each side.

SymbolMeaning
a, b, cThe three side lengths
sSemi-perimeter
AArea

s = (a + b + c) / 2 = P / 2

Formula page →

Add the three sides and halve the result. The semi-perimeter feeds every term in Heron's formula and also gives the perimeter back by doubling.

SymbolMeaning
a, b, cThe three side lengths
sSemi-perimeter
PPerimeter

P = a + b + c; 2A = 2√(s(s − a)(s − b)(s − c))

Formula page →

The perimeter comes straight from the side sum, while twice the area is the area result doubled — the form used in coordinate and circumradius formulas.

SymbolMeaning
PPerimeter
2ATwice the area
sSemi-perimeter

How To Calculate The Area Using Heron's Formula

  1. 1

    Check that the sides form a triangle

    Before doing anything else, confirm the triangle inequality: each side must be shorter than the sum of the other two. If one length is equal to the sum, the figure is flat and the area is zero; if it is greater, the measurements are impossible. This check prevents trying to take the square root of a negative number later.

  2. 2

    Add the three sides to find the perimeter

    Sum a, b and c. With sides of 13, 14 and 15 the perimeter is 42.0. This value is useful in its own right and also makes the next step trivial, since the semi-perimeter is simply half of it. Keeping the perimeter avoids repeating the same addition.

  3. 3

    Halve the perimeter to get the semi-perimeter

    Divide the perimeter by two: s = (a + b + c) / 2. For the 13-14-15 triangle this gives 21.0. The symbol s always denotes this half-perimeter in Heron's formula, not the side length, so do not confuse the two when reading the expression.

  4. 4

    Subtract each side from the semi-perimeter

    Work out s − a, s − b and s − c. Here they are 8, 7 and 6. These three differences are the part of the calculation most likely to produce a slip, so write each one down separately before multiplying. Subtract the smaller side from s or the larger, but always keep the order s minus side so the result is positive.

  5. 5

    Multiply, take the square root, and derive the related values

    Multiply s by all three differences to get 7056, then take the square root to obtain the area, 84.0 square units. Double the perimeter's half for a perimeter of 42.0, and double the area for twice an area of 168.0. Check that all units are consistent and that the area is positive before accepting the result.

Examples

Example 1: Sides 13, 14 and 15 — the area by Heron's formula

sideA
13
sideB
14
sideC
15
StepCalculationResult
Perimeter13 + 14 + 1542.0
Semi-perimeter42.0 ÷ 221.0
Differences from s21 − 13, 21 − 14, 21 − 158, 7, 6
Product under the root21 × 8 × 7 × 67056
Area√(7056)84.0

Result: A triangle with sides 13, 14 and 15 has an area of 84.0 square units.

Example 2: The same triangle — perimeter and semi-perimeter

sideA
13
sideB
14
sideC
15
StepCalculationResult
Side lengthsa, b, c13, 14, 15
Add the sides13 + 14 + 1542.0
Semi-perimeter42.0 ÷ 221.0

Result: For sides of 13, 14 and 15 the perimeter is 42.0 units and the semi-perimeter is 21.0 units.

Example 3: Twice the area from the same intermediate values

sideA
13
sideB
14
sideC
15
StepCalculationResult
Product under the root21 × 8 × 7 × 67056
Area from Heron's formula√(7056)84.0
Twice the area2 × 84.0168.0

Result: Twice the area of the 13-14-15 triangle is 168.0 square units.

Calculator

Area

84

Perimeter
42
Semi-perimeter
21
Twice the area
168

Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.

Prefer a full-width tool? Open the The Area Using Heron's Formula calculator page.

Common Mistakes

  • Using the perimeter instead of the semi-perimeter

    Heron's formula needs s, which is half the total around the triangle, not the full perimeter. Substituting 42 rather than 21 for the 13-14-15 triangle makes the product far too large and the area wrong. Always halve the perimeter before doing anything else.

  • Ignoring the triangle inequality

    If one side is longer than the other two combined, no triangle exists and one of the factors under the root becomes negative. A real answer cannot come out of invalid measurements. Check the three inequalities first, and treat a zero result as a collapsed, flat triangle rather than a mistake in arithmetic.

  • Subtracting in the wrong order

    The terms are s − a, s − b and s − c, never a − s. Reversing the subtraction produces a negative factor and a negative product, which cannot be square-rooted as a real area. For a valid triangle s is always larger than any individual side, so each difference should be positive.

  • Misplacing brackets in the product

    Every factor, including s itself, sits inside the single square root. Taking the square root of only one difference, or multiplying after taking roots, gives a completely different number. Write the expression as √(s × (s − a) × (s − b) × (s − c)) and evaluate the whole product before applying the root.

  • Rounding the intermediate differences too early

    With awkward side lengths the differences can be long decimals. Truncating them before multiplying introduces error that the square root then carries into the area. Keep full precision through the multiplication and round only the final answer; the stored reference values such as 84.0 and 168.0 should never be altered.

  • Confusing area with perimeter or with twice the area

    Area is measured in square units, while perimeter is a length, and twice the area is double the square-unit figure. For the 13-14-15 triangle these are 84.0, 42.0 and 168.0 respectively. Mixing them up produces a plausible number in the wrong units, so check dimensions at the end of every calculation.

FAQ

What is Heron's formula used for?

It finds the area of a triangle when you know all three side lengths but not the height or any angle. That situation is common in surveying, land measurement and construction, where distances are easy to measure directly but perpendicular heights are awkward to obtain.

Do I need the height of the triangle?

No. That is the whole point of the formula. The three sides determine a triangle uniquely up to reflection, so its area is fixed by them alone. The half-base-times-height rule gives the same answer when the height is available, but Heron's formula removes the need to find it.

Does the formula work for every triangle?

Yes, provided the three lengths genuinely form a triangle. Each side must be shorter than the sum of the other two. An equilateral, isosceles, scalene or obtuse triangle all work equally well, because the derivation depends only on the side lengths and not on the shape's orientation.

What is the area of a triangle with sides 13, 14 and 15?

The area is 84.0 square units. The perimeter is 42.0, so the semi-perimeter is 21.0, and the three differences are 8, 7 and 6. Their product with 21 is 7056, whose square root is exactly 84. Twice the area is 168.0.

Why is it called the semi-perimeter?

Because it is exactly half the perimeter — the total distance around the triangle divided by two. The name is traditional and reflects the formula's history. Using the symbol s for this half-sum keeps the expression short, since it appears in all four factors under the square root.

Is there a similar formula for quadrilaterals?

Brahmagupta's formula gives the area of a cyclic quadrilateral from its four sides and is a direct generalisation: √((s − a)(s − b)(s − c)(s − d)). If you set one side to zero it reduces to Heron's formula. For a general quadrilateral that is not cyclic, the four sides alone are not enough to determine the area.

References