Triangle Solver
Solve triangles using SSS, SAS, or ASA inputs.
About this topic
Side-Side-Side (SSS) Solve a triangle given all three side lengths.
When all three sides are known, the triangle is completely determined (if it exists). Angles are found using the Law of Cosines, and area via Heron's formula.
Key formulas & rules
- •All three sides must be positive
- •Triangle inequality: a + b > c (and cyclic)
- •Angles sum to exactly 180°
- •Law of Cosines: cos(C) = (a² + b² − c²) / 2ab
- •Heron: Area = √(s(s−a)(s−b)(s−c))
- •SSS triangles are always unique (if valid)
Examples
| Input | Output | Note |
|---|---|---|
| a=3, b=4, c=5 | A=36.87°, B=53.13°, C=90° | Right triangle |
| a=5, b=6, c=7 | A=44.42°, B=57.12°, C=78.46° | Scalene |
| a=b=c=5 | All angles = 60° | Equilateral |
| a=2, b=3, c=10 | Invalid | Violates inequality |
Real-world uses
Laws of Cosines & Sines The tools that connect sides and angles.
Two fundamental trigonometric laws solve any triangle: the Law of Cosines handles side-angle-side and side-side-side problems, while the Law of Sines handles angle-side-angle and angle-angle-side problems.
Key formulas & rules
- •Cosines: c² = a² + b² − 2ab·cos(C)
- •Sines: a/sin(A) = b/sin(B) = c/sin(C)
- •Cosines for SSS or SAS problems
- •Sines for ASA, AAS, or SSA problems
- •SSA (ambiguous case) may give 0, 1, or 2 triangles
- •Law of Cosines reduces to Pythagoras when C = 90°
Examples
| Input | Output | Note |
|---|---|---|
| a=8, b=6, C=60° | c ≈ 7.21 | Law of Cosines |
| A=30°, a=5, B=45° | b ≈ 7.07 | Law of Sines |
| a=3, b=4, C=90° | c = 5 | Pythagoras |
| A=60°, B=60°, a=5 | b=5 | Equilateral |
Real-world uses
Heron's Formula Area from just the three side lengths.
Heron of Alexandria discovered a way to compute a triangle's area using only the three side lengths — no angles or heights required. It uses the semi-perimeter s = (a + b + c) / 2.
Key formulas & rules
- •s = (a + b + c) / 2 (semi-perimeter)
- •Area = √(s(s−a)(s−b)(s−c))
- •Works for any valid triangle
- •Equivalent to Law of Cosines + ½ab·sin(C)
- •Generalizes to cyclic quadrilaterals
- •Negative under root means invalid triangle
Examples
| Input | Output | Note |
|---|---|---|
| a=3, b=4, c=5 | Area = 6 | s=6 |
| a=5, b=6, c=7 | Area ≈ 14.70 | s=9 |
| a=1, b=1, c=√2 | Area = 0.5 | Right isosceles |
| a=10, b=10, c=10 | Area ≈ 43.30 | s=15 |
Real-world uses
Triangle Classification Named by angles and sides.
Triangles are classified by both their angle measures and their side lengths. Knowing the classification helps predict properties and shortcuts.
Key formulas & rules
- •By angles: Acute, Right, Obtuse
- •By sides: Equilateral, Isosceles, Scalene
- •Acute: all angles < 90°
- •Right: one angle = 90° (Pythagoras works)
- •Obtuse: one angle > 90°
- •Sum of any two angles < 180°
Examples
| Input | Output | Note |
|---|---|---|
| 3-4-5 | Right scalene | Classic |
| 5-5-6 | Acute isosceles | Mostly acute |
| 5-5-5 | Equilateral | 60° each |
| 2-3-4 | Obtuse scalene | One angle > 90° |
Real-world uses
Modes & formulas
SSS (Side-Side-Side)
The inputs must satisfy the Triangle Inequality Theorem. If they don't, the tool will return an error because the sides cannot form a closed triangle.