Triangle Area Calculator
Calculate triangle area from base and height, three sides (Heron's formula), two sides and an angle (SAS), or one side and two angles (ASA).
Inputs
Results
Triangle area
A triangle is a polygon with three sides and three angles, the simplest closed shape in two-dimensional geometry. Its area is the amount of flat surface it encloses, measured in square units. The area can be computed by four methods, depending on which measurements are known: base and height, Heron's formula (three sides), SAS (two sides and the included angle), and ASA (one side and two adjacent angles).
Base and Height Method
The most direct formula is:
where is the length of any chosen side (the base) and is the perpendicular height — the distance measured at a right angle from that base to the opposite vertex.
This formula works for every triangle type:
- Acute triangles: the foot of the altitude lies inside the base.
- Right triangles: one leg is the base and the other is the height.
- Obtuse triangles: the altitude foot falls outside the base, but the formula still applies.
The factor of one half
A triangle is exactly half of a parallelogram with the same base and height. Duplicating a triangle, rotating the copy 180°, and attaching it along one side produces a parallelogram with area . The triangle therefore has area .
Heron's Formula (Three Sides)
When only the three side lengths are known — no height, no angles — Heron's formula gives the area directly:
Here is the semi-perimeter (half the perimeter). The formula dates back to Heron of Alexandria (c. 60 CE), though there is evidence it was known even earlier.
Worked Example: 3-4-5 Right Triangle
Cross-check with the base-height method: legs 3 and 4 are perpendicular, so . Both methods agree.
SAS: Two Sides and the Included Angle
When two sides and and the angle between them are known, the area is:
This follows from the base-height formula: taking as the base, the height equals (the component of perpendicular to ).
Worked Example
With $p = 5$, $q = 7$, and $C = 60°$:
Note: when $C = 90°$, and the formula reduces to the familiar right-triangle area .
ASA: One Side and Two Adjacent Angles
When side and the angles and at its two endpoints are known, the area is:
This is derived by applying the Law of Sines to express the other two sides in terms of , then substituting into the SAS formula. The third angle is $C = 180° - A - B$.
Worked Example
With $c = 8$, $A = 50°$, $B = 60°$ (so $C = 70°$):
Triangle Inequality
Not every set of three positive numbers defines a real triangle. Three lengths , , form a valid triangle if and only if:
If any of these three conditions fails, no triangle can be constructed. In Heron's formula, a violation causes the expression inside the square root to become negative — an immediate indicator that the input is geometrically impossible.
| Sides | Valid? | Reason |
|---|---|---|
| 3, 4, 5 | Yes | 3+4=7 > 5 ✓ |
| 1, 2, 10 | No | 1+2=3 < 10 ✗ |
| 5, 5, 5 | Yes | equilateral ✓ |
Real-World Applications
Architecture and construction. Triangular trusses are the backbone of roofs, bridges, and cranes because a triangle is the only polygon that is rigid under load — it cannot deform without changing a side length.
Surveying. Land surveyors measure the three sides of a plot using tape or laser and apply Heron's formula to calculate area without needing to establish a perpendicular.
Computer graphics. Every 3D surface is approximated by a mesh of triangles. The GPU computes triangle areas to determine lighting, shadows, and collision boundaries.
Navigation. Triangulation uses three known reference points to pinpoint an unknown location — the intersection of arcs whose radii are the measured distances to each reference.
If the triangle is a right triangle, the Pythagorean Theorem Calculator can find the missing side before computing the area. For circles, see the Circle Area & Circumference Calculator and Regular Polygon Calculator calculators for related polygon and curved-shape area calculations.
Frequently Asked Questions (FAQ)
What is the formula for the area of a triangle?
The most common formula is A = ½ × base × height, where the height is the perpendicular distance from the base to the opposite vertex. It works for any triangle when the base and its corresponding height are known.
What is Heron's formula?
Heron's formula calculates the area of a triangle from its three side lengths a, b, and c without needing the height. First compute the semi-perimeter s = (a + b + c) ÷ 2, then Area = √(s(s−a)(s−b)(s−c)). For a 3-4-5 right triangle: s = 6, Area = √(6×3×2×1) = √36 = 6.
When do three lengths not form a triangle?
Three lengths form a valid triangle only if the sum of any two sides is greater than the third (the triangle inequality). For example, sides 1, 2, and 10 fail because 1 + 2 = 3 < 10. If this condition is violated, no triangle exists and Heron's formula would produce a negative value under the square root.
How is a triangle's area found from two sides and an angle?
When two sides p and q and the angle C between them are known, the area is A = ½ × p × q × sin(C). For example, with p = 5, q = 7, and C = 60°: A = ½ × 5 × 7 × sin(60°) = ½ × 35 × 0.866 ≈ 15.16. This formula follows from the fact that the height of the triangle equals q × sin(C).
How is a triangle's area found from one side and two angles?
When side c and the angles A and B at its two endpoints are known (with C = 180° − A − B), the area is A = c² × sin(A) × sin(B) ÷ (2 × sin(A + B)). For example, with c = 8, A = 50°, B = 60°: A + B = 110°, so Area = 64 × sin(50°) × sin(60°) ÷ (2 × sin(110°)) ≈ 64 × 0.766 × 0.866 ÷ 1.879 ≈ 22.6.
Recommended Next
Right Triangle Solver
Solve any right triangle from two known values. Enter two sides, a side and an angle, or hypotenuse and angle to get all sides, angles, area, and perimeter.
Pythagorean Theorem Calculator
Calculate any side of a right triangle using the Pythagorean theorem (a² + b² = c²). Enter any two sides to find the third.