A triangle is a polygon with exactly three sides and three interior angles. The most fundamental property of any triangle in Euclidean (flat) geometry is that its three interior angles always sum to exactly 180°. This rule is used constantly in calculations: if you know two angles, the third is simply 180° minus the other two.
Every triangle also satisfies the triangle inequality theorem: each side must be shorter than the sum of the other two sides. If you provide sides that violate this rule (e.g., sides 1, 2, and 10), no real triangle exists. Our calculator detects this and returns an error.
| Triangle Type | Side Condition | Angle Condition | Example Sides |
|---|---|---|---|
| Equilateral | a = b = c | All 60° | 5, 5, 5 |
| Isosceles | Two sides equal | Two equal base angles | 5, 5, 7 |
| Scalene | All sides different | All angles different | 3, 5, 7 |
| Right | a² + b² = c² | One angle = 90° | 3, 4, 5 |
| Obtuse | c² > a² + b² | One angle > 90° | 4, 5, 8 |
| Acute | All: c² < a² + b² | All angles < 90° | 5, 6, 7 |
Multiple formulas exist for triangle area, each suited to different available information.
1. Base and Height (most common):
Area = ½ × base × height
The height must be perpendicular to the base. Example: base = 8, height = 5 → Area = ½ × 8 × 5 = 20 square units.
2. Heron's Formula (three sides known):
First calculate the semi-perimeter: s = (a + b + c) / 2
Then: Area = √(s(s−a)(s−b)(s−c))
Example: sides 5, 7, 8 → s = 10 → Area = √(10 × 5 × 3 × 2) = √300 ≈ 17.32 square units.
3. Two Sides and Included Angle (SAS):
Area = ½ × a × b × sin(C)
Example: a = 6, b = 8, C = 30° → Area = ½ × 6 × 8 × sin(30°) = ½ × 48 × 0.5 = 12 square units.
| Given | Formula | Notes |
|---|---|---|
| Base + Height | ½ × b × h | Most intuitive |
| Three sides | √(s(s−a)(s−b)(s−c)) | Heron's formula |
| Two sides + angle | ½ab sin C | SAS — needs trig |
| Coordinates | ½|x₁(y₂−y₃)+x₂(y₃−y₁)+x₃(y₁−y₂)| | Shoelace formula |
The Pythagorean theorem applies exclusively to right triangles: in a right triangle with legs a and b and hypotenuse c, a² + b² = c². The hypotenuse is always the longest side, directly opposite the 90° angle.
This theorem was known in ancient Babylon and Egypt over 1,000 years before Pythagoras — a clay tablet from around 1800 BC (Plimpton 322) lists Pythagorean triples. Despite the name, it became a cornerstone of Greek geometry through Euclid's proof in "Elements."
Pythagorean triples are integer sets satisfying a² + b² = c²:
| a | b | c | Check |
|---|---|---|---|
| 3 | 4 | 5 | 9 + 16 = 25 ✓ |
| 5 | 12 | 13 | 25 + 144 = 169 ✓ |
| 8 | 15 | 17 | 64 + 225 = 289 ✓ |
| 7 | 24 | 25 | 49 + 576 = 625 ✓ |
| 20 | 21 | 29 | 400 + 441 = 841 ✓ |
Pythagorean triples are used in construction (the 3-4-5 method ensures a perfectly square corner) and in recreational mathematics.
For non-right triangles, two fundamental laws enable solving for unknown sides and angles.
Law of Sines: a/sin(A) = b/sin(B) = c/sin(C)
This applies when you know: two angles and one side (AAS or ASA), or two sides and an angle not between them (SSA — the ambiguous case).
Example: In triangle ABC, angle A = 45°, angle B = 60°, side a = 10. Find side b.
b / sin(60°) = 10 / sin(45°) → b = 10 × sin(60°) / sin(45°) = 10 × 0.866 / 0.707 ≈ 12.25
Law of Cosines: c² = a² + b² − 2ab × cos(C)
This applies when you know: two sides and the included angle (SAS), or all three sides (SSS — to find angles). It is a generalization of the Pythagorean theorem: when C = 90°, cos(90°) = 0 and the formula reduces to c² = a² + b².
Example: sides a = 5, b = 7, C = 120°. Find c.
c² = 25 + 49 − 2(5)(7)cos(120°) = 74 − 70(−0.5) = 74 + 35 = 109 → c ≈ 10.44
Three special triangles appear constantly in trigonometry, engineering, and architecture because their angles yield exact, clean trigonometric values.
30-60-90 Triangle: Sides in ratio 1 : √3 : 2. If the short leg is 1, the long leg is √3 ≈ 1.732, and the hypotenuse is 2. This triangle is half of an equilateral triangle cut along its altitude.
45-45-90 Triangle (Isosceles Right): Sides in ratio 1 : 1 : √2. Both legs are equal; the hypotenuse is √2 ≈ 1.414 times one leg. This is half of a square cut along its diagonal.
Equilateral Triangle: All sides equal, all angles 60°. For side length s: Area = (√3/4) × s²; Height = (√3/2) × s.
| Triangle | Angles | Side Ratios | Area (unit side) |
|---|---|---|---|
| Equilateral | 60-60-60° | 1 : 1 : 1 | √3/4 ≈ 0.433 |
| 30-60-90 | 30-60-90° | 1 : √3 : 2 | √3/4 ≈ 0.433 |
| 45-45-90 | 45-45-90° | 1 : 1 : √2 | 0.5 |
| Right isosceles | 45-45-90° | 1 : 1 : √2 | 0.5 |
The perimeter of a triangle is simply the sum of its three sides: P = a + b + c. The semi-perimeter s = P/2 appears in Heron's formula for area and also in formulas for the inradius (radius of the inscribed circle) and circumradius (radius of the circumscribed circle).
For a right triangle with legs a, b and hypotenuse c: inradius r = (a + b − c)/2; circumradius R = c/2. The circumcenter of a right triangle lies exactly at the midpoint of the hypotenuse — a useful construction fact.
Triangles are the most structurally fundamental shape in engineering and nature. Their rigid geometry makes them uniquely resistant to deformation — a triangle cannot be distorted without changing the length of at least one side, a property no other polygon shares.
Two triangles are congruent (identical in size and shape) if they satisfy any of these conditions:
Two triangles are similar (same shape, different size) if their corresponding angles are equal (AA condition is sufficient). Similar triangles have proportional sides, which is the basis for shadow measurements, scale drawings, and the calculation of tall building heights using a simple measuring stick and the shadow it casts.
Since all interior angles sum to 180°, subtract the known angles from 180°. Example: angles 45° and 65° are known → third angle = 180° − 45° − 65° = 70°. If you know two sides and an angle, use the Law of Sines or Law of Cosines.
For right triangles only: a² + b² = c², where c is the hypotenuse. Use it when you have two sides of a right triangle and need the third. Example: legs 3 and 4 → hypotenuse = √(9+16) = √25 = 5.
No. Two right angles sum to 180°, leaving 0° for the third angle, which is geometrically impossible. In Euclidean geometry, a triangle can have at most one right angle and at most one obtuse angle.
Use Heron's formula: s = (a+b+c)/2; Area = √(s(s−a)(s−b)(s−c)). Example: sides 6, 8, 10 → s = 12 → Area = √(12×6×4×2) = √576 = 24 square units.
The Law of Sines (a/sinA = b/sinB = c/sinC) is used when you know two angles and a side (AAS/ASA) or two sides and a non-included angle (SSA). The Law of Cosines (c² = a²+b²−2ab·cosC) is used when you know three sides (SSS) or two sides and the included angle (SAS).
The 3-4-5 right triangle is used in construction to create perfectly square corners. Measure 3 units along one wall and 4 units along an adjacent wall. If the diagonal between those two points is exactly 5 units, the corner is perfectly 90°. Multiples (6-8-10, 9-12-15) work equally well.
Area = (√3/4) × s² = (√3/4) × 100 = 25√3 ≈ 43.30 square units. The height of the equilateral triangle is (√3/2) × s = 5√3 ≈ 8.66.
Rearrange the area formula: height = 2 × Area / base. First calculate area using Heron's formula (if you know all three sides), then divide: h = 2A / b. For equilateral triangles: h = (√3/2) × side.
Yes — that is an equilateral triangle. All three sides are equal, all three angles are equal (60°), and it has three lines of symmetry. It is the most symmetric triangle possible and occurs naturally in honeycombs, crystal structures, and tiling patterns.
For a valid triangle, the sum of any two sides must be strictly greater than the third side. If sides are a, b, c then: a+b > c, a+c > b, and b+c > a must all hold. Sides 2, 3, 6 fail (2+3 = 5 < 6) — no triangle can be formed.
Every triangle has several notable points (centres) formed by the intersection of lines drawn from vertices or midpoints. These geometric centres have elegant properties and practical applications in engineering and design:
Centroid (G): The intersection of the three medians (lines from each vertex to the midpoint of the opposite side). The centroid is the geometric centre of mass — a flat triangular plate of uniform density would balance exactly at the centroid. It divides each median in ratio 2:1 from vertex to midpoint.
Circumcenter (O): The intersection of the perpendicular bisectors of the three sides. The circumcenter is equidistant from all three vertices — it is the centre of the circumscribed circle (circumcircle). For acute triangles, it lies inside; for right triangles, at the hypotenuse midpoint; for obtuse triangles, outside the triangle.
Incenter (I): The intersection of the three angle bisectors. The incenter is the centre of the inscribed circle (incircle) — the largest circle that fits inside the triangle. It is always inside the triangle. The inradius r = Area / s, where s is the semi-perimeter.
Orthocenter (H): The intersection of the three altitudes (lines from each vertex perpendicular to the opposite side). For acute triangles it is inside; for right triangles, at the right-angle vertex; for obtuse triangles, outside.
| Centre | Defined By | Location | Key Property |
|---|---|---|---|
| Centroid | Medians | Always inside | Centre of mass |
| Circumcenter | ⊥ bisectors of sides | Inside (acute), outside (obtuse) | Centre of circumcircle |
| Incenter | Angle bisectors | Always inside | Centre of incircle |
| Orthocenter | Altitudes | Inside (acute), outside (obtuse) | Reflection properties |
A remarkable fact: the centroid, circumcenter, and orthocenter of any triangle are collinear — they all lie on the Euler line. The centroid divides the segment from circumcenter to orthocenter in ratio 1:2. This deep connection between three independently defined geometric centres is one of the most elegant results in classical geometry, discovered by Leonhard Euler in 1765 and reflecting the hidden symmetry within every triangle.
The incenter does not lie on the Euler line (except in isosceles triangles where it coincides with the centroid and circumcenter on the axis of symmetry). This makes the incenter the "odd one out" among the four classical triangle centres, yet it has the most practical engineering significance — the incircle defines the largest waste-free circle that can be cut from a triangular piece of material.
Triangles are the only polygon that is inherently rigid — applying a force to one vertex does not change the shape unless a side changes length. All other polygons can be deformed by applying force without changing side lengths (a square can be pushed into a parallelogram), but a triangle resists deformation completely. This geometric rigidity is why triangles are the fundamental building block of structural engineering.
The Eiffel Tower uses thousands of triangular truss sections to carry its weight efficiently. Steel bridges (Warren truss, Pratt truss) decompose loads into triangular panels where forces are purely compressive or tensile — no bending — making the structure extraordinarily efficient for its weight. Aircraft fuselages and wings rely on triangulated frameworks for the same reason.
In nature, triangular arrangements appear in crystals, soap film minimal surfaces, insect compound eyes, and protein secondary structures. The triangular arrangement of atoms in many crystal lattices (e.g., graphene) gives materials like diamond and graphene exceptional strength-to-weight ratios.
<h2>Solving Triangles: The Complete Reference</h2>
<p>To "solve" a triangle means to determine all six quantities: three sides and three angles. You need at least three pieces of information (with at least one being a side length) to fully determine a unique triangle:</p>
<table><thead><tr><th>Given</th><th>Method</th><th>Number of Solutions</th></tr></thead><tbody>
<tr><td>SSS (three sides)</td><td>Law of Cosines to find angles</td><td>1 (if valid triangle)</td></tr>
<tr><td>SAS (two sides + included angle)</td><td>Law of Cosines, then Law of Sines</td><td>1</td></tr>
<tr><td>ASA (two angles + included side)</td><td>Angle sum for third angle, Law of Sines</td><td>1</td></tr>
<tr><td>AAS (two angles + non-included side)</td><td>Angle sum for third angle, Law of Sines</td><td>1</td></tr>
<tr><td>SSA (two sides + non-included angle)</td><td>Law of Sines — Ambiguous Case</td><td>0, 1, or 2</td></tr>
<tr><td>AAA (three angles only)</td><td>Shape known, size undetermined</td><td>Infinitely many (similar triangles)</td></tr>
</tbody></table>
<p>The <strong>SSA ambiguous case</strong> is particularly important: given two sides and an angle not between them, there may be zero, one, or two valid triangles. If the given angle is obtuse, only one solution is possible (or none). If the given angle is acute, compare the given side opposite the angle to the height (a₀ = b × sin A): if the opposite side is shorter than the height, no triangle exists; if equal, one right triangle exists; if longer than the height but shorter than the adjacent side, two triangles exist; if longer than the adjacent side, one triangle exists.</p>