The formula you need depends on which measurements of the triangle you already have. Below are the four most common situations, from most to least common.

Method 1: Base and height

This is the classic formula, used whenever you know the length of one side (the base) and the perpendicular height to the opposite vertex.

A = ½ × b × h

Example

A triangle has a base of 8 cm and a height of 5 cm.

A = ½ × 8 × 5 = 20 cm²

Method 2: Heron's formula (all three sides known)

If you know all three side lengths (a, b, c) but not the height, use Heron's formula. First find the semi-perimeter s:

s = (a + b + c) / 2
A = √[s(s−a)(s−b)(s−c)]

Example

A triangle has sides a = 5, b = 6, c = 7.

s = (5+6+7)/2 = 9
A = √[9(9-5)(9-6)(9-7)] = √[9×4×3×2] = √216 ≈ 14.7

Method 3: Two sides and the included angle (SAS)

If you know two sides and the angle between them, use:

A = ½ × a × b × sin(C)

Example

Two sides of 8 and 5, with a 52.41° angle between them.

A = ½ × 8 × 5 × sin(52.41°) ≈ ½ × 40 × 0.7927 ≈ 15.85

Method 4: Coordinates of the vertices

If you only know the (x, y) coordinates of the three corners, use the shoelace formula:

A = ½ |x₁(y₂−y₃) + x₂(y₃−y₁) + x₃(y₁−y₂)|

Example

A triangle with vertices at (−1, −1), (6, 2), and (4, 4).

A = ½ |−1(2−4) + 6(4−(−1)) + 4(−1−2)|
A = ½ |2 + 30 − 12| = ½ × 20 = 10

Which method should you use?

You know...Use...
Base and perpendicular heightA = ½bh
All three sidesHeron's formula
Two sides and the angle between themA = ½ab·sin(C)
Coordinates of the three verticesShoelace formula
In the app

Skip the formula lookup — use the triangle calculator

The built-in triangle calculator picks the right method automatically from whatever you enter.

  1. Open Geometry Solver² and tap the 2D tab, then choose Triangle.
  2. Type in any combination of sides, angles or height you know.
  3. The area, perimeter and every missing value fill in instantly, with Live Preview.
  4. Tap "Show solution steps" for the full worked-out method, exactly like above.
Download on the App Store
Geometry Solver personal calculator finding the area of a triangle from sides and angles