Every triangle formula in one place — area, perimeter, angles, theorems
Reviewed by Geometry Calculator, Geometry Calculator Developer & Online Math Educator Last updated May 14, 2026
Triangles are the most-formula-rich shape in geometry — area alone has half a dozen forms depending on what you know. This page lists every triangle formula you'll meet in school, organized by what they compute (area, perimeter, angles, similarity, congruence) with the conditions for each. Use the related calculators when you need a numeric answer.
| Name | Formula | Notes |
|---|---|---|
| Area — Base × Height | A = ½ × b × h |
b = base; h = perpendicular height to that base. Simplest form. |
| Area — Heron's Formula | A = √[s(s−a)(s−b)(s−c)], s = (a+b+c)/2 |
When all three sides are known. No height needed. See full Heron's formula reference. |
| Area — SAS (two sides + angle) | A = ½ × a × b × sin(C) |
a, b = two sides; C = the included angle between them. |
| Area — Coordinate Form | A = ½ × |x₁(y₂−y₃) + x₂(y₃−y₁) + x₃(y₁−y₂)| |
When the three vertices are given as coordinates. |
| Area — Inradius | A = r × s |
r = inscribed circle radius; s = semi-perimeter. Inversion: r = A / s. |
| Area — Circumradius | A = (a × b × c) / (4R) |
R = circumscribed circle radius. Inversion: R = abc / (4A). |
| Perimeter | P = a + b + c |
Sum of all three sides. Equilateral: P = 3a. |
| Angle Sum | ∠A + ∠B + ∠C = 180° |
Interior angles of any triangle sum to 180°. |
| Exterior Angle Theorem | ext = sum of 2 opposite interior angles |
An exterior angle equals the sum of the two non-adjacent interior angles. |
| Pythagorean Theorem | a² + b² = c² |
For right triangles only. c is the hypotenuse (opposite the right angle). See full Pythagorean theorem reference. |
| 30-60-90 Triangle | sides ratio 1 : √3 : 2 |
Short leg : long leg : hypotenuse, opposite 30°, 60°, 90° respectively. Derivation + examples on the special right triangles page. |
| 45-45-90 Triangle | sides ratio 1 : 1 : √2 |
Isosceles right triangle. Legs equal, hypotenuse = leg × √2. Derivation + examples on the special right triangles page. |
| Law of Sines | a/sin(A) = b/sin(B) = c/sin(C) = 2R |
For ANY triangle. Best when you have ASA, AAS, or SSA configurations. |
| Law of Cosines | c² = a² + b² − 2ab × cos(C) |
For ANY triangle. Best for SSS (solve for angles) or SAS (solve for third side). Generalizes Pythagoras (when C = 90°, cos C = 0). |
| Similarity — AA | two pairs of equal angles → similar |
If two pairs of corresponding angles are equal, all three are (angle sum), and the triangles are similar. |
| Similarity Ratio | k = corresponding sides ratio |
For similar triangles: sides scale by k, area scales by k², volume (if scaled to solids) by k³. |
| Congruence Postulates | SSS, SAS, ASA, AAS, HL |
Triangles are congruent (identical shape and size) if any one of these 5 conditions holds. HL is for right triangles only. |
| Equilateral — All Formulas | A = (√3/4)·a², h = (√3/2)·a, P = 3a |
When all sides equal a. Height bisects the base and is also a median, angle bisector, and altitude. See full equilateral triangle reference. |
When the height of a triangle is unknown, calculating area becomes difficult if relying solely on the base-height relationship. Heron's formula provides a robust alternative that requires only the lengths of the three sides. This method is particularly useful in surveying, engineering, and geometry problems where altitude measurement is impractical or impossible.
The process begins by determining the semi-perimeter, denoted as s. This value is half the sum of all three side lengths: a, b, and c. The formula for semi-perimeter is:
s = (a + b + c) / 2
Once s is established, the area A is calculated using the product of the differences between the semi-perimeter and each side length:
A = √(s(s - a)(s - b)(s - c))
Consider a triangle with side lengths of 5, 12, and 13 units. First, calculate the semi-perimeter: s = (5 + 12 + 13) / 2 = 15. Next, substitute these values into the area equation: A = √(15(15 - 5)(15 - 12)(15 - 13)). Simplifying the terms inside the square root yields A = √(15 × 10 × 3 × 2), which equals √900. The final area is 30 square units.
This approach ensures accuracy regardless of whether the triangle is right-angled, acute, or obtuse. It eliminates the need to derive height through trigonometric functions first, streamlining calculations for scalene triangles where no obvious geometric properties simplify the problem. Understanding this formula expands the toolkit available for solving complex spatial problems efficiently.
For non-right triangles, standard trigonometric ratios like SOH CAH TOA do not apply directly. Instead, the law of sines and the law of cosines allow for the solution of any triangle given specific combinations of sides and angles. These laws are fundamental in navigation, physics, and advanced geometry.
The law of sines states that the ratio of the length of a side to the sine of its opposite angle is constant for all three sides. Mathematically, this is expressed as:
a / sin(A) = b / sin(B) = c / sin(C)
This law is most effective when two angles and one side are known (ASA or AAS cases), or two sides and a non-included angle (SSA case). For example, if side a is 10, angle A is 30°, and angle B is 45°, you can solve for side b by rearranging the equation: b = (a × sin(B)) / sin(A).
The law of cosines generalizes the Pythagorean theorem for any triangle. It relates the lengths of the sides to the cosine of one of its angles:
c² = a² + b² - 2ab cos(C)
This formula is essential when two sides and the included angle are known (SAS), or when all three sides are known and an angle needs to be found (SSS). Unlike the law of sines, the law of cosines avoids ambiguity in the SSA case, providing a unique solution for the third side. Mastery of both laws enables complete resolution of any triangular configuration encountered in technical applications.
Certain triangles possess fixed angle measures that create predictable side ratios, simplifying calculations without requiring complex trigonometric functions. Recognizing these patterns allows for rapid mental math and efficient problem-solving in standardized tests and practical design tasks.
The 45-45-90 triangle is an isosceles right triangle. Its angles are 45°, 45°, and 90°. The sides follow a ratio of 1 : 1 : √2. If the legs (the sides opposite the 45° angles) have length x, the hypotenuse is always x√2. For instance, if a leg is 7 units, the hypotenuse is exactly 7√2 units.
The 30-60-90 triangle arises from bisecting an equilateral triangle. Its angles are 30°, 60°, and 90°. The side ratios are consistently 1 : √3 : 2. The shortest side (opposite the 30° angle) is x. The longer leg (opposite the 60° angle) is x√3, and the hypotenuse (opposite the 90° angle) is 2x. If the shortest side is 4, the hypotenuse is 8, and the remaining side is 4√3.
These special triangles are frequently used in architecture for roof trusses and in computer graphics for rendering angles. Memorizing these ratios saves time and reduces computational errors compared to using a calculator for every step. They serve as building blocks for understanding more complex geometric relationships involving regular polygons and circular sectors.
Not every set of three lengths can form a triangle. The triangle inequality theorem establishes the necessary conditions for three segments to enclose a space. It states that the sum of the lengths of any two sides of a triangle must be strictly greater than the length of the third side.
If the sides are labeled a, b, and c, three inequalities must hold true simultaneously:
a + b > ca + c > bb + c > aFailure to meet any one of these conditions means the segments cannot connect to form a closed figure. For example, lengths of 1, 2, and 5 cannot form a triangle because 1 + 2 = 3, which is less than 5. The shorter sides would never reach each other to meet the longest side.
Conversely, lengths of 3, 4, and 5 work because 3 + 4 > 5, 3 + 5 > 4, and 4 + 5 > 3. This theorem is critical for validating geometric constructions and ensuring that calculated dimensions are physically possible. It also helps identify degenerate triangles, where the sum of two sides equals the third, resulting in a flat line rather than a two-dimensional shape.
Even experienced students and professionals make errors when applying geometric principles. Avoiding these pitfalls ensures accuracy in calculations and interpretations of spatial data.
A frequent mistake is using the wrong formula for area. Students often default to (base × height) / 2 even when height is unknown, leading to unnecessary complexity or incorrect assumptions. In such cases, switching to Heron's formula is the correct approach. Another error involves misidentifying the hypotenuse in right triangles, which leads to incorrect applications of the Pythagorean theorem. Always verify that the longest side is opposite the largest angle before assigning variables.
Another common issue is ignoring the triangle inequality theorem during problem setup. When given three potential side lengths, it is crucial to check validity before proceeding with area or angle calculations. Attempting to solve for a triangle that cannot exist wastes time and produces nonsensical results.
To mitigate these errors, always sketch the triangle and label known values. Verify that the sum of any two sides exceeds the third. Choose the simplest applicable method: use special triangle ratios when angles match 30-60-90 or 45-45-90 patterns, resort to the law of sines or law of cosines for general cases, and use Heron's formula when only side lengths are provided. Double-checking units and significant figures at the end of the calculation further enhances reliability.
Plug in your numbers and get instant step-by-step results.