Geometry

Triangle Inequality Theorem: How to Test Sides and Find the Third Side

Three lengths aa, bb and cc form a triangle exactly when each is less than the sum of the other two: a+b>ca + b > c, a+c>ba + c > b and b+c>ab + c > a. In practice, only the longest side needs checking.

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

Try it with your numbers

Show every step

When two sides are known, the same rule traps the third side between their difference and their sum. That gives ∣a−b∣<c<a+b|a - b| < c < a + b, which is the form most homework questions ask for.

What does the triangle inequality theorem say?

The theorem says a triangle cannot exist unless every side is shorter than the other two sides added together. It applies to every kind of triangle, whether it is scalene, isosceles, equilateral, acute or obtuse (see types of triangles for the full list). It also works for any positive real lengths, so decimals, fractions and radicals are all fair game.

The three inequalities look like three separate tests, but they collapse into one. Suppose cc is the longest side. Then a≤ca \le c and b≤cb \le c, so a+c>ba + c > b and b+c>ab + c > a are guaranteed as long as the lengths are positive. Only a+b>ca + b > c can fail. That is why the one-step test works: add the two shorter sides and compare the sum with the longest.

The inequality is strict, and that single detail costs more points than any other. If a+b=ca + b = c, the short sides lie end to end along the long one, and the shape is a flat segment with no interior. Once three lengths pass the test, the SSS rule in triangle congruence tells you they build exactly one triangle shape, up to flipping and moving it.

Why is the triangle inequality theorem true?

The one clean idea: the straight segment is the shortest route between two points. Going from BB to CC directly is one straight segment. Going from BB to AA and then from AA to CC is a detour, and a detour can only tie the direct route when AA sits exactly on segment BCBC, which is the flat case.

The two-route picture

Side BCBC is the direct route. Sides BABA and ACAC together are the detour through AA. The theorem says BA+AC>BCBA + AC > BC every time AA is off the line.

A short proof makes that rigorous. In triangle ABCABC, extend side BABA past AA to a point DD so that AD=ACAD = AC. Then BD=BA+ACBD = BA + AC. Triangle ACDACD is isosceles, so ∠ACD=∠ADC\angle ACD = \angle ADC. Angle BCDBCD contains angle ACDACD plus angle BCABCA, so ∠BCD>∠ACD=∠BDC\angle BCD > \angle ACD = \angle BDC.

In triangle BCDBCD, the larger angle sits opposite the longer side, so BD>BCBD > BC. Replacing BDBD with BA+ACBA + AC gives BA+AC>BCBA + AC > BC, which is the theorem. The step “larger angle faces the longer side” itself rests on the exterior angle theorem, so the whole result hangs together with angle facts you already know.

Quick check

Can a triangle have sides 55, 55 and 1010?

How do you tell if three lengths make a triangle?

Use the same three moves every time:

  1. Find the longest of the three lengths.
  2. Add the other two.
  3. Compare: if the sum is strictly greater than the longest, a triangle exists. If it is equal or smaller, it does not.

Quick cases: 7,10,187, 10, 18 fails because 7+10=17<187 + 10 = 17 < 18. The lengths 4,4,84, 4, 8 fail because 4+4=84 + 4 = 8, which is a tie and ties do not count. The lengths 4.1,3.5,7.54.1, 3.5, 7.5 pass because 4.1+3.5=7.6>7.54.1 + 3.5 = 7.6 > 7.5, and the margin is only 0.10.1, which is why you should compute rather than eyeball.

Example 1. Do 12\frac{1}{2}, 13\frac{1}{3} and 34\frac{3}{4} form a triangle?

Scaling every length by the same positive number cannot change the answer, so clear the fractions by multiplying by 1212:

12⋅12=6,13⋅12=4,34⋅12=9.\tfrac{1}{2}\cdot 12 = 6,\qquad \tfrac{1}{3}\cdot 12 = 4,\qquad \tfrac{3}{4}\cdot 12 = 9.

The longest is 99, and 6+4=10>96 + 4 = 10 > 9. So yes, a triangle exists. Check in the original units: 12+13=56\frac{1}{2} + \frac{1}{3} = \frac{5}{6} and 34=912\frac{3}{4} = \frac{9}{12}, while 56=1012\frac{5}{6} = \frac{10}{12}, so 1012>912\frac{10}{12} > \frac{9}{12} confirms it.

How do you find the possible range of the third side?

Sides 9 and 14 laid flat give third side 23 or 5, the excluded limits
Stretching the 9 straight out gives 23, and folding it back gives 5; both are flat, so the true range excludes them.

Start with two known sides aa and bb, with a≥ba \ge b, and call the unknown side cc. The three inequalities give c<a+bc < a + b, c>a−bc > a - b and c>b−ac > b - a. The last one is negative or zero, so it adds nothing. Combined:

a−b<c<a+b.a - b < c < a + b.

Writing ∣a−b∣|a - b| covers either order. The bounds themselves are never allowed, because they produce the flat case.

Example 2. Two sides of a triangle are 99 and 1414. Find the range of the third side, the number of whole-number lengths, and the range of the perimeter.

14−9<c<14+9⇒5<c<23.14 - 9 < c < 14 + 9 \quad\Rightarrow\quad 5 < c < 23.

Whole numbers run from 66 to 2222, and 22−6+1=1722 - 6 + 1 = 17 values. The perimeter is 9+14+c=23+c9 + 14 + c = 23 + c, so adding 2323 to each bound gives 28<P<4628 < P < 46.

Try this: Two sides are 66 and 1515. Write the range for the third side, then count the whole-number lengths. (Check: you should get 9<c<219 < c < 21 and 1111 values.)

An isosceles triangle adds a trap. If the sides are 55 and 1212 and you are told the triangle is isosceles, the repeated side could be 55 or 1212. Test both: 5,5,125, 5, 12 fails since 10<1210 < 12, while 5,12,125, 12, 12 passes. Only one option survives, and the triangle is 5,12,125, 12, 12.

Quick check

An isosceles triangle has two sides of lengths 44 and 99. What is its perimeter?

How do you solve triangle inequality problems with variables?

When the sides contain xx, write all three inequalities, solve each one, and keep only the values that satisfy all of them. Do not forget that every side must also be positive, since a negative length is meaningless. Often the positivity condition is already implied, but not always, so it is worth a glance.

Example 3. The sides of a triangle are xx, x+3x + 3 and 3x−13x - 1. Find all possible values of xx.

Step 1, the first pair against the third side:

x+(x+3)>3x−1  ⇒  2x+3>3x−1  ⇒  x<4.x + (x + 3) > 3x - 1 \;\Rightarrow\; 2x + 3 > 3x - 1 \;\Rightarrow\; x < 4.

Step 2, the first and third against the second:

x+(3x−1)>x+3  ⇒  4x−1>x+3  ⇒  x>43.x + (3x - 1) > x + 3 \;\Rightarrow\; 4x - 1 > x + 3 \;\Rightarrow\; x > \tfrac{4}{3}.

Step 3, the second and third against the first:

(x+3)+(3x−1)>x  ⇒  4x+2>x  ⇒  x>−23.(x + 3) + (3x - 1) > x \;\Rightarrow\; 4x + 2 > x \;\Rightarrow\; x > -\tfrac{2}{3}.

Step 4, positivity: x>0x > 0 and 3x−1>03x - 1 > 0 gives x>13x > \frac{1}{3}. The strongest lower bound is 43\frac{4}{3} and the strongest upper bound is 44, so

43<x<4.\tfrac{4}{3} < x < 4.

Test x=2x = 2: the sides are 2,5,52, 5, 5, and 2+5>52 + 5 > 5 passes. At the edge x=4x = 4 the sides are 4,7,114, 7, 11 and 4+7=114 + 7 = 11, flat, so 44 is rightly excluded.

How does the triangle inequality connect to right triangles?

The triangle inequality controls how long sides can be. The Pythagorean theorem controls the exact shape once an angle is 90∘90^\circ. For a right triangle with legs aa, bb and hypotenuse cc, the inequality is automatic:

(a+b)2=a2+b2+2ab=c2+2ab>c2  ⇒  a+b>c.(a + b)^2 = a^2 + b^2 + 2ab = c^2 + 2ab > c^2 \;\Rightarrow\; a + b > c.

You can go further and use c2c^2 to classify a triangle once the sides pass the first test. Let cc be the longest side.

Compare c2c^2 with a2+b2a^2 + b^2 Triangle type
c2<a2+b2c^2 < a^2 + b^2 acute
c2=a2+b2c^2 = a^2 + b^2 right
c2>a2+b2c^2 > a^2 + b^2 obtuse

For 6,8,116, 8, 11: first 6+8=14>116 + 8 = 14 > 11, so a triangle exists. Then 62+82=100<121=1126^2 + 8^2 = 100 < 121 = 11^2, so it is obtuse. For 5,12,135, 12, 13 you get 25+144=16925 + 144 = 169, a right triangle, and one of the standard Pythagorean triples. The classification only means something after the triangle inequality has passed.

Flat triangles have zero area

For sides 3,4,73, 4, 7, the semi-perimeter is s=7s = 7, so the factor s−c=0s - c = 0 in Heron's formula and the area is 00.

That card connects to Heron’s formula: its square root factors s−as - a, s−bs - b, s−cs - c are all positive exactly when the triangle inequality holds. It also fits the idea behind the area of a triangle: in the flat case the height shrinks to nothing.

Where does the triangle inequality theorem show up in real life?

Any time a route has a detour, the inequality is at work. A GPS or map app relies on it: the direct distance between two places can never exceed the length of a trip through a third place. Network and shipping software uses it to prune routes that cannot be shortest, and surveyors use it to sanity check three measured distances before drawing a plot.

In algebra, the same idea appears with absolute values: ∣x+y∣≤∣x∣+∣y∣|x + y| \le |x| + |y|. Here equality is allowed, because numbers can lie on the same side of zero, which is the one-dimensional version of the flat case. A mirror form, ∣∣x∣−∣y∣∣≤∣x−y∣\big||x| - |y|\big| \le |x - y|, gives the lower bound that matches the “difference” side of our third-side range.

It also extends to every polygon. In any polygon, the longest side is shorter than the sum of all the others, which is the quick test for whether four given lengths can build a quadrilateral. Angle totals in the interior angles of a polygon tell you the shape’s angles, but only this length rule tells you whether the shape can close at all.

Quick check

Check ∣x+y∣≤∣x∣+∣y∣|x + y| \le |x| + |y| for x=−5x = -5 and y=2y = 2.

How can you check a triangle inequality answer quickly?

Three habits catch nearly every error:

  • Plug in the endpoints. At either bound of your range the sides should make a flat triangle (a sum that exactly equals the third side). If they do not, an arithmetic slip happened.
  • Use a known triangle. Test your method on 3,4,53, 4, 5: 3+4=7>53 + 4 = 7 > 5 passes, and the range for sides 33 and 44 comes out as 1<c<71 < c < 7, which contains 55.
  • Scale down large numbers. Dividing all lengths by a common factor keeps the answer unchanged, which is the idea behind similar triangles.

Try it on 150,200,360150, 200, 360. Divide by 5050 to get 3,4,7.23, 4, 7.2. Since 3+4=7<7.23 + 4 = 7 < 7.2, no triangle exists, and no heavy arithmetic was needed. To build the next skill, the Pythagorean theorem practice problems pair well with this topic, because many problems there start by checking that the sides can form a triangle at all.

One last habit: read the question for words like “possible”, “integer” and “isosceles”. Each one narrows the range in a different way, and most lost points come from answering a slightly easier question than the one asked.

Practice problems

0 of 5 solved

  1. Do the lengths 88, 99 and 1515 form a triangle?

  2. Do the lengths 66, 77 and 1414 form a triangle?

  3. Two sides of a triangle measure 77 and 1212. Between which values must the third side xx lie?

  4. Two sides of a triangle measure 44 and 1111. How many whole-number lengths are possible for the third side?

  5. The sides of a triangle are xx, x+5x + 5 and 4x−14x - 1. Find all possible values of xx.

Common questions

What is the triangle inequality theorem in simple words?

The sum of any two sides of a triangle must be greater than the third side. If two short sides together cannot beat the long side, they cannot meet to close the shape.

Can the sum of two sides equal the third side?

No. If a+b=ca + b = c, the three points lie on one straight line and the triangle is flat with zero area. The inequality must be strict for a real triangle.

How do you find the range of the third side of a triangle?

Subtract the two known sides to get the lower bound and add them to get the upper bound. For sides aa and bb, the third side cc satisfies ∣a−b∣<c<a+b|a - b| < c < a + b.

Do you have to check all three inequalities?

No. Add the two shorter sides and compare the sum with the longest side. If that one passes, the other two pass automatically.

Does the triangle inequality theorem work for right triangles?

Yes, it applies to every triangle. In a right triangle with legs aa, bb and hypotenuse cc, it always holds because (a+b)2=c2+2ab(a+b)^2 = c^2 + 2ab, which is larger than c2c^2.

Is the triangle inequality theorem the same as the Pythagorean theorem?

No. The Pythagorean theorem gives an exact relationship for right triangles only. The triangle inequality gives a bound that every triangle obeys.

Up next