Heron's Formula Calculator

Created by Hanna Pamuła, PhD
Reviewed by Bogna Szyk and Steven Wooding
Last updated: Jun 05, 2023

If you are wondering how to calculate the area of a triangle knowing its three sides, you're in the right place – this Heron's formula calculator can do it in no time. Simply type in your values – e.g., triangle side lengths – and our tool will show you the answer.

If you're curious about Heron's area formula, you will read about it below. Also, you may find the proof of Heron's formula there, so keep scrolling to learn more about this useful but not-so-well-known formula.

If you wish to calculate the triangle area normally, head to our triangle area calculator instead.

Heron's area formula: equation for the area of triangle with 3 sides given

Heron's formula, also known as Hero's formula, is the formula to calculate triangle area given three triangle sides. It was first mentioned in Heron's book Metrica, written in ca. 60 AD, which was the collection of formulas for various objects' surfaces and volumes calculation. The basic formulation is:

A=s(sa)(sb)(sc),A = \sqrt{s(s-a)(s-b)(s-c)},

where ss is the semiperimeter – half of the triangle perimeter:

s=a+b+c2.s = \frac{a+b+c}{2}.

However, other forms of this formula exist – if you don't want to calculate the semiperimeter by hand, you can use the formula with side lengths only:

A=14(a+b+c)(a+b+c)(ab+c)(a+bc)\small A = \frac{1}{4}\sqrt{\begin{split} (a+b+c)(-a+b+c)\\(a-b+c)(a+b-c)\end{split}}
A=144a2b2(a2+b2c2)2\small A = \frac{1}{4}\sqrt{4a^2b^2 - (a^2 + b^2 - c^2)^2}

Our perimeter of a triangle calculator can aid you in the perimeter calculator here.

Heron's formula proof

There are many ways to prove Heron's area formula, but you need to know some geometry basics. You can use:

Other proofs also exist, but they are more complex, or they use laws that are not so popular (such as a trigonometric proof using the law of cotangents).

Algebraic proof

Triangle with sides a,b,c, height from right angle h, dividing hypotenuse c to segments d and c-d

In this proof, we need to use the formula for the area of a triangle:

A=ch2A = \frac{ch}{2}

All the values in the formula should be expressed in terms of the triangle sides: cc is a side so it meets the condition, but we don't know much about our height hh. So to derive Heron's formula proof, we need to find the hh in terms of the sides.

  1. From the Pythagorean theorem, we know that:
h2+(cd)2=a2andh2+d2=b2,\qquad \begin{split} h^2 + (c - d)^2 &= a^2\quad {\rm and}\\[.8em] h^2 + d^2 &= b^2, \end{split}

according to the figure above.

  1. Subtracting those two equations gives us:
c22cd=a2b2,\qquad c^2 - 2cd = a^2 - b^2,

from which you can derive the formula for dd in terms of the sides of the triangle:

d=a2+b2+c22c\qquad d = \frac{-a^2 + b^2 + c^2}{2c}
  1. Next step is to find the height in terms of triangle sides. Use the Pythagorean theorem again:
 h2=b2d2=b2 ⁣ ⁣(a2+b2+c22c)2\quad\ \begin{split} h^2 &= b^2 - d^2\\ &= b^2\! -\! \left(\frac{-a^2 + b^2 + c^2}{2c}\right)^2 \end{split}

It's already in terms of the sides, but let's try to reduce it to a nicer form, applying the difference of squares identity:

 ⁣h2=(2bca2+b2+c2)(2bc+a2b2c2)4c2=((b+c)2a2)(a2(bc)2)4c2=(b+ca)(b+c+a)(a+bc)(ab+c)4c2\! \footnotesize \begin{split} h^2 &=\! \frac{(2bc\! -\! a^2\! +\! b^2\! +\! c^2)(2bc\! +\! a^2\! -\! b^2\! -\! c^2)}{4c^2}\\[1em] &=\! \frac{\left((b+c)^2-a^2\right)\left(a^2-(b-c)^2\right)}{4c^2}\\[1em] &=\! \frac{(b\!+\!c\!-\!a)(b\!+\!c\!+\!a)(a\!+\!b\!-\!c)(a\!-\!b\!+\!c)}{4c^2} \end{split}
  1. Apply this formula to the first equation, the one for triangle area:
A=ch2=0.5ch=0.5c(b+ca)(b+c+a)(a+bc)(ab+c)4c2=14(b+ca)(b+c+a)(a+bc)(ab+c)\quad \footnotesize \begin{split} A &= \frac{ch}{2} = 0.5ch\\[1em] &= 0.5c\sqrt{\frac{\begin{split}(b\!+\!c\!-\!a)(b\!+\!c\!+\!a)\\(a\!+\!b\!-\!c)(a\!-\!b\!+\!c)\end{split}}{4c^2}}\\[1em] &= \frac{1}{4}\sqrt{\begin{split} (b+c-a)(b+c+a)\\(a+b-c)(a-b+c)\end{split}} \end{split}

Here you are! That's the Heron's area proof. Changing the final equation into the form using the semiperimeter is a trivial task.

Trigonometric proof

Triangle ABC with sides a,b,c and angles α β γ

Have a look at the picture – aa, bb, cc are the sides of the triangle, and α\alpha, β\beta, γ\gamma are the angles opposing these sides. To find the proof of Heron's formula with trigonometry, we need to use another triangle area formula – given two sides and angle between them:

A=12absin(γ)A = \frac{1}{2}ab\sin(\gamma)
  1. To derive the proof for Heron's formula in this case, we need to express the sine of the angle in terms of the triangle sides. We can use the law of cosines:
c2=a2+b22abcos(γ)\qquad c^2 = a^2 + b^2 - 2ab\cos(\gamma)
  1. Thanks to this law, we get the side-dependent cosine. But how to find the formula for the sine? That's easy; just use the basic relation between the sine and cosine functions – Pythagorean trigonometric identity:
 sin2(γ)+cos2(γ)=1,\ \small \sin^2(\gamma) + \cos^2(\gamma) = 1,

so the formula for cosine is:

 sin(γ)=1cos2(γ)=4a2b2(a2+b2c2)22ab\ \small \begin{split} \sin(\gamma) &= \sqrt{1 - \cos^2(\gamma)}\\[1em] &= \frac{\sqrt{4a^2b^2-(a^2+b^2-c^2)^2}}{2ab} \end{split}
  1. Now you can substitute the sine in the triangle area formula:
A ⁣= ⁣12absin(γ)= ⁣144a2b2(a2+b2c2)2= ⁣142ab(a2+b2c2)(2ab+(a2+b2c2))= ⁣14(c2(ab)2(c2+(a+b)2)=14(ca+b)(c+ab)(c+ab)(ca+b)\small \begin{split} A\! &=\! \frac{1}{2}ab\sin(\gamma)\\[1em] &=\! \frac{1}{4}\sqrt{4a^2b^2 - (a^2 + b^2 -c^2)^2}\\[1em] &=\! \frac{1}{4}\sqrt{2ab-{\begin{split}&(a^2+b^2-c^2)\\&(2ab+(a^2 + b^2 - c^2))\end{split}}}\\[1em] &=\! \frac{1}{4}\sqrt{(c^2 - (a - b)^2(-c^2 + (a + b)^2)}\\[1em] &= \frac{1}{4}\sqrt{\begin{split} (c-a+b)(c+a-b)\\(-c+a-b)(c-a+b)\end{split}} \end{split}

Great! Now you understand why this formula is valid, so don't wait any longer and give Heron's formula calculator a try!

How to use Heron's formula calculator?

It's really easy! Just follow those two simple steps:

  1. Type the given values into the proper boxes. Let's assume that a = 12 in, b = 5 in, and c = 13 in.

  2. The unknown value appears in no time! In our example, the triangle area is the missing value that we want to find. The Heron's formula calculator found out that the area of such a triangle is equal to 30 in².

Remember that in almost every calculator, you can change the units with a simple click on the unit name.

Also, you can use our tool to find out the missing side of the triangle, knowing two sides and the area. However, two such triangles exist which fulfill the condition, so we are showing only one solution – for example, triangles with sides 12, 13, 5 and 12, 13, 24.515 will have the same area equal to 30.

Hanna Pamuła, PhD
Image of a triangle with sides a,b,c
Heron's formula
Side a
Side b
Side c
Check out 18 similar triangle calculators 🔺
30 60 90 triangle45 45 90 triangleArea of a right triangle… 15 more
People also viewed…

Fraction to decimal converter

Use the fraction to decimal converter to convert, well, fractions to decimals - give it 1/4, get 0.25.


What's the pentagon definition? How many sides does a pentagon have? Find the answers with our pentagon calculator!

Plant spacing

Planning out your garden? Try the plant spacing calculator.

Schwarzschild radius

Calculate the gravitational acceleration at the event horizon of a black hole of a given mass using the Schwarzschild radius calculator.
Copyright by Omni Calculator sp. z o.o.
Privacy policy & cookies