Triangle Calculator
Solve any triangle with Heron's formula for area, perimeter, side lengths, angles in degrees, inradius, and circumradius.
All formulas and computation matrices for this calculator execute directly in your browser with zero latency. Enter your parameters to see instant results.
Who Uses This Calculation & Why Accuracy Matters
Architects, civil engineers, surveyors, carpenters, navigators, and geometry students use this triangle calculator to solve for unknown side lengths, interior angles, perimeter, and area across all triangle types using SSS, SAS, ASA, AAS, and SSA (ambiguous case) via the Law of Sines and Law of Cosines.
A surveyor measuring two boundary property lines of 145.0 meters and 210.0 meters with an included angle of 68.0° (SAS configuration).
A carpenter building an asymmetrical roof truss with base span 28 ft and rafter pitch angles of 30° and 45° (ASA configuration).
A pilot calculating aircraft ground track with airspeed 180 kts heading 090° against a 35 kt wind blowing from 220°.
Triangle Solving Rules by Known Information (SSS, SAS, ASA, AAS, SSA)
Mathematical methods and uniqueness criteria for solving triangles.
| Known Configuration | Primary Applicable Theorem | Number of Possible Solutions | First Step in Solution | Formula Used |
|---|---|---|---|---|
| SSS (Three Sides) | Law of Cosines | Unique (if triangle inequality holds) | Find largest angle first | cos(A) = (b² + c² - a²) / (2bc) |
| SAS (Two Sides + Included Angle) | Law of Cosines | Unique solution | Find third opposite side | a² = b² + c² - 2bc cos(A) |
| ASA (Two Angles + Included Side) | Law of Sines | Unique (if angles sum < 180°) | Find third angle (180° - A - B) | b = a × sin(B) / sin(A) |
| AAS (Two Angles + Non-included Side) | Law of Sines | Unique (if angles sum < 180°) | Find third angle | c = a × sin(C) / sin(A) |
| SSA (Ambiguous Case) | Law of Sines | 0, 1, or 2 Solutions (Ambiguous) | Check height h = b sin(A) vs a | sin(B) = (b × sin(A)) / a |
* Triangle Inequality Theorem: The sum of the lengths of any two sides must exceed the third side (a + b > c).
Law of Sines, Law of Cosines & Heron's Area Equations
Universal trigonometric laws governing general non-right triangles. Heron's formula computes area directly from three side lengths without requiring an altitude.
Lengths of the three triangle edges.
Angles opposite sides a, b, and c respectively.
Half of the perimeter: (a + b + c) / 2.
Step-by-Step Worked Examples with Real Numbers
Worked Example 1: Solving SSS via Law of Cosines
Law of Cosines.
Largest angle.
Second angle.
Angles: A = 35.66°, B = 56.39°, C = 87.95°.
Worked Example 2: Heron's Formula Area Calculation
Semi-perimeter.
Exact area.
Assumptions, Edge Cases & Common Calculation Mistakes
ℹ Underlying Algorithm Assumptions
- Assumes Euclidean flat plane geometry (curved spherical triangles sum to >180°).
- Side lengths must satisfy the Triangle Inequality: a + b > c, a + c > b, and b + c > a.
- Interior angles sum to exactly 180 degrees (π radians).
⚠ 3 Common Mistakes to Avoid
- Attempting to form a triangle with sides that violate the triangle inequality (e.g., sides 2, 3, 7 cannot form a triangle because 2 + 3 < 7).
- Overlooking the SSA Ambiguous Case, which can produce two completely different valid triangles.
- Calculating in Radian mode when degrees were entered.