CCalclabhub

Geometry

How To Calculate The Area Of A Triangle

A triangle covers exactly half of whatever parallelogram shares its base and height. Nearly every wrong answer comes from one of two slips: a height that was never perpendicular, or a base and a height borrowed from two different sides.

Quick Answer

Area = 1/2 x base x height

base
Any one side of the triangle, chosen by you
height
Perpendicular distance from that base to the opposite corner
a, b, c
The three side lengths, used when no height is known
s
Semi-perimeter, equal to (a + b + c) / 2
A
Enclosed area, always in square units

Multiply the base by the perpendicular height that belongs to it, then halve the product: a base of 10 with a height of 6 gives 0.5 x 10 x 6 = 30. When all you have is the three sides, use Heron's formula instead: sides of 7, 8 and 9 give a semi-perimeter of 12, an area of sqrt(12 x 5 x 4 x 3) = sqrt(720) = 26.83281573 and a perimeter of 24, and the height that pairs with the side of length 8 is 2 x 26.83281573 / 8 = 6.70820393. Either route lands in square units, because two lengths have been multiplied together.

What Is The Area Of A Triangle?

Every triangle is half of a parallelogram. Draw a diagonal across a parallelogram and you cut it into two triangles of identical size, each using the same base and the same perpendicular height as the original figure. Because the parallelogram's area is base times height, each triangle takes exactly half of that. The factor of one half in A = 1/2 x base x height is therefore not a convention to memorise but a fact about how the shape splits. A base of 10 with a height of 6 sits inside a parallelogram of area 60, and the triangle takes 30.

Any of the three sides may serve as the base, and switching between them never changes the area. What changes is the height, because each base has its own perpendicular distance to the opposite corner and only that distance works. In a triangle with sides of 7, 8 and 9, taking the side of length 8 as the base gives a height of 6.70820393 and an area of 26.83281573; choosing either of the other sides gives a different height and the same 26.83281573. That freedom is practical rather than decorative, since the easiest side to measure is usually the one resting on the ground and the formula lets you begin there.

Height means perpendicular distance, and it is worth being pedantic about the word. It is the shortest distance from the opposite corner to the line containing the base, measured along a segment meeting that line at a right angle. In an obtuse triangle the foot of that perpendicular can land outside the triangle entirely, on the extension of the base rather than on the base itself, and nothing about that is an error. The formula still holds without adjustment. What must never happen is substituting the length of a slanted side, because a slanted side is always longer than the perpendicular distance it spans.

Units behave exactly as the formula demands, which is to say quadratically. Two lengths multiplied together produce square units, so measuring in metres gives square metres and measuring in centimetres gives square centimetres. Converting afterwards means squaring the conversion factor: one square metre is 10000 square centimetres, not 100. This is where otherwise correct arithmetic produces answers wrong by factors of a hundred or ten thousand. Writing the unit down straight after the number, before doing anything else with it, catches most of these slips at the moment they happen.

Heron's formula exists for the common case where three side lengths are known and no height is. Work out the semi-perimeter s = (a + b + c) / 2, then take A = sqrt(s(s - a)(s - b)(s - c)). For sides of 7, 8 and 9 the semi-perimeter is 12, the product inside the root is 12 x 5 x 4 x 3 = 720, and the square root is 26.83281573. The perimeter of 24 is a separate quantity that never enters the formula directly. Because s appears in three of the four factors, the result is more sensitive to an error in s than the base-and-height route would ever be.

Three lengths only describe a triangle when each one is shorter than the sum of the other two. Sides of 1, 2 and 10 fail that test, and no such triangle exists whatever a formula might return. Under Heron's formula the failure surfaces as a negative value inside the square root, which is why a careful implementation clamps the product at zero before taking the root. Satisfying the inequality is not quite sufficient either: an extremely flat triangle has a very small height and a very small area, so the computed figure carries far less precision than the digits suggest.

When two sides and the angle between them are known, hunting for a height is unnecessary. Dropping a perpendicular shows that the height to side a is b x sin C, and substituting that into the base-and-height formula gives A = 1/2 x a x b x sin C. This is the same relation wearing different clothes, and it is the natural choice for surveying work where a corner angle is easier to measure than a perpendicular distance. It also makes visible something the other forms hide: with two side lengths fixed, the area is largest when the angle between them is a right angle.

Two special shapes repay memorising, because each removes a step. In a right-angled triangle the legs are already perpendicular, so one leg is the base and the other is the height: legs of 3 and 4 give an area of 6, with a hypotenuse of 5. An equilateral triangle of side a has area a^2 x sqrt(3) / 4, so a side of 6 gives 36 x 1.73205081 / 4 = 15.58845727, and its own height is 5.19615242. Recognising these saves the effort of constructing a height that the shape has effectively handed you already.

Precision should follow the measurement rather than the calculator. If the base and height were read to the nearest centimetre, reporting eight decimal places claims an accuracy that was never there. Carry full precision through the intermediate steps so that rounding does not accumulate, then round once at the end to something the original measurement can defend. The advice matters more for Heron's formula than for the base-and-height route, since the semi-perimeter is subtracted from each side and a small absolute error there becomes a large relative one in the factors that follow.

Formula

A = 1/2 x base x height

The standard form. Multiply the two lengths first and halve afterwards, so the intermediate figure can be compared with the bounding parallelogram.

SymbolMeaning
bBase — any one side you choose
hPerpendicular height to that base
AEnclosed area

A = sqrt(s(s - a)(s - b)(s - c)), where s = (a + b + c) / 2

Use when no height and no angle are available. Halve the perimeter first, then subtract each side from that half-sum before multiplying.

SymbolMeaning
sSemi-perimeter
aLength of one side
AEnclosed area

A = 1/2 x a x b x sin C

The base-and-height formula with the height replaced by b x sin C. The angle must be the one between the two known sides.

SymbolMeaning
aFirst known side
bSecond known side
CAngle between sides a and b

How To Calculate The Area Of A Triangle

  1. 1

    Choose a base and stay with it

    Any of the three sides works and the area does not depend on which you pick. In a triangle with sides of 7, 8 and 9, taking 8 as the base is convenient because the height to it is 6.70820393.

  2. 2

    Measure the perpendicular height to that base

    Shortest distance from the base's line to the opposite corner, at a right angle. With a base of 10 and a slanted side of 7, the true height of 6 is the one to use; the slanted side would give 35 instead of 30.

  3. 3

    Multiply the two lengths, then halve

    10 x 6 = 60, and half of that is 30. Halving last keeps the intermediate figure comparable with the parallelogram the triangle sits inside.

  4. 4

    If you only have the sides, switch to Heron's formula

    Add the three sides and halve to get s, subtract each side from s, multiply the four values and take the root. For 7, 8 and 9: s = 12, the product is 720, the area is 26.83281573 and the perimeter is 24.

  5. 5

    Attach square units and round once

    A base and height in metres give square metres. If the inputs were measured to the nearest unit, quoting 26.83281573 overstates what was known; 26.8 or 27 is the honest figure.

Examples

Example 1: A base of 10 with a perpendicular height of 6

Base
10
Perpendicular height
6
StepCalculationResult
Perpendicular height to that base66
Base times height10 x 660
Halved for the triangle60 / 230

Result: 30, which is exactly half of the 60 that a parallelogram on the same base of 10 and height of 6 would enclose.

Example 2: Three sides of 7, 8 and 9 with no height known

Side A
7
Side B
8
Side C
9
StepCalculationResult
Semi-perimeter(7 + 8 + 9) / 212
Perimeter, for reference only7 + 8 + 924
Product under the square root12 x 5 x 4 x 3720
Area from the three sidessqrt(720)26.83281573
Height to the side of length 82 x 26.83281573 / 86.70820393

Result: 26.83281573 from the three sides alone, with a perimeter of 24 and a height of 6.70820393 to the side of length 8.

Example 3: Two shapes that supply their own height

Right triangle legs
3 and 4
Equilateral side
6
StepCalculationResult
Hypotenuse of the 3-4 trianglesqrt(3^2 + 4^2)5
Area using the two perpendicular legs0.5 x 3 x 46
Height of the equilateral trianglesqrt(6^2 - 3^2)5.19615242
Area of the equilateral triangle36 x 1.73205081 / 415.58845727

Result: The right triangle covers 6 with a hypotenuse of 5, and the equilateral triangle of side 6 covers 15.58845727.

Calculator

Area of the triangle

30

Perimeter from the three sides
24
Semi-perimeter used by Heron's formula
12
Area from the three sides alone
26.8328

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 Of A Triangle calculator page.

Common Mistakes

  • Using a slanted side as if it were the height

    A slanted side is always longer than the perpendicular distance it spans. With a base of 10, a true height of 6, and a slanted side of 7, substituting 7 gives 35 where the answer is 30 — a plausible-looking figure that no triangle of those dimensions can have.

  • Pairing a base with a height measured to a different side

    Each base owns its own height. In the 7, 8, 9 triangle the height of 6.70820393 belongs to the base of 8; multiplying it by a base of 7 or 9 produces a figure corresponding to no triangle at all.

  • Feeding in three lengths that cannot form a triangle

    Each side must be shorter than the sum of the other two. Lengths of 1, 2 and 10 describe nothing, and Heron's formula signals this by putting a negative value under the square root rather than by returning a small area.

  • Reporting the answer in linear units

    Two lengths multiplied give square units, so a base of 10 metres with a height of 6 metres yields 30 square metres rather than 30 metres. Converting afterwards uses the square of the length factor: one square metre is 10000 square centimetres.

  • Substituting the perimeter where Heron's formula wants the semi-perimeter

    The 7, 8, 9 triangle has a perimeter of 24 but a semi-perimeter of 12, and only the 12 belongs in the formula. Using 24 inflates the result enormously, and the three subtractions stop making sense because each side must be smaller than the quantity it is subtracted from.

FAQ

Which side should I use as the base?

Whichever you can measure most reliably, because the area comes out the same for all three. The choice only determines which height you then have to find. In the 7, 8, 9 triangle, choosing the side of 8 means working with a height of 6.70820393 and an area of 26.83281573.

What if the height lands outside the triangle?

That is normal for an obtuse triangle, where the perpendicular from the opposite corner meets the extension of the base rather than the base itself. Measure to the extended line and use the formula unchanged; no sign change or correction is involved.

Can I find the area from the three sides alone?

Yes, with Heron's formula. Halve the perimeter to get s, subtract each side from s, multiply the four numbers and take the square root. For 7, 8 and 9 that is s = 12, a product of 720 and an area of 26.83281573; the perimeter of 24 is never used directly.

Do I need Heron's formula if I know two sides and an angle?

No. A = 1/2 x a x b x sin C is more direct, because the height onto side a is simply b x sin C. Heron's formula is the fallback for when no angle and no height are available, not a superior method.

How precise should the final answer be?

Round once, at the end, to something the original measurements support. A base of 10 and a height of 6 read to the nearest unit justify an answer of 30, not 30.0000. Heron's formula deserves extra care here, because the semi-perimeter is subtracted from each side and rounding it first distorts all four factors.

References

  1. [1]Wikipedia, Triangle — https://en.wikipedia.org/wiki/Triangle
  2. [2]Wikipedia, Heron's formula — https://en.wikipedia.org/wiki/Heron%27s_formula
  3. [3]Wikipedia, Area — https://en.wikipedia.org/wiki/Area