The main triangle formulas are area A = ½bh and perimeter P = a + b + c. Here, b is the base, h is the perpendicular height, and a, b and c are the three side lengths. If all three sides are known but the height is not, use Heron’s formula.
The right formula depends on the measurements in the question. Base and height give area directly. Three sides give perimeter and allow you to calculate area using a different method. Two sides and the angle between them can also give area. This guide explains these choices with a labelled diagram and worked examples.
Triangle formulas at a glance
| What to find | Formula | When to use it |
|---|---|---|
| Area | A = bh/2 | Base b and perpendicular height h |
| Perimeter | P = a + b + c | All three sides |
| Height | h = 2A/b | Area A and base b |
| Base | b = 2A/h | Area A and height h |
| Semiperimeter | s = (a + b + c)/2 | Needed for Heron’s formula |
| Area from three sides | A = √[s(s − a)(s − b)(s − c)] | Three valid side lengths |
| Area from two sides and an angle | A = ½ab sin C | Sides a and b, with included angle C |
| Right-triangle hypotenuse | c = √(p2 + q2) | Perpendicular legs p and q |
| Equilateral area | A = (√3/4)a2 | Equal side length a |
| Equilateral perimeter | P = 3a | Equal side length a |
Symbols: A = area, P = perimeter, h = perpendicular height and s = semiperimeter. In Heron’s formula, s means half the perimeter. In the sine formula, C is the angle between sides a and b.
Base and height: which measurements matter?
Any side can be chosen as the base. Its matching height runs from the opposite vertex to the base, or to the line extending that base, at a right angle. A sloping side is not automatically the height.
Area of a triangle
Use A = ½bh: multiply the base by its perpendicular height, then divide by two. Two matching copies of a triangle form a parallelogram with the same base and height, which explains the factor of one-half.
For a base of 10 cm and height of 6 cm, A = 10 × 6 ÷ 2 = 30 cm2. Area uses square units. Convert the base and height to matching units before multiplying.
Perimeter of a triangle
Add the three outside edges: P = a + b + c. A triangle with sides 5 cm, 6 cm and 7 cm has perimeter 18 cm. The internal height is not another edge, so do not add it.
Check that the side lengths can form a triangle. For a non-degenerate triangle, the sum of any two sides must exceed the third. Lengths 2, 3 and 6 cannot form a triangle because 2 + 3 is less than 6.
Heron’s formula: area from three sides
When a, b and c are known, first find the semiperimeter s = (a + b + c)/2. Then use A = √[s(s − a)(s − b)(s − c)]. This works for valid triangles, including right-angled triangles.
Example 1: Use Heron’s formula
Find the area of a triangle with sides 5 cm, 6 cm and 7 cm.
- Semiperimeter: s = (5 + 6 + 7)/2 = 9 cm.
- Substitute: A = √[9(9 − 5)(9 − 6)(9 − 7)].
- Multiply inside the root: A = √(9 × 4 × 3 × 2) = √216.
- Area: A = 6√6 cm2 ≈ 14.70 cm2.
Use s = 9 in the formula, not the full perimeter of 18. Keep the square root exact until you need a rounded decimal answer.
Area from two sides and the included angle
If two sides and the angle between them are known, use A = ½ab sin C. The word “included” matters: C must be the angle where those two sides meet.
Example 2: Use the sine area formula
Two sides are 8 cm and 5 cm, with an included angle of 30°. Since sin 30° = ½, the area is A = ½ × 8 × 5 × ½ = 10 cm2.
Use degree mode for an angle given in degrees. If the question gives radians, use radian mode. A calculator in the wrong mode can give an incorrect result even when the formula is right.
Right-triangle formulas
The two sides meeting at 90° act as base and height. Calling these perpendicular legs p and q gives A = pq/2. The opposite side is the hypotenuse: c = √(p2 + q2).
Example 3: A right triangle with two known legs
The legs measure 6 m and 8 m. Its area is 6 × 8 ÷ 2 = 24 m2. The hypotenuse is √(36 + 64) = 10 m, giving a perimeter of 6 + 8 + 10 = 24 m.
Here, area and perimeter happen to have the same numerical value. Their units and meanings are different.
Equilateral-triangle formulas
All three sides of an equilateral triangle are equal. If each side is a, use P = 3a, h = (√3/2)a and A = (√3/4)a2. Each interior angle is 60°.
Example 4: An equilateral triangle with side 6 cm
Its perimeter is 3 × 6 = 18 cm. Its height is 3√3 cm ≈ 5.20 cm, and its area is (√3/4) × 36 = 9√3 cm2 ≈ 15.59 cm2.
These shortcuts require three equal sides. Do not use them for a triangle just because it looks roughly symmetrical in a drawing.
Find a missing base or height
Rearrange A = bh/2 to get h = 2A/b or b = 2A/h. Divide by the measurement that is already known.
Example 5: Find height from area and base
A triangle has area 36 cm2 and base 9 cm. Its height is h = 2 × 36/9 = 8 cm. Checking gives 9 × 8 ÷ 2 = 36 cm2.
Choose the right formula
- Base and matching perpendicular height: use A = bh/2.
- Three side lengths: find s, then apply Heron’s formula.
- Two sides and their included angle: use A = ½ab sin C.
- A right triangle with both legs known: use half the product of the legs.
- An equilateral triangle with one side known: use A = (√3/4)a2.
Common mistakes to avoid
- Using a sloping side as the height without checking the right angle.
- Forgetting to divide base × height by two.
- Using the full perimeter instead of the semiperimeter in Heron’s formula.
- Using an angle that is not between the two known sides in the sine formula.
- Mixing length units or rounding intermediate values too early.
Try these practice questions
- A triangle has base 12 cm and perpendicular height 5 cm. Find its area.
- A right triangle has legs 5 cm and 12 cm. Find its area and perimeter.
- A triangle has sides 5 cm, 5 cm and 6 cm. Find its area using Heron’s formula.
Answers: 1) A = 30 cm2. 2) A = 30 cm2, hypotenuse = 13 cm and P = 30 cm. 3) s = 8 cm, so A = √(8 × 3 × 3 × 2) = 12 cm2.
Frequently asked questions
Does A = ½bh work for every triangle?
Yes, provided h is the perpendicular height corresponding to base b. The triangle can be acute, right-angled or obtuse.
Can the height fall outside the triangle?
Yes. For some base choices in an obtuse triangle, the perpendicular height meets the extended line of the base outside the shape. The same area formula still applies.
How can I find area without knowing the height?
Use Heron’s formula when all three sides are known. Use A = ½ab sin C when two sides and the angle between them are known.
Can perimeter alone tell me the area?
Not for a general triangle. Different triangles can have the same perimeter and different areas. An extra measurement or condition, such as all sides being equal, is needed.
Does a triangle have volume?
A triangle is two-dimensional, so it has area and perimeter, but no volume. A triangular prism or pyramid is a three-dimensional solid with its own volume formula.
Compare with the rectangle formulas, square formulas, circle formulas and parallelogram formulas, or browse the 2D Formulas guides.
Reference texts: OpenStax, Elementary Algebra 2e, section 3.4 on geometry applications; Algebra and Trigonometry 2e, sections 10.1 and 10.2 on triangle area and Heron’s formula. Worked examples and practice questions were written for this guide.
