Heron’s Formula Calculator — Area from 3 Sides

Geometry & trigFreeNo sign-up

A Heron’s formula calculator finds a triangle’s area from its three sides. First take the semi-perimeter s = (a + b + c)/2, then Area = √[s(s − a)(s − b)(s − c)]. For sides 5, 6 and 7, s = 9 and the area is √(9 × 4 × 3 × 2) = √216 = 6√6 ≈ 14.70 square units.

Heron’s formula calculator: what do you know?
Try:
Sides can be whole numbers, decimals or fractions such as 7/2. Use the same unit for every side.
Area by Heron’s formula
Area = 6√6 ≈ 14.70 square units

Sides 5, 6, 7 · s = 9 · Scalene, acute triangle

A triangle with sides 5, 6 and 7 has semi-perimeter s = 9 and area √(9 × 4 × 3 × 2) = 6√6 ≈ 14.70 square units.

Triangle inequality check passed: each side is shorter than the sum of the other two.

Area6√6 ≈ 14.70 square units
Semi-perimeter s9
Perimeter18
Triangle typeScalene, acute

Heron’s formula pieces

s − a4
s − b3
s − c2
s(s − a)(s − b)(s − c)216

Angles (law of cosines)

Angle A≈ 44.42°
Angle B≈ 57.12°
Angle C≈ 78.46°

Heights and circles

Height to side a12√6/5 ≈ 5.88
Height to side b2√6 ≈ 4.90
Height to side c12√6/7 ≈ 4.20
Inradius r = Area/s2√6/3 ≈ 1.63
Circumradius R = abc/(4 × Area)35√6/24 ≈ 3.57
hABCa = 5b = 6c = 7Drawn to scale. Side a is opposite angle A, b is opposite B and c is opposite C. The dashed blue line is the height h onto side c.
Show steps
  1. Check the triangle inequality: 5 + 6 > 7, 5 + 7 > 6 and 6 + 7 > 5. All true, so the triangle exists.
  2. Semi-perimeter: s = (a + b + c)/2 = (5 + 6 + 7)/2 = 18/2 = 9.
  3. Subtract each side from s: s − a = 4, s − b = 3, s − c = 2.
  4. Heron’s formula: Area = √[s(s − a)(s − b)(s − c)] = √(9 × 4 × 3 × 2) = √216.
  5. Pull out the largest square factor: 216 = 36 × 6, so √216 = 6√6 = 6√6 ≈ 14.70 square units.
  6. Angles from the law of cosines, cos A = (b² + c² − a²)/(2bc): cos A = 5/7, so A ≈ 44.42°; cos B = 19/35, so B ≈ 57.12°; cos C = 1/5, so C ≈ 78.46°.
  7. Type: Scalene, acute. No two sides are equal, and the square of the longest side is less than the sum of the squares of the other two.

Check: the three angles add up to 180°, and Area = ½ × c × h gives the same answer with h = 12√6/7 ≈ 4.20.

Heron’s Formula Calculator — Area from 3 Sides
Embed this calculator on your site

Free to use on class pages, blogs and course pages. Copy the code below and paste it into your page:

How to use the Heron’s formula calculator

  1. Choose Three sides to find the area, or Two sides & area to find the missing third side.
  2. Type the side lengths as whole numbers, decimals or fractions, all in the same unit. Pick the unit if you want it shown in the answer.
  3. Press Find area (results also update as you type). The calculator checks the triangle inequality first and tells you which side is too long if the triangle cannot exist.
  4. Read the area as an exact simplified radical and a decimal, then the semi-perimeter, the three angles, the triangle type, heights, inradius and circumradius. Open Show steps for the full working and check the diagram, which is drawn to scale.

Heron’s formula

For a triangle with sides a, b and c:

  • Semi-perimeter: s = (a + b + c)/2, half the perimeter.
  • Area: A = √[s(s − a)(s − b)(s − c)].

The formula needs no height and no angles, which makes it the natural choice when only the sides are known, such as a plot of land measured with a tape. It is named after Heron of Alexandria, who gave a proof in his book Metrica.

Multiplying everything out gives an equivalent form with no fractions: 16A² = (a + b + c)(−a + b + c)(a − b + c)(a + b − c). This version is handy when the sides are decimals.

Worked examples

Example 1: sides 7, 8 and 9 (simplifying the root)

  1. s = (7 + 8 + 9)/2 = 12.
  2. s − a = 5, s − b = 4, s − c = 3.
  3. A = √(12 × 5 × 4 × 3) = √720.
  4. 720 = 144 × 5 and 144 is a perfect square, so √720 = 12√5 ≈ 26.83 square units.

Example 2: a 3-4-5 right triangle

s = 6, so A = √(6 × 3 × 2 × 1) = √36 = 6. The usual ½ × base × height gives ½ × 3 × 4 = 6 too, a quick check that the formula works.

Example 3: an equilateral triangle with side 6

s = 9 and each s − a is 3, so A = √(9 × 3 × 3 × 3) = √243 = 9√3 ≈ 15.59. This matches the equilateral formula (√3/4)a² = 9√3.

Example 4: a triangular garden

A garden has sides 20 m, 25 m and 30 m. Then s = 37.5 and A = √(37.5 × 17.5 × 12.5 × 7.5) ≈ 248.04 m². That tells you how much soil or seed to buy without measuring any height.

The triangle inequality check

Three lengths make a triangle only if each one is shorter than the sum of the other two. If one side equals the sum of the others, such as 1, 2 and 3, the three corners lie on a straight line and the area is 0. If a side is longer, such as 2, 3 and 10, the short sides cannot meet, and Heron’s formula would ask for the square root of a negative number. The calculator runs this check before anything else and names the side that fails.

Angles, triangle type and more from the sides

Once the three sides are known, the triangle is fixed, so every other measurement follows:

  • Angles come from the law of cosines: cos A = (b² + c² − a²)/(2bc). For 5, 6, 7, cos A = 5/7, so A ≈ 44.42°, B ≈ 57.12° and C ≈ 78.46°.
  • Triangle type: equilateral, isosceles or scalene by the sides; right, acute or obtuse by comparing the square of the longest side with the sum of the squares of the other two.
  • Heights: h = 2A/side. For 5, 6, 7 the height onto side 7 is 12√6/7 ≈ 4.20.
  • Inradius r = A/s and circumradius R = abc/(4A).

Finding a missing side from the area

If you know two sides and the area, the area fixes sin C = 2A/(ab). An angle and its supplement have the same sine, so there are usually two triangles: one with C acute and one with C obtuse. With sides 5 and 6 and area 12, sin C = 0.8, cos C = ±0.6, and the law of cosines gives c² = 61 ∓ 36, so c = 5 or c = √97 ≈ 9.85. Both triangles have area 12. When sin C = 1 there is a single right triangle, and when 2A is more than ab no triangle exists.

Heron’s formula quick reference

Sides s s(s − a)(s − b)(s − c) Area
3, 4, 5 6 36 6
5, 5, 6 8 144 12
5, 6, 7 9 216 6√6 ≈ 14.70
7, 8, 9 12 720 12√5 ≈ 26.83
6, 6, 6 9 243 9√3 ≈ 15.59
13, 14, 15 21 7056 84

Common mistakes with Heron’s formula

  • Using the full perimeter. s is half the perimeter. Using a + b + c makes every factor wrong.
  • Rounding s or the product early. Keep exact values until the last step; the calculator shows the exact radical for this reason.
  • Not simplifying the root. √216 should be written 6√6: find the largest perfect square factor (36) and take its root outside.
  • Mixing units. Convert all sides to the same unit first. The area comes out in square units of that length.
  • Skipping the triangle inequality. A negative factor such as s − c < 0 means the sides cannot form a triangle.
  • Trusting a calculator blindly with very thin triangles. For sides such as 100, 101 and 199, s − c is only 1, and rounded inputs can change the area noticeably. Exact arithmetic avoids that.

Checking homework with the calculator

Write s and the three differences by hand, multiply, and estimate the root before you press anything; √216 is a little under √225 = 15, so about 14.7 is believable. Then compare your working with Show steps line by line. If the area looks wrong, check that you halved the perimeter and that each side is shorter than the other two combined.

Heron’s formula practice quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. What is the semi-perimeter s of a triangle with sides 8, 11 and 13?

Found a mistake? Let us know!

2. Use Heron’s formula to find the area of a triangle with sides 6, 8 and 10.

Found a mistake? Let us know!

3. What is the exact area of a triangle with sides 4, 5 and 7?

Found a mistake? Let us know!

4. Which set of lengths can NOT be the sides of a triangle?

Found a mistake? Let us know!

5. What is the area of an equilateral triangle with side 4, by Heron’s formula?

Found a mistake? Let us know!

6. A triangle has sides 13, 14 and 15. What is its area?

Found a mistake? Let us know!

7. A triangle has sides 9, 10 and 17. What is the length of the height onto the side of length 17?

Found a mistake? Let us know!

8. For sides 5, 6 and 7, what is cos C, where C is the angle opposite side 7?

Found a mistake? Let us know!

9. Is the triangle with sides 4, 5 and 7 acute, right or obtuse?

Found a mistake? Let us know!

10. A triangular lawn has sides 10 m, 10 m and 12 m. How many square meters is it?

Found a mistake? Let us know!

Frequently asked questions

What is Heron's formula?

Heron's formula gives the area of a triangle from its three sides: A = √[s(s − a)(s − b)(s − c)] with s = (a + b + c)/2. For sides 5, 6 and 7, A = √216 = 6√6 ≈ 14.70.

What does Heron's formula calculate?

It calculates area only, but it works for every triangle: right, acute, obtuse, isosceles or scalene. For the 3-4-5 right triangle it gives 6, the same as ½ × 3 × 4.

How do you simplify the square root in Heron's formula?

Factor the product and pull out perfect squares. For sides 7, 8 and 9 the product is 720 = 144 × 5, so the area is √144 × √5 = 12√5.

Can Heron's formula be used for a quadrilateral?

Not directly. Draw a diagonal to split the quadrilateral into two triangles, measure the diagonal, and add the two Heron areas. For a cyclic quadrilateral (one whose corners lie on a circle), Brahmagupta's formula √[(s − a)(s − b)(s − c)(s − d)] extends Heron's idea.

How do you use Heron's formula step by step?

Add the sides and halve the total to get s, subtract each side from s, multiply s by the three differences, and take the square root. For an equilateral triangle with side 6: s = 9, differences 3, 3, 3, product 243, area 9√3 ≈ 15.59.

Does Heron's formula always work?

Yes, for any three lengths that form a triangle. If the product under the root is 0 or negative, the lengths fail the triangle inequality and no triangle exists.

Related calculators

More geometry & trig calculators

Browse all 541 calculators

Related to This Article

What people say about "Heron's Formula Calculator: Area From 3 Sides, Exact Root"?

No one replied yet.

Leave a Reply