Skip to main content

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.

Angle Units:
Three Sides (SSS) Side lengths a, b, c
3
4
5
Right Scalene Triangle
Area = 6.000
Perimeter: 12.000 | Semi-Perimeter: 6.000
Proportional Diagram (Base c = 5.000)
Sides (a, b, c) a=3.000, b=4.000, c=5.000
Angles (α, β, γ) α=36.87°, β=53.13°, γ=90.00°
Altitudes (ha, hb, hc) ha=4.000, hb=3.000, hc=2.400
Medians (ma, mb, mc) ma=4.272, mb=3.606, mc=2.500
Inradius (r) 1.000
Circumradius (R) 2.500

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, and b + 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:

c² = a² + b² − 2ab × cos(γ) ⇔ cos(γ) = (a² + b² − c²) / (2ab)

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):

a / sin(α) = b / sin(β) = c / sin(γ) = 2R

3. Heron's Area Formula: Calculates area directly from three side lengths without requiring an altitude or trigonometric evaluation:

s = (a + b + c) / 2 Area = √[s × (s − a) × (s − b) × (s − c)]

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

What is the difference between SSS, SAS, ASA, and AAS?
These acronyms represent known congruence criteria: SSS provides all three side lengths; SAS gives two sides and their included angle; ASA provides two angles and the side between them; and AAS provides two angles and a side opposite one of them. Each set of values uniquely determines a single triangle.
Why does my side combination return an invalid triangle error?
Under the Triangle Inequality Theorem, no single side can be equal to or greater than the sum of the other two sides (a + b > c). For example, sides 2, 3, and 6 cannot form a triangle because 2 + 3 = 5, which cannot bridge a distance of 6.
How are altitudes and medians calculated?
Altitudes are derived using the area relationship Area = (1/2) × base × height ⇔ height = (2 × Area) / base. Medians are determined using Apollonius' theorem: ma = (1/2) × √(2b² + 2c² − a²).
✓ Copied to Clipboard!