Triangle Inequality: The Rule for When Three Sides Form a Triangle

#Triangle Inequality
TL;DR
The triangle inequality says any two sides of a triangle add up to more than the third. Learn why it is true, the one-check test, the range of a missing side, and six worked examples.
Kota Jaya Mounika·reviewed byShikha SharmaLast updated on December 2, 202614 min read

Key Points

  • For sides aa, bb, cc of a triangle: a+b>ca + b > c, b+c>ab + c > a and c+a>bc + a > b, all three at once.
  • One check is enough: the two shorter sides must add to more than the longest.
  • "More than" is strict. If the two shorter sides add to exactly the longest, the shape collapses into a straight line.
  • Given two sides, the third lies strictly between their difference and their sum: ∣a−b∣<c<a+b|a - b| < c < a + b.
  • The longest side of any triangle is less than half the perimeter.

Why Some Three Sticks Will Not Make a Triangle

Take sticks of 2 cm, 3 cm and 10 cm: no amount of leaning will turn them into a triangle.

  • Stand the 2 cm and 3 cm sticks on the ends of the 10 cm one and lean them together.
  • They cannot touch: together they cover only 5 cm of the 10 cm gap.
  • Swap in 4 cm, 5 cm and 6 cm, and the two shorter sticks meet easily above the longest.
the triangle inequality decides whether three sticks make a triangle
Two panels. Left: sticks of 2 and 3 standing on the ends of a 10 stick cannot meet, because 2 + 3 = 5 is less than 10. Right: sticks of 4 and 5 on a 6 stick meet to form a triangle, because 4 + 5 = 9 is more than 6.

What separates the two sets is one rule about lengths.

What Is the Triangle Inequality?

The triangle inequality is a rule about the side lengths of a triangle: any two sides added together are longer than the third side.

Label the triangle ABC with a=BCa = BC, b=CAb = CA and c=ABc = AB (the construction lab below uses the same letters). Then:

a+b>cb+c>ac+a>ba + b > c \qquad b + c > a \qquad c + a > b
  • All three must be true at once. If even one fails, the lengths cannot close up into a triangle.
  • The formal statement with its classical proofs lives in the triangle inequality theorem.

Why Does the Triangle Inequality Work?

Two pictures show it: the short sides must meet, and a detour is never shorter.

Picture 1: swing the two short sides

Draw the base BC of length aa. Swing side cc around B as an arc and side bb around C as an arc. The third corner A is where the arcs cross.

  • If b+c<ab + c < a, the arcs leave a gap and never meet.
  • If b+c=ab + c = a, the arcs touch exactly on the base. A lands on BC and the "triangle" is flat.
  • If b+c>ab + c > a, the arcs overlap and cross above the base. That crossing is A.
the arcs from B and C meet only when the two sides add to more than the base
Three panels on a base a = 6. With c = 2.6 and b = 2.2 the arcs leave a 1.2 gap. With c = 3.4 and b = 2.6 they touch on the base, so A lies on BC. With c = 4.2 and b = 3.4 they cross above the base and form triangle ABC.

Picture 2: the direct road is shortest

Think of A, B and C as three villages.

  • The straight road from B to C covers aa. The road from B to C by way of A covers c+bc + b.
  • A straight line is the shortest path between two points, so the detour through A is never shorter.
  • So c+b>ac + b > a whenever A is off the road.
the direct road between two villages is shorter than the detour through a third
Villages B, A and C. The direct road BC is 9.4 km, while the detour through A is 5.5 km plus 6.9 km, 12.4 km.

Why "more than" and not "at least"

The detour equals the direct road only when A sits exactly on the road between B and C.

  • Then A, B and C are collinear points on one line, and the shape has no area.
  • Mathematicians call this a degenerate triangle: one that has collapsed flat.
  • So a+b=ca + b = c is the exact boundary between "triangle" and "no triangle", never a real triangle.

How Do You Check If Three Lengths Form a Triangle?

You do not need to test all three inequalities; one comparison settles it.

  1. Find the longest of the three lengths.
  2. Add the other two.
  3. If the sum is more than the longest, the lengths make a triangle. If it is equal or less, they do not.

Why is one check enough?

  • The other two checks each put the longest side on the bigger side of the "greater than".
  • The longest side is already at least as long as anything it is compared with, so those checks cannot fail.

For 6, 8 and 13: 6+8=14>136 + 8 = 14 > 13, a triangle. For 4, 5 and 10: 4+5=9<104 + 5 = 9 < 10, no triangle.

Open the lab on Triangle from three sides (SSS), drag the length bars and watch all three checks update. Pick Too short: 7, 2, 3 to see the arcs miss.

Try It Yourself

Use the compass constructions to see Triangle Inequality at work: drag, change the numbers and watch what happens.

What Is the Reverse Triangle Inequality?

The triangle inequality caps a side from above; the reverse triangle inequality sets its lower limit: each side is longer than the difference of the other two.

∣a−b∣<c|a - b| < c

Put the two limits together and any side is boxed in:

∣a−b∣<c<a+b|a - b| < c < a + b
  • The lower limit comes from the other two checks: c+b>ac + b > a gives c>a−bc > a - b, and c+a>bc + a > b gives c>b−ac > b - a.
  • The vertical bars mean "the positive difference", whichever side is bigger.
  • Fix sides 7 and 4 and hinge the 4 at one end. Folded flat, the third side is 7−4=37 - 4 = 3; opened flat, it is 7+4=117 + 4 = 11. Every real triangle sits between.
the third side of a triangle with sides 7 and 4 lies between 3 and 11
Base BC = 7 with a side CA = 4 hinged at C and swung through four positions. The third side AB measures 3.3, 5.7, 9.2 and 10.8, always between the flat limits 3 and 11.

How many whole-number answers?

If two sides are whole numbers p≤qp \le q, the third side can be any whole number from q−p+1q - p + 1 to q+p−1q + p - 1.

  • That is 2p−12p - 1 possibilities, so the count depends only on the shorter side.
  • For sides 7 and 4: the third side can be 4, 5, 6, 7, 8, 9 or 10. Seven values, and 2×4−1=72 \times 4 - 1 = 7.

What Are the Properties of the Triangle Inequality?

A few facts follow straight from the rule, and each one is handy on its own.

  • Strict for real triangles. An equal sum gives a flat figure with zero area.
  • The longest side faces the largest angle. Sides and their opposite angles are ordered the same way, a companion result Euclid proves just before this one.
  • The longest side is less than half the perimeter. Add aa to both sides of a<b+ca < b + c to get 2a<a+b+c2a < a + b + c.
  • It reaches beyond triangles. For vectors, ∣u⃗+v⃗∣≤∣u⃗∣+∣v⃗∣|\vec{u} + \vec{v}| \le |\vec{u}| + |\vec{v}|: the same "detour is never shorter" idea.

These hold for every triangle, so they apply to all the types of triangle.

Examples of the Triangle Inequality

Six examples, from a single check to working backwards from the perimeter.

Example 1

Can 5 cm, 9 cm and 13 cm be the sides of a triangle?

  1. The longest is 13.
  2. The other two add to 5+9=145 + 9 = 14, and 14>1314 > 13.

Final answer: yes, they form a triangle.

Example 2

A student says 2 cm, 2 cm and 4 cm make a triangle because 2 + 2 = 4. Is that right?

  1. The student read the rule as "at least the longest".
  2. Arcs of 2 cm from each end of a 4 cm base meet at its midpoint, on the base itself.
  3. The third corner lies on the line: no height, no area.
  4. The rule needs the sum to be more than the longest side, and 4 is not more than 4.

Final answer: no. The lengths give a flat, degenerate figure.

Example 3

Two sides of a triangle are 8 cm and 3 cm. What lengths can the third side have?

  1. Use the range: 8−3<x<8+38 - 3 < x < 8 + 3.
  2. So 5<x<115 < x < 11.

Final answer: more than 5 cm and less than 11 cm.

Example 4

Two sides are 6 cm and 9 cm, and the third side is a whole number of centimetres. How many triangles are possible?

  1. The range is 9−6<x<9+69 - 6 < x < 9 + 6, so 3<x<153 < x < 15.
  2. The whole numbers in that range are 4 to 14.
  3. Check with the count rule: 2×6−1=112 \times 6 - 1 = 11.
the 11 whole-number third sides for a triangle with sides 6 and 9
A number line from 1 to 15. The whole numbers 4 to 14 are marked green as possible third sides, while 3 and 15, which give flat shapes, and 1 and 2 are marked as not possible. The count 2 times 6 minus 1 equals 11.

Final answer: 11 triangles.

Example 5

A triangle has sides x cm, (x + 4) cm and 10 cm. Is x = 2 possible? What is the smallest whole number x can be?

  1. With x=2x = 2 the sides are 2, 6 and 10. The shorter two add to 8, which is less than 10. Not possible.
  2. When 10 is the longest side, the condition is x+(x+4)>10x + (x + 4) > 10, so 2x>62x > 6 and x>3x > 3.
  3. When x+4x + 4 is the longest, x+10>x+4x + 10 > x + 4 is always true.
  4. The smallest whole number above 3 is 4, giving sides 4, 8 and 10, and 4+8=12>104 + 8 = 12 > 10.

Final answer: x=2x = 2 fails; the smallest whole number is x=4x = 4.

Example 6

A triangle has a perimeter of 20 cm and whole-number sides. What is the longest any side can be?

  1. Every side is less than half the perimeter, so less than 10 cm.
  2. The largest whole number below 10 is 9.
  3. Check 9 works: the other two add to 11, for example 5 and 6, and 5+6=11>95 + 6 = 11 > 9.

Final answer: 9 cm.

Where Do Students Trip Up on the Triangle Inequality?

Most wrong answers come from three habits: accepting an equal sum, checking the wrong pair, and giving only one end of a range.

Mistake 1: Accepting an equal sum

Where it slips in: Lengths like 3, 4 and 7, where 3+4=73 + 4 = 7 exactly.

Don't do this: Call it "just barely a triangle".

The correct way: The sum must be strictly more than the longest side. An equal sum makes a straight line with no area. The student who second-guesses here usually had it right the first time: equal means no.

Mistake 2: Checking the easy pair

Where it slips in: Testing 3, 4 and 8 by checking 3+8>43 + 8 > 4 and 4+8>34 + 8 > 3, seeing two passes, and stopping.

Don't do this: Check whichever pair comes first in the question.

The correct way: The only check that can fail is the one with the longest side alone: 3+4=7<83 + 4 = 7 < 8. Find the longest length first, every time.

Mistake 3: Forgetting the lower limit

Where it slips in: Range questions, written quickly.

Don't do this: Say that with sides 9 cm and 4 cm the third side is "anything less than 13 cm".

The correct way: The third side is also more than 9−4=59 - 4 = 5 cm. A 2 cm side would leave 4 cm and 2 cm unable to span 9 cm. Write both ends: 5<x<135 < x < 13.

Where Is the Triangle Inequality Used?

Anywhere three distances meet, the rule acts as a quick filter.

  • Catching a wrong measurement. A survey says P is 18 km from R, Q is 12 km from P, and Q is 5 km from R. Since 12+5=17<1812 + 5 = 17 < 18, one number is wrong.
  • Building with fixed lengths. Before cutting three beams for a triangular frame, run the quick test.
  • Routes and detours. Going via a third point is never shorter than going direct.
  • Computing. Shortest-path and matching programs rely on their "distance" obeying this rule.
the triangle inequality shows a set of measured distances is impossible
A map drawn to scale with villages P and R 18 km apart. The arc of points 12 km from P and the circle of points 5 km from R miss each other by 1 km, so no village Q can be 12 km from P and 5 km from R.

Conclusion

  • Any two sides of a triangle add up to more than the third, for all three pairs.
  • One check settles it: the two shorter sides must beat the longest.
  • An equal sum is a flat line, not a triangle.
  • A missing side lies strictly between the difference and the sum of the other two.

Practice These to Solidify Your Understanding

Try these in order, then check the answers.

  1. Can side lengths 4, 6 and 11 form a triangle?
  2. Two sides of a triangle are 12 cm and 5 cm. Find the range of the third side, and count its whole-number values.
  3. A triangle has sides xx, x+2x + 2 and 9. Find the smallest whole-number xx that works.
  4. Cut straws of 3, 4, 5, 7 and 9 cm. Predict which sets of three close up, then try them.

Answer to Question 1: the longest is 11, and 4+6=10<114 + 6 = 10 < 11, so no triangle.

Answer to Question 2: 7<x<177 < x < 17, which holds 9 whole numbers (2×5−1=92 \times 5 - 1 = 9).

Answer to Question 3: x+(x+2)>9x + (x + 2) > 9 gives x>3.5x > 3.5, so x=4x = 4 (sides 4, 6, 9).

Answer to Question 4: 3-4-7 lies flat and 3-4-9 cannot close. If either surprised you, go back to the quick test.

To practise triangle problems with a teacher, explore Bhanzu's geometry tutor or math classes online.

Want a live Bhanzu trainer to walk your child through problems like these? Book a free demo class.

Read More

Research Behind This Article

  1. Euclid, Elements, Book I, Proposition 20 (in any triangle two sides taken together are greater than the remaining one), D. E. Joyce, Clark University. mathcs.clarku.edu
  2. Euclid, Elements, Book I, Proposition 22 (constructing a triangle from three given lengths), D. E. Joyce, Clark University. mathcs.clarku.edu
  3. Euclid, Elements, Book I, Proposition 19 (in any triangle the side opposite the greater angle is greater), D. E. Joyce, Clark University. mathcs.clarku.edu
  4. OpenStax, Contemporary Mathematics, Section 10.3: Triangles (sides, angles and classifying triangles). openstax.org

Quick Quiz: Check Yourself

Three levels, questions with figures, instant feedback with the reason.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the triangle inequality in simple words?
The two shorter sides, put end to end, must be longer than the longest side, or they cannot meet to close the shape.
What is the difference between the triangle inequality and the triangle inequality theorem?
They describe the same fact. This page is about using it as a test; the theorem page gives the formal statement and its proofs.
Can two sides of a triangle add up to exactly the third side?
No. That case gives three points on a straight line, a flat shape with no area.
How do I find the range of the third side?
Take the difference and the sum of the two known sides; the third side lies strictly between them (Example 3).
Does the rule work for every kind of triangle?
Yes. Scalene, isosceles, equilateral, acute, right and obtuse triangles all obey it, because it is what makes three lengths a triangle in the first place.
✍️ Written By
Kota Jaya Mounika
Kota Jaya Mounika
Subject Matter Expert
Kota Jaya Mounika is a mathematics educator and content development professional with 2 years of experience. She previously worked as a Mathematics Instructor at NIAT, teaching B.Tech students and developing educational resources. At Bhanzu, she specializes in developing and reviewing mathematics content for Grades 6–8, focusing on conceptual understanding, problem-solving, and content accuracy. She is passionate about making mathematics simple, engaging, and accessible. She holds a B.Sc. in Mathematics and Statistics and a postgraduate degree in Computer Applications.
LinkedIn
🔬 Reviewed By
Shikha Sharma
Subject Matter Expert
Related Articles
Book a FREE Demo ClassBook Now →