Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Triangle Inequality Calculator

Side a: enter 0 or more. Prefilled example: 4.

Side b (same unit): enter 0 or more. Prefilled example: 7.

Side c (same unit): enter 0 or more. Prefilled example: 10.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Side a: enter 0 or more.
  2. Side b (same unit): enter 0 or more.
  3. Side c (same unit): enter 0 or more.
  4. 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 a4
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 + b11

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.

Questions answered

Related calculators