Triangle Area

Calculate a triangle's area from base and height, or from three sides.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

Base and height is the product divided by two. Three sides use Heron’s formula: the semi-perimeter and the square root of s(s−a)(s−b)(s−c).

The diagram draws the triangle from the lengths that were accepted.

How to use it

  1. Choose base and height, or three sides.
  2. Enter the lengths.
  3. Calculate. Three sides that break the triangle inequality are rejected.

Limitations

Base times height, or Heron from three sides

Two modes, two formulas

Base-and-height mode multiplies the base by the height and divides by two. Both lengths must be greater than zero. The panel prints only the area in that mode. Heron mode reads three sides a, b, and c. It rejects the input when any side is not positive or when one side is at least as long as the other two combined, so a flat line of lengths is not treated as a triangle. The semi-perimeter s is (a + b + c) / 2. The area is the square root of s(s − a)(s − b)(s − c).

A 3-4-5 triangle under Heron

Sides 3, 4, and 5 give s = 6. The product inside the root is 6 × 3 × 2 × 1 = 36, and the root is 6. That matches base 4 and height 3 in the other mode, which is (4 × 3) / 2 = 6, but only the Heron path also prints the perimeter 12, the height relative to side a as (2 × area) / a, and the three angles in degrees from the law of cosines. For these sides the height to side a = 3 is (2 × 6) / 3 = 4. The angles come out as the degree measures whose cosines match the usual 3-4-5 right angle and its complements.

What base-and-height withholds

Switch back to base 10 and height 4. The area is (10 × 4) / 2 = 20, and the panel stops at that area. It does not invent a perimeter, because the slanted sides were never supplied. A base of zero or a height of zero is rejected in that mode. In Heron mode, sides 2, 3, and 6 fail because 2 + 3 is not greater than 6, and sides 2, 3, and 5 fail because 2 + 3 equals 5, which is the flat boundary the inequality rejects. Angles are not an input. If you know two sides and the included angle, convert to a height or to a third side before you open this form.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.