Audited 27 Jul 2026·Last updated 28 Oct 2026·4 citations·Tier 2·0 uses

Triangle Area Calculator

Find a triangle's area three ways: half base times perpendicular height, Heron's formula from three sides, or two sides and the angle between them (SAS).

Triangle Area Calculator

Which measurements do you know?
Any side of the triangle, used as the base. Required in Base × Height mode.
The perpendicular distance from the base to the opposite vertex. Required in Base × Height mode.
Required in SSS and SAS modes.
Required in SSS and SAS modes.
Required in SSS mode only (the third side).
Required in SAS mode only — the angle between sides a and b, strictly between 0° and 180°.
Area
30
The enclosed area of the triangle, in the square of whatever length unit you entered.
Method used
Base × Height

Background.

Half the base times the height is the formula everyone remembers, and it is exact for every triangle there is. The trouble is the height. It has to be measured at right angles to the base, from the base line up to the opposite corner, and on a real object, such as a gable end, a garden bed or a plot of land, that line is rarely drawn anywhere you can put a tape on it. Measure a sloping side instead and the area comes out too large.

That is why there are three routes to the same number, and you can choose whichever matches what you actually measured. If you have a base and a true perpendicular height, A = ½ × b × h. If you have the three side lengths and nothing else, Heron's formula gets the area from the sides alone, with no angle and no height; it is named after Heron of Alexandria, a first-century mathematician and engineer who set it out in his Metrica. If you know two sides and the angle where they meet, perhaps from a drawing or a protractor, A = ½ × a × b × sin C.

The three are not rival approximations. Each is the same quantity reached from different measurements, so one physical triangle gives one area whichever way you go, and working it out a second way is a good check on a doubtful measurement.

Two kinds of input have no triangle behind them and are refused. Three sides where one is as long as the other two together, such as 2, 3 and 5, lie flat in a line and enclose nothing. An angle of 0° or 180° between two sides does the same. Lengths can be in any unit as long as all of them use the same one, and the area comes out in that unit squared.

What is triangle area calculator?

The area of a triangle is the flat region enclosed by its three sides, measured in square units. Any side can serve as the base; the height belonging to that base is the perpendicular distance from the base's line to the opposite vertex. In an obtuse triangle that perpendicular can land outside the base itself, on the base line extended. A triangle is exactly half of a parallelogram on the same base and between the same parallels, which is Euclid's Elements, Book I, Proposition 41, and is where the half in ½ × base × height comes from.

How to use this calculator.

  1. Choose the mode that matches your measurements: Base × Height, SSS for three sides, or SAS for two sides and the angle between them. Only the fields for that mode are used.
  2. In Base × Height, enter a side as the base and the perpendicular distance from it to the opposite corner as the height, not the length of a sloping side.
  3. In SSS, enter sides a, b and c in any order. If one side is equal to or longer than the other two combined, no triangle exists and the input is refused.
  4. In SAS, enter sides a and b and the angle C between them, in degrees, greater than 0 and less than 180. It must be the angle where those two sides meet, not one of the other two.
  5. Read the area in the square of your length unit, and the method label confirming which formula was applied.

The formula.

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

Base × Height: A = ½ × b × h. Copy the triangle, turn the copy through 180° and fit it against one side, and the two make a parallelogram with area b × h; the triangle is half of it.

Heron's formula: A = √(s(s − a)(s − b)(s − c)), where s = (a + b + c) ÷ 2 is the semiperimeter, half the distance around the triangle. Each factor s − a, s − b and s − c is positive exactly when that side is shorter than the other two together, which is the triangle inequality, so the expression under the root is positive for every real triangle. One way to derive it is to find an angle from the three sides with the law of cosines and substitute it into the SAS formula; the algebra collapses into Heron's tidy product.

SAS: A = ½ × a × b × sin C. Taking a as the base, the height from the far end of b is b × sin C, so the formula is base times height again, with the height worked out by trigonometry. At C = 90°, sin C = 1 and the formula becomes half the product of the two legs, the right-triangle case. Because sin C = sin(180° − C), an angle of 30° and one of 150° between the same two sides give the same area.

The arithmetic is exact; any error comes from the measurements. Heron's formula is sensitive to them when the triangle is very flat, because one of the factors s − a, s − b or s − c is then close to zero.

A worked example.

Example

A triangular flower bed has a straight front edge of 10 m, and the far corner is 6 m back from that edge, measured at right angles to it. In Base × Height mode the area is ½ × 10 × 6 = 30 square metres. To check, measure the three sides instead. Suppose the corner sits 4 m along from the left end of the front edge. The two back sides are then √(4² + 6²) = √52 = 7.2111 m and √(6² + 6²) = √72 = 8.4853 m. In SSS mode with sides 10, 7.2111 and 8.4853, the semiperimeter is (10 + 7.2111 + 8.4853) ÷ 2 = 12.8482 m, and Heron's formula gives √(12.8482 × 2.8482 × 5.6371 × 4.3629), which is again 30 square metres. A tape reading to the nearest 10 cm, giving sides of 10, 7.2 and 8.5, returns 30.0015 square metres, so ordinary measuring error barely moves the result for a well-proportioned bed like this one.

modebase-height
base10
height6

Frequently asked questions.

Can I use a slanted side as the height?
No, and it is the commonest way to overestimate a triangle's area. Take an isosceles triangle with a 12 m base and two 10 m sides: its true height is 8 m and its area 48 m². Using the 10 m side as the height gives 60 m², a quarter too much. If you cannot measure the perpendicular, measure all three sides and use SSS.
What if the height falls outside the triangle?
That happens with obtuse triangles, and the formula still works. Extend the base line and measure from it, at right angles, up to the opposite corner. The triangle with sides 9, 10 and 17 has area 36 by Heron's formula, and its height measured to the 9-unit side is 2 × 36 ÷ 9 = 8, landing well beyond the end of that side.
How do I get the height when I only know the three sides?
Find the area with SSS first, then rearrange the base-height formula: height = 2 × area ÷ base, using whichever side you want as the base. A 3-4-5 right triangle has area 6, so the height to its 5-unit side is 2 × 6 ÷ 5 = 2.4 units.
Why does a very flat triangle give such a small, jumpy area?
As one side approaches the sum of the other two, the triangle closes up and one factor in Heron's formula heads to zero. Sides of 5, 5 and 9.9 give an area of about 3.49, while 5, 5 and 9.99 give about 1.12. On a long, narrow plot a few centimetres of measuring error can change the area a great deal, so check it another way.
Do 30° and 150° really give the same area in SAS mode?
Yes. The sine of an angle equals the sine of its supplement, so two sides of 10 and 8 meeting at 30° or at 150° both enclose 20 square units. The triangles look very different, one narrow and one wide open, but the perpendicular height measured from side a is 4 units in both.
How do I find the area of an irregular shape with straight sides?
Split it into triangles by drawing diagonals from one corner, find each triangle's area, and add them. Surveyors use the same idea on land parcels, measuring the sides and diagonals so each triangle can go through Heron's formula without any angles. Keep every length in the same unit.

How this page was produced

Published by
Quanta Calculator
Primary sources
4 cited below
Method
A = √( s(s−a)(s−b)(s−c) )
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon