Triangle Inequality Calculator
Test cases replayed : 5 of 5 match · Methodology · No outside source listed
Enter three lengths to check whether they make a triangle. Sides a and b also give the possible range for the third side.
Result
Do they form a triangle?
Shortest side
- Longest side
- Sum of the two shorter sides minus the longest (must be > 0)
- From a and b: the third side must be more than |a − b|
- From a and b: the third side must be less than a + b
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Side a: enter 0 or more.
- Side b (same unit): enter 0 or more.
- Side c (same unit): enter 0 or more.
- Read the result: Do they form a triangle?; the panel also shows Shortest side, Longest side, Sum of the two shorter sides minus the longest (must be > 0), From a and b: the third side must be more than |a − b| and From a and b: the third side must be less than a + b.
How this calculator works
The triangle inequality theorem (Euclid, Elements, Book I, Proposition 20) says that in any triangle each side is shorter than the sum of the other two. It is enough to check the longest side: three positive lengths form a triangle exactly when the longest is less than the sum of the other two.
When the longest side equals that sum, the three points lie on one line: a degenerate triangle with zero area. Given two sides a and b, the third side c must satisfy |a − b| < c < a + b.
Worked example
| Side a | 4 |
|---|---|
| Side b (same unit) | 7 |
| Side c (same unit) | 10 |
| Do they form a triangle? | Yes: these sides form a triangle |
|---|---|
| Sum of the two shorter sides minus the longest (must be > 0) | 1 |
| From a and b: the third side must be more than |a − b| | 3 |
| From a and b: the third side must be less than a + b | 11 |
Frequently asked questions
Can 4, 7 and 10 form a triangle?
Yes: 4 + 7 = 11 is more than 10.
Can 3, 4 and 8 form a triangle?
No: 3 + 4 = 7 is less than 8, so the two short sides cannot meet.
If two sides are 4 and 7, what can the third side be?
Any length between 3 and 11, not including 3 and 11.