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.
Example
A triangle has a base of 8 cm and a height of 5 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:
A = √[s(s−a)(s−b)(s−c)]
Example
A triangle has sides a = 5, b = 6, c = 7.
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:
Example
Two sides of 8 and 5, with a 52.41° angle between them.
Method 4: Coordinates of the vertices
If you only know the (x, y) coordinates of the three corners, use the shoelace formula:
Example
A triangle with vertices at (−1, −1), (6, 2), and (4, 4).
A = ½ |2 + 30 − 12| = ½ × 20 = 10
Which method should you use?
| You know... | Use... |
|---|---|
| Base and perpendicular height | A = ½bh |
| All three sides | Heron's formula |
| Two sides and the angle between them | A = ½ab·sin(C) |
| Coordinates of the three vertices | Shoelace formula |
Skip the formula lookup — use the triangle calculator
The built-in triangle calculator picks the right method automatically from whatever you enter.
- Open Geometry Solver² and tap the 2D tab, then choose Triangle.
- Type in any combination of sides, angles or height you know.
- The area, perimeter and every missing value fill in instantly, with Live Preview.
- Tap "Show solution steps" for the full worked-out method, exactly like above.