StatGardenREF. DESK
Calculators/Geometry/Triangle from three sides
Geometry

Triangle from three sides calculator

Area, angles and centres via Heron’s formula.

What this calculator does

Heron’s formula finds the area of a triangle from its three sides alone, with no need to measure a height. That is enormously practical, because sides are easy to measure with a tape while perpendicular heights rarely are.

Three sides also determine every angle, through the cosine rule. Along with the area this calculator reports the angles, the height on the longest side, and the inradius and circumradius: the circles that fit inside and pass through all three corners.

The formula

Formulas = (a+b+c)/2; Area = √(s(s−a)(s−b)(s−c)); cos A = (b²+c²−a²)/2bc

Heron’s formula uses the semi-perimeter, half the sum of the sides. The expression under the square root becomes negative whenever the sides cannot form a triangle, which is why the triangle inequality must hold: no side may be longer than the other two combined.

TermMeaning
sSemi-perimeter: (a + b + c) ÷ 2.
Heron’s formulaArea = √(s(s−a)(s−b)(s−c)).
InradiusRadius of the largest circle fitting inside, equal to Area ÷ s.
CircumradiusRadius of the circle through all three corners.
Triangle inequalityEach side must be shorter than the sum of the other two.

The inputs explained

FieldWhat to enter
Side aThe first side length.
Side bThe second side length.
Side cThe third side length. If any side exceeds the sum of the other two, no triangle exists and the calculator says so.

When to use it

Measuring an irregular block of land

Divide the plot into triangles, measure each side with a tape, and add the areas. This is how land was surveyed for centuries before instruments.

Checking a right angle on site

A 3-4-5 triangle is exactly right-angled. Measuring those distances is the standard way to square up a frame or a foundation.

Classifying a triangle

The type line reports acute, right or obtuse by comparing the square of the longest side against the sum of the other two squares.

Finding a height you cannot measure

The height on side a follows from twice the area divided by a. Useful when the apex is out of reach.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

Triangles with a growing third side

Two sides fixed at 7 and 8 while the third varies from nearly degenerate to nearly straight.

Sides 7 and 8 fixed
Third sideAreaAnglesType
26.43753.58° · 113.13° · 13.29°Obtuse
517.32160.00° · 81.79° · 38.21°Acute
926.83348.19° · 58.41° · 73.40°Acute
10.6328.00041.19° · 48.81° · 90.00°Acute
1226.90634.09° · 39.84° · 106.07°Obtuse
14.96.4276.19° · 7.08° · 166.73°Obtuse
The right-angled case sits at √113, about 10.6301, since 7² + 8² = 113. The 10.63 row is a hair under that and so still reads as acute; anything above it is obtuse.

Classic triangles

A selection of triangles whose properties are worth recognising.

Well-known side ratios
Third side (with 3 and 4)AreaTypeInradius · circumradiusPerimeter
3, 4, 34.472Acute0.8944 · 2.01210.000
3, 4, 45.562Acute1.011 · 2.15711.000
3, 4, 56.000Right-angled1.000 · 2.50012.000
3, 4, 65.333Obtuse0.8204 · 3.37513.000
3, 4, 6.92.012Obtuse0.2895 · 10.28713.900
The 3-4-5 triangle has an area of exactly 6 and an inradius of exactly 1: the smallest right triangle with whole-number sides, known since Babylonian times.

Questions

What is the triangle inequality?

Every side must be shorter than the sum of the other two. If it is not, the sides cannot close into a triangle, and Heron’s formula returns a negative value under the square root.

When should I use Heron’s formula?

When you know all three sides but no angles or heights. If you know two sides and the angle between them, ½ab·sin C is simpler.

How do I tell if a triangle is right-angled?

Compare the square of the longest side against the sum of the squares of the other two. Equal means right-angled, smaller means acute, larger means obtuse.

What is the difference between inradius and circumradius?

The inradius is the largest circle that fits inside, touching all three sides. The circumradius is the circle passing through all three corners. The circumradius is always larger.

Can I find the angles from the sides alone?

Yes, using the cosine rule rearranged for the angle. This calculator applies it to all three, and they will always sum to 180°.

For two sides and an angle, see the triangle solver. For right angles specifically, use the right triangle calculator.