On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Geometry Fundamentals · Grade 6-8

Triangle Inequality

The triangle inequality decides whether three lengths can form a triangle.

a+b>c   for every pair of sides

Quick Answer

The triangle inequality decides whether three lengths can form a triangle. Any two sides must add up to more than the third; in practice, check that the two shorter sides together are longer than the longest side. Use it when you are given three lengths and asked whether a triangle is possible, or given two sides and asked what the third could be: it must lie strictly between their difference and their sum.

Why This Matters

It tells you before you build anything whether three beams, sticks or roads can close up into a triangle, and it gives the range for a missing side: with sides 5 and 9, the third must be between 4 and 14. It is also the reason a straight path is the shortest route, since a detour through a third point is never shorter. Without it, students accept lengths like 2, 3 and 6, which cannot close.

Intuitive Explanation

Take sticks of 4, 7 and 9 cm. Lay the 9 cm stick down and hinge the other two at its ends. Swing them up: since 4+7=11 is more than 9, the free ends can meet above the long stick, and you get a triangle. Now try 2, 3 and 6. Even laid flat along the 6 cm stick, the 2 and 3 cm sticks reach only 5 cm together, so they cannot meet. No triangle.

The borderline case is equality. With 3, 4 and 7, the two short sticks reach exactly 7 cm only by lying flat along the long one, which squashes the triangle into a straight segment with zero area. That is why the rule says strictly greater than: a+b>c.

You do not need to test all three pairs. If the two shortest sides beat the longest, the other checks pass automatically, because the longest side plus anything is bigger than either short side. Turned around, the rule gives a range: if two sides are 5 and 9, the third side x must satisfy 9−5<x<9+5, so 4<x<14.

Possible is not the same as right-angled. The lengths 4, 7 and 9 make a triangle, but 42+72=65 does not equal 92=81, so it has no right angle. The triangle inequality says only whether a triangle exists.

Think of it like this. The triangle inequality is the shortcut rule: walking straight from home to school is never longer than detouring past the shop. In a triangle, one side is the straight walk and the other two are the detour, so the detour must be longer. If the shop sits exactly on the straight route, the two tie and the triangle flattens into a line.

Core idea. A triangle exists only if any two sides can meet past the third side.


When to Use

Use the triangle inequality when three lengths are given and the question is whether they can form a triangle, or when two sides are known and you need the possible range of the third. Add the two shortest and compare with the longest, using strictly greater than. If the question asks whether the triangle has a right angle, use the Pythagorean theorem; if it asks about angles, use the angle sum.

Tip. Ask: Is the sum of the two shorter sides greater than the longest side?

How to Recognize It

Before testing three lengths, sort them from shortest to longest and make sure they are in the same units and belong to one triangle.

  1. Are you asked whether a triangle can be built at all, rather than what kind of triangle it is?

    If yes, this is the triangle inequality, and one comparison settles it. If the question asks whether the triangle has a right angle, use the Pythagorean theorem, which tests something different.

  2. Are two sides known, with the question asking what the third could be?

    Then the answer is a range, not one number: the third side must be more than the difference and less than the sum. With sides 4 and 9, it lies strictly between 5 and 13.

  3. Do the two shorter lengths add up to exactly the longest one?

    Then there is no triangle: the three corners would lie on one straight line, a flat triangle. Lengths 3, 5 and 8 do this. A real triangle needs the sum to be strictly greater.

  4. Is the question about the triangle's angles rather than its sides?

    If yes, use the triangle angle sum. The triangle inequality says nothing about angles directly, though it has a cousin: the longest side always sits opposite the largest angle.

Triangle Inequality compared with Pythagorean theorem and Triangle angle sum

All three rows test a triangle, so a student can grab the wrong check. Ask what is in question: whether the shape can exist at all (inequality), whether it has a right angle (Pythagorean theorem), or how big its angles are (angle sum).

Triangle Inequality

Meaning
Use this when three side lengths are given and triangle possibility is in question.
Key test
Is the sum of the two shorter sides greater than the longest side?
Formula
a+b>c   for every pair of sides
Example
Can side lengths 4, 7, and 9 form a triangle?

Pythagorean theorem

Meaning
Checks or solves right triangles.
Key test
Use after a right triangle is known or being tested.
Formula
a2+b2=c2
Example
Right triangle sides

Triangle angle sum

Meaning
Uses interior angles totaling 180 degrees.
Key test
Use when angles are given.
Formula
A+B+C=180∘
Example
Missing angle

Formula & Notation

a+b>c   for every pair of sides
∀ a,b,c>0 forming a triangle: ∣a−b∣<c<a+b (and cyclic permutations); this is the triangle inequality for the Euclidean metric: d(P,R)≤d(P,Q)+d(Q,R), strict unless P,Q,R are collinear

How to read it: The sum of any two side lengths must be greater than the third side.

Worked Examples

Example 1 — Can sides form a triangle?

Easy

Can side lengths 4, 7, and 9 form a triangle?
Show the steps and the answer
  1. Pick out the longest side, 9, and the two shorter sides, 4 and 7.

    If the two shortest sides together beat the longest, every other pair passes too.

  2. Add the two shorter sides: 4+7=11.

    This is the farthest the two short sides can reach when laid end to end.

  3. Compare: 11>9, so the free ends can meet above the long side.

    Strictly greater means the triangle closes with room to spare; equal would flatten it.

  4. Confirm the other pairs if you like: 4+9=13>7 and 7+9=16>4.

    Both pass, as the shortcut predicted.

Answer: Yes, a triangle is possible

Takeaway: Add the two shorter sides and compare with the longest; strictly greater means a triangle exists.

Example 2 — Right-triangle test

Standard

Do side lengths 4, 7, and 9 form a right triangle?
Show the steps and the answer
  1. Note that the triangle inequality already said yes: 4, 7 and 9 do make a triangle.

    Being possible is the first question; having a right angle is a separate one.

  2. Square the two shorter sides and add: 42+72=16+49=65.

    In a right triangle, the squares of the two legs add to the square of the hypotenuse.

  3. Square the longest side and compare: 92=81, and 65≠81.

    The totals do not match, so there is no right angle; since 65<81, the largest angle is in fact obtuse.

Answer: 65≠81, so not right.

Takeaway: The triangle inequality says whether a triangle exists; the Pythagorean theorem says whether it has a right angle.

Example 3 — Find the mistake: checking the wrong pair

Application

Can lengths 3, 5 and 9 form a triangle? Leo writes: "5+9=14, which is more than 3, so yes." Find the mistake and correct it.
Show the steps and the answer
  1. Find Leo's error: he checked 5+9>3, a pair that includes the longest side.

    The longest side plus anything beats a short side automatically, so that check proves nothing.

  2. Check the pair that matters, the two shortest: 3+5=8.

    The two short sides have to reach across the full length of the longest side.

  3. Compare with the longest: 8<9, so the short sides fall 1 unit short of meeting.

    Laid flat along the 9, the 3 and the 5 cover only 8, so the triangle cannot close.

  4. See what would work: a longest side under 8, such as 3, 5, 7, where 3+5=8>7.

    Knowing the limit shows exactly how far the lengths are from forming a triangle.

Answer: No triangle: 3+5=8 is less than 9.

Takeaway: Always test the two shortest sides against the longest; a check that includes the longest side always passes and tells you nothing.

Where You'll See It

  • Checking distances on a map

    If town A is 40 km from town B in a straight line, and B is 25 km from C, then the straight-line distance from A to C must lie between 40−25=15 km and 40+25=65 km. A map claiming A and C are 80 km apart in a straight line must contain an error.

  • Building a triangular frame

    A builder with beams of 2 m, 3 m and 6 m cannot make a triangular frame, because 2+3=5 is less than 6, so the short beams cannot reach. Swapping the 6 m beam for a 4 m one works, since 2+3=5>4.

Common Mistakes

  1. The slip: Checking only one random pair

    Instead: compare the two shortest sides against the longest side.

  2. The slip: Using greater than or equal

    Instead: equality makes a flat line, not a triangle.

  3. The slip: Confusing possible triangle with right triangle

    Instead: possible does not mean right.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Can side lengths 3 cm, 5 cm, and 8 cm form a triangle?

    Hint: Add the two shorter sides and compare with the longest side.

  2. Can side lengths 6, 6, and 11 form a triangle?

    Hint: Compare the sum of the two shorter sides with the longest.

  3. Two sides of a triangle are 5 cm and 12 cm. What lengths are possible for the third side?

    Hint: The third side must be longer than the difference and shorter than the sum.

  4. A triangle has sides 4 and 9, and the third side is a whole number. How many lengths are possible?

    Hint: Find the range first, then count the whole numbers strictly inside it.

  5. You want to know if sides 6, 8, and 12 make a right triangle. Is checking 6+8>12 enough?

    Hint: Does that check say anything about a right angle?

  6. Ana checks sides 3, 4, and 10: "10+3>4, so they make a triangle." Correct her check.

    Hint: Which pair must you test against the longest side?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why is checking the two shortest sides enough, when the rule says every pair?

Adding the longest side to either other side always beats the third side, because the longest side alone is already at least as long as the third. So two of the three checks pass automatically, and the only one that can fail is the two shorter sides against the longest. With 3, 7 and 9, the sums 3+93 + 9 and 7+97 + 9 clearly win, so only 3+7=10>93 + 7 = 10 > 9 needs checking.

Does the triangle inequality work for distances on a map?

Yes, for straight-line distances between any three places. If town A is 30 km from B and B is 20 km from C, then A and C are at most 50 km apart and at least 10 km apart. That gives a quick way to spot a mistake: a chart that says A is 60 km from C must be wrong. Mathematicians use this rule as a test for whether a way of measuring deserves to be called a distance.

How many triangles with whole-number sides have two sides of 5 and 8?

The third side must be more than 8−5=38 - 5 = 3 and less than 8+5=138 + 5 = 13, so it can be 4, 5, 6, 7, 8, 9, 10, 11 or 12. That is 9 options. Notice that 3 and 13 are both left out, since each would make the three corners line up into a flat triangle. Questions like this one test whether you use strictly greater than.

Does the rule say anything about the perimeter?

Yes, and it is a handy shortcut. If cc is the longest side, the rule says a+b>ca + b > c. Add cc to both sides: a+b+c>2ca + b + c > 2c, so cc is less than half the perimeter. A triangle with perimeter 20 cm cannot have a side of 10 cm or more. This lets you rule out answer choices in a perimeter question without testing every set of three lengths.

Learning Path

Triangle Inequality

You are here

You need Triangles, Addition and Comparison (greater than, less than) first. The triangle inequality adds a test for whether three lengths can close up, and the range rule: difference < third side < sum. Next, the Pythagorean Theorem goes one step further and tells you which of the possible triangles have a right angle.

See Also