Triangle Calculator
Solve any triangle using SSS, SAS, ASA, AAS, SSA, or Right Triangle rules. Instantly calculate missing sides, angles, area, perimeter, altitudes, and circumradius with an interactive geometric diagram.
Trigonometric Fundamentals & Triangle Solving Theorems
Solving a triangle means finding the lengths of all three sides and the measurements of all three interior angles from a subset of known properties. Every triangle obeys fundamental geometric invariants in Euclidean space:
- Angle Sum Theorem: The interior angles of any planar triangle strictly sum to 180° (π radians):
α + β + γ = 180°. - Triangle Inequality Theorem: The sum of any two side lengths must strictly exceed the length of the third side:
a + b > c,a + c > b, andb + c > a.
Core Solving Laws
1. Law of Cosines: Generalizes the Pythagorean theorem for any arbitrary triangle. Used when three sides (SSS) or two sides and the included angle (SAS) are known:
2. Law of Sines: Relates the ratio of each side's length to the sine of its opposite angle, which also equals the diameter of the circumcircle (2R):
3. Heron's Area Formula: Calculates area directly from three side lengths without requiring an altitude or trigonometric evaluation:
The Ambiguous SSA Case (Two-Triangle Condition)
When given two sides and a non-included angle (SSA), the geometric configuration may produce zero, one, or two distinct valid triangles:
- Let
h = b × sin(α)be the perpendicular altitude from vertex C to the base line. - Case 1 (No Triangle, 0 Solutions): If
a < h, side a is too short to reach the opposite line. No triangle can form. - Case 2 (One Right Triangle, 1 Solution): If
a = h, side a drops exactly perpendicular to the base, forming a single right triangle (β = 90°). - Case 3 (One Oblique Triangle, 1 Solution): If
a ≥ b, side a can only swing in one direction across the base line without folding backward past vertex A. - Case 4 (Two Valid Triangles, 2 Solutions): If
h < a < b, side a can intersect the base line at two separate points, creating an acute triangle (Solution 1) and an obtuse triangle (Solution 2). This calculator detects this condition automatically and provides an interactive toggle between both solutions.
Standard Triangle Reference Benchmarks
| Triangle Classification | Side Ratio | Angles (α, β, γ) | Area Multiplier | Common Real-World Use |
|---|---|---|---|---|
| Equilateral | 1 : 1 : 1 | 60° - 60° - 60° | (√3 / 4) × a² ≈ 0.4330 a² | Geodesic domes, structural space frames |
| 30-60-90 Right | 1 : √3 : 2 | 30° - 60° - 90° | (√3 / 2) × a² ≈ 0.4330 a² | Drafting set-squares, roof truss pitches |
| 45-45-90 Isosceles Right | 1 : 1 : √2 | 45° - 45° - 90° | 0.5000 × a² | Square diagonal bracing, rafter squares |
| 3-4-5 Pythagorean | 3 : 4 : 5 | 36.87° - 53.13° - 90° | 6.0000 | Carpentry site layout, foundation squaring |
| 5-12-13 Pythagorean | 5 : 12 : 13 | 22.62° - 67.38° - 90° | 30.0000 | Bridge spans, mechanical linkages |
Important Geometric Terms
- Altitude (Height): The perpendicular distance from a vertex to the opposite side (or its extension). Every triangle has three altitudes:
ha = 2Area / a. - Median: A line segment joining a vertex to the midpoint of the opposite side. The three medians intersect at the centroid, which divides each median in a 2:1 ratio.
- Inradius (r): The radius of the largest circle that fits completely inside the triangle, tangent to all three sides:
r = Area / s. - Circumradius (R): The radius of the unique circle passing through all three vertices:
R = (a × b × c) / (4 × Area).
Frequently Asked Questions
Area = (1/2) × base × height ⇔ height = (2 × Area) / base. Medians are determined using Apollonius' theorem: ma = (1/2) × √(2b² + 2c² − a²).