Skip to content
One hour with George, then a written plan the next working day. Book yours.

The triangle inequality, with counts

Three lengths can build a triangle only when the two shorter ones, laid end to end, reach past the longest. If they only just meet, the triangle is flat, and if they fall short, there is no triangle at all. That one comparison answers a family of questions about whether sides fit, how long a third side can be and how many triangles exist.

For students and parents planning test prep or coursework: one hour with George Li, one to one by video, is $180, $200 or $160, by subject. You leave with a written plan within one working day.

Book your first session
Seven sets of side lengths, tested
SidesTwo shortest addedLongestTriangle?
3, 4, 575yes
3, 4, 878no, the short sides fall short
5, 5, 101010no, the figure is flat
2, 2, 343yes
6, 8, 131413yes, barely
7, 10, 181718no
4, 4, 484yes

Sort the lengths, add the two smallest and compare with the largest. An equal sum gives a flat figure, not a triangle.

George Li Tutoring arithmetic; the rule is Proposition 20 of Euclid's Elements, Book I

What is the rule, exactly?

In any triangle the sum of any two sides is greater than the third. Euclid states it in Proposition 20 of Book I. You do not have to check all three comparisons when you test a set of lengths. If the two shortest sides beat the longest, the other two comparisons hold automatically, because the longest side already exceeds each of the others. That is why the table sorts first.

How long can the third side be?

Given two sides a and b, the third side c must satisfy two comparisons at once. It must be less than a plus b, and it must be greater than the difference of a and b, because the longer of the two given sides has to be shorter than the other two combined. So c lies strictly between the difference and the sum.

Worked example: The third side of a triangle with sides 7 and 12. What values can the third side take, and how many whole numbers fit?

  1. The upper limit is 7 plus 12, which is 19, so the third side is less than 19.
  2. The lower limit is 12 minus 7, which is 5, so the third side is greater than 5.
  3. The whole numbers strictly between 5 and 19 are 6 through 18, which is 13 values.
  4. The perimeter is 19 plus the third side, so it lies strictly between 24 and 38.

Answer: the third side is between 5 and 19, and 13 whole-number lengths work.

Method: George Li Tutoring worked-problem check by listing the whole numbers from 6 to 18.

A common slip is to include the endpoints. A third side of exactly 5 or exactly 19 would flatten the triangle, so those values are out. Another is to forget the lower limit, which matters when the two given sides are close in length.

Why is it true?

Because a straight line is the shortest way between two points. Going from B to C by way of A cannot be shorter than going directly. Euclid's proof builds on that: extend side BA past A to a point D so that AD equals AC. Triangle ACD has two equal sides, so its base angles are equal. Angle BCD is larger than angle ACD, so it is larger than angle ADC, and Proposition 19 says the side opposite the larger angle is longer, so BD is longer than BC. Since BD is BA plus AD, which equals BA plus AC, we get BA plus AC greater than BC.

The result connects to angles through Propositions 18 and 19, which say the greater side is opposite the greater angle, and the reverse. A flat triangle would have an angle of 180 degrees and two angles of 0, which is why equality marks the edge of what can exist.

How many integer triangles share a perimeter?

The rule also counts triangles. List sides a, b and c in order, with a at most b and b at most c. For a perimeter of 12, the largest side must be less than half the perimeter, which is 6, so c is at most 5. Checking each possibility gives exactly three triangles with whole-number sides: 2, 5, 5 and 3, 4, 5 and 4, 4, 4. For a perimeter of 15 the same method gives seven, and for a perimeter of 10 it gives two, 2, 4, 4 and 3, 3, 4. The idea to carry away is that the longest side of any triangle is less than half the perimeter, which follows from the inequality.

What mistakes should you avoid?

  • Testing only one pair, such as the first two numbers listed, rather than the two shortest.
  • Treating "equal to" as acceptable. A sum equal to the third side gives a straight segment.
  • Forgetting the lower limit on a missing side.
  • Using the rule on angles. The rule is for sides only. The matching angle statements are Propositions 18 and 19.

When does a tutor help with this topic?

A tutor helps when side questions on a test slow you down, because each one seems to need a new idea. A session can drill the sort-and-add habit until a set of lengths is judged in seconds, then connect it to the law of cosines and to similar triangles. See the high school courses page, the packages page or book a first session. The companion guide on congruence tests covers proving two triangles equal rather than testing sides.

Common questions

What is the triangle inequality theorem?

In any triangle, the sum of any two sides is greater than the third side.

How do I check if three lengths make a triangle?

Sort them, add the two smallest and compare with the largest. If the sum is greater, they make a triangle.

What if the sum equals the longest side?

Then the three points are on a line and there is no real triangle, because the figure is flat.

What are the possible lengths of the third side?

Between the difference and the sum of the two known sides, not including either end. With sides 7 and 12, the third side is between 5 and 19.

Sources