The Triangle Inequality

Watch the video explainer

Learning goals

  • Prove why two sides of a triangle together exceed its third side
  • Classify positive side triples, distinguishing triangles from flat boundary arrangements
  • Determine strict third-side ranges, including restrictions on variable lengths
  • Compare direct and broken paths using triangle and polygon inequalities

When three sides can close

Two sides of a triangle together are longer than the third side. For lengths 55, 66, and 88, the two shorter rods have a combined length of 1111, leaving room to bend while their free ends still reach the endpoints of the 88-unit base.

Room to bend gives a triangleThe solid upper triangle and dashed lower triangle share base AB. Their corresponding sides have the same stated lengths. The two possible joining points are off the base.ABCC′56568
Lengths 5, 6, and 8 close in two reflected positions. The dashed lower position has the same lengths as the solid upper position.

Now keep the rods of lengths 55 and 66, but use a base of length 1111. The rods meet only when laid along the base. This is a degenerate triangle, a flat boundary arrangement with collinear vertices. An ordinary, nondegenerate triangle has three noncollinear vertices and positive side lengths.

The boundary is flatA solid segment AC and a dashed segment CB meet along the same straight base. A lighter bracket below identifies the full length 11.ACB5611
At equality, the rods meet on the base. There is no triangular region.

With a base of length 1212, even the fully stretched rods leave a gap of 11. Bending them cannot make them reach farther.

Insufficient total length leaves a gapThe base joins A to B. Above it, the solid 5-unit rod and dashed 6-unit rod have separated free ends, with a visible one-unit gap.AB56112
The rods fail to reach even when stretched along the base. This is an attempted assembly, not a triangle.

The triangle inequality says that in every nondegenerate triangle, the sum of any two side lengths is strictly greater than the third. Here ABAB names the length of segment ABAB. For triangle ABCABC:

AB+AC>BC.AB+AC>BC.

Also,

AB+BC>AC.AB+BC>AC.

And,

AC+BC>AB.AC+BC>AB.

Why the inequality is strict

In the previous lesson, a larger angle in one triangle faced a longer side. Equal sides also gave equal opposite angles in an isosceles triangle.

We can turn a sum of two sides into one straight segment by extending a side. That gives a comparison inside one larger triangle.

Two sides together exceed the third side#

First follow a numerical instance. Extend BABA beyond AA to DD, copying ACAC onto ADAD, and join DD to CC. In an instance where angle ACDACD is 35∘35^\circ and angle BCABCA is 50∘50^\circ, the equal sides ADAD and ACAC make angle ADCADC measure 35∘35^\circ too.

Replace a sum by an extended sideB is left of A and D on a horizontal line. C is above A. Triangle ACD is isosceles. The two labeled adjacent angles at C make the larger angle BCD.BADC50°35°
B, A, and D lie in that order. The single ticks mark the copied lengths AC and AD. The dashed segments are auxiliary additions.

The whole angle at CC is

m∠BCD=50∘+35∘.m\angle BCD=50^\circ+35^\circ.

Thus it measures 85∘85^\circ, larger than the 35∘35^\circ angle at DD. In triangle BCDBCD, side BDBD is therefore longer than BCBC. But BDBD consists of BABA followed by a copy of ACAC, giving the desired sum.

Now take any nondegenerate triangle ABCABC. On ray BABA beyond AA, choose DD so that

AD=AC.AD=AC.

The order is B,A,DB,A,D, and CC is off their line. Join DCDC.

Track the extension constructionB, A, and D lie in order on a line. AD and AC have matching ticks. The extension and joining segment are dashed.BADC
The general proof retains the copied lengths and point order, with no special angle measures.

Triangle ACDACD is isosceles, so

m∠ACD=m∠ADC.m\angle ACD=m\angle ADC.

Ray DADA coincides with ray DBDB, so angle ADCADC is angle BDCBDC. Also, ray CACA lies inside angle BCDBCD: the segment from vertex CC to the interior point AA of side BDBD splits that angle. The other part, angle BCABCA, is positive because ABCABC is nondegenerate, so

m∠BCD>m∠ACD.m\angle BCD>m\angle ACD.

Therefore angle BCDBCD is greater than angle BDCBDC. Apply the larger-angle result in triangle BCDBCD:

BD>BC.BD>BC.

Segment addition and the copied length give

BD=BA+AD.BD=BA+AD.

Hence,

BA+AC>BC.BA+AC>BC.

Nothing depended on the numbers 3535 and 5050. The strict step used a positive angle at CC, which every nondegenerate triangle has. Relabeling the vertices proves the other two side-sum inequalities.

Check your understanding

In the extension proof, B, A, and D lie in that order, and AD is a copy of AC. Which fact makes angle BCD strictly larger than angle BDC?

Answer choices

Test a proposed set of lengths

Positive lengths make a triangle exactly when each pair adds to more than the remaining length. To see why lengths passing the test can close, join the two shorter rods at a movable joint. We accept the geometric continuity fact that as the joint turns, the distance between the free ends takes every value from their difference when folded back to their sum when straight. Every distance strictly between those endpoints occurs with a bend. Because both rods are positive, their difference is strictly less than the longer rod. The longest requested length is at least as long as that rod, and passing the longest-side test puts it below their sum. It therefore lies strictly between the endpoints and can be fitted between the free ends.

See the distances between the free endsThree positions of rods AJ of length 4 and JB of length 7 share joint J. Folded, both rods point from J along the same ray and the free ends A and B are 3 units apart. Bent, the free ends are 9 units apart. Straight, J is between A and B and the free ends are 11 units apart.FoldedBentStraight4JB = 7JAB3JAB479AJB4711
The same 4-unit and 7-unit rods join at J in every row. Their free ends A and B are 3 units apart when folded, 9 in this bent position, and 11 when straight. The folded rods overlap along one line.

For a numerical test, first identify a longest length. You need check only whether the other two add to more than that length. The other sums automatically exceed a smaller length because every length is positive.

Worked example 1 Distinguish a triangle, a flat boundary, and a gap

Problem. Classify each proposed side triple as a nondegenerate triangle, a flat boundary arrangement, or an impossible assembly. All lengths are in the same unit.

Case A: 55, 99, 1212.

Case B: 44, 66, 1010.

Case C: 33, 77, 1212.

Solution. Case A: Compare the sum of the two shorter lengths with the longest:

5+9>12.5+9>12.

The lengths make a nondegenerate triangle.

Case B: The comparison is equality:

4+6=10.4+6=10.

The pieces can only meet flat, so they do not make an ordinary triangle.

Case C: The pieces are too short even when stretched straight:

3+7<12.3+7<12.

They cannot close.

See why each classification differsCase A uses lengths 5, 9, and 12 and closes with a bend. Case B uses 4, 6, and 10 and meets flat. Case C uses 3, 7, and 12 and leaves a gap even when straight.Case ACase BCase C591246103712
Case A bends, Case B is flat, and Case C leaves a gap. These drawings illustrate the comparisons in the solution.

The positivity condition matters. A zero or negative proposed side fails before any triangle test. Also, checking an arbitrary pair can miss the problem: lengths 22, 55, and 99 satisfy the comparison of 5+95+9 with 22, but the two shorter lengths cannot span 99.

Check your understanding

Which positive side triple makes a nondegenerate triangle?

Answer choices

Find the whole third-side range

The third-side range lists every possible length for a third side when the other two are fixed. With sides 77 and 1212, the third side must be less than their sum, 1919. It must also be greater than their difference, 55, so the 77-unit side and the proposed third side together exceed the 1212-unit side.

Worked example 2 Keep both strict bounds

Problem. Two sides of a triangle measure 77 centimeters and 1212 centimeters. Find the range of the third side xx, and list the possible integer values.

Solution. The sum comparison gives the upper bound:

x<7+12.x<7+12.

The inequality involving the longest fixed side gives the lower bound:

7+x>12.7+x>12.

The remaining comparison, x+12>7x+12>7, holds automatically for every positive xx.

Together these give

5<x<19.5<x<19.

The integer lengths are 66, 77, 88, 99, 1010, 1111, 1212, 1313, 1414, 1515, 1616, 1717, 1818 centimeters. Neither endpoint belongs: 55 or 1919 would make a flat arrangement.

Keep the full third-side intervalAn interval extends strictly from 5 to 19, with open circles at both endpoints. Possible third-side lengths lie between them.519possible lengths
Open endpoints exclude the two flat boundaries.

For any positive fixed lengths aa and bb, the same three comparisons reduce to

∣a−b∣<x<a+b.|a-b|<x<a+b.

The absolute value means the larger fixed length minus the smaller. If the fixed lengths match, the lower bound is zero, still excluded because a side must be positive.

Worked example 3 Let all three lengths depend on a variable

Problem. Proposed side lengths are 2t+12t+1, t+4t+4, and 88 units. Find every real value of tt for which they make a nondegenerate triangle.

Read the given side lengthsTriangle ABC shows the three named sides. Labels show only the stated lengths and unknowns.ABC8t + 42t + 1
The proposed sides carry expressions in t. A sketch alone cannot validate every value of t.

Solution. Since the longest expression may change, check all three inequalities.

First comparison:

(2t+1)+(t+4)>8.(2t+1)+(t+4)>8.

This simplifies to

t>1.t>1.

Second comparison:

(2t+1)+8>t+4.(2t+1)+8>t+4.

This gives

t>−5.t>-5.

Third comparison:

(t+4)+8>2t+1.(t+4)+8>2t+1.

This gives

t<11.t<11.

All three hold exactly when

1<t<11.1<t<11.

Throughout this interval, all side expressions are positive.

At the lower endpoint, 11, the lengths are 33, 55, and 88, which are flat.

At the upper endpoint, 1111, they are 2323, 1515, and 88, also flat.

Check your understanding

Two sides have lengths 9 and 14 units. What is the complete range of possible third-side lengths x?

Answer choices

Direct segments and broken paths

A broken path is a route made from consecutive straight segments. Between distinct points AA and BB, a two-segment route through a point PP off line ABAB is strictly longer than the direct segment:

AP+PB>AB.AP+PB>AB.

This is the triangle inequality in triangle APBAPB.

If PP is between AA and BB, segment addition gives equality.

If PP is on their line beyond either endpoint, the path doubles back and is longer. Collinearity by itself does not guarantee equality.

Locate the equality and backtracking casesSolid segments show the direct distance. The upper dashed route is longer. The middle row has forward travel A to Q to B and equality. The lower row marks collinear points A, B, P, with P beyond B. A rightward dashed arrow labeled A to P and a leftward dashed arrow labeled P to B show the overshoot traveled in both directions. These arrows are offset below the line for visibility.ABPABQBacktrackingABPA to PP to B
The upper route bends off AB. The middle route travels forward along the segment and ties the direct distance. The lower route passes B and returns from P. Its dashed arrows below the line show travel along that same line.

The same comparison works for any finite number of legs. For instance, if the three legs from AA through BB and CC to DD measure 44, 66, and 88, first replace ABAB and BCBC by ACAC. That replacement cannot increase the length. Then replace ACAC and CDCD by ADAD, giving a direct distance at most 1818.

Shorten the route in two stepsTwo panels use the same representative route A to B to C to D, with AB of length 4, BC of length 6, and CD of length 8. The first panel replaces AB and BC by solid AC. The second replaces the dashed route A to C to D by solid AD. Faint guides preserve the original AB and BC. No derived distance is labeled.1. Replace the first two legs2. Replace the remaining routeABCD468ACABCD468ACAD
This bent 4, 6, 8 route illustrates two shortcuts. Solid segments show each replacement; dashed segments show the route being replaced. In the second panel, faint guides retain the original first two legs. The general bound also allows forward straight routes that give equality.

In general, repeated applications of the two-leg result give

AD≤AB+BC+CD.AD\le AB+BC+CD.

Equality holds exactly when the intermediate points lie on the direct segment in travel order, without backtracking. A turn off the segment or a reversal makes the path longer. We allow the non-strict symbol here because a path may include straight, forward steps.

A polygon inequality compares one side of a closed polygon with all the other sides together. Traveling around those other sides gives a broken path between the chosen side’s endpoints. A nondegenerate polygon cannot have all its vertices on one line, so that route cannot be the same forward straight segment, and its length strictly exceeds the chosen side.

Worked example 4 Bound a polygon side without measuring it

Problem. A nondegenerate quadrilateral ABCDABCD has three consecutive sides of lengths 44, 77, and 66 units, in that order. Give a strict upper bound for side DADA. Explain whether a claimed length of 1717 units is possible.

Compare one side with the route around the othersA is at the lower left, B above it, C at the upper right, and D at the lower right. The three given sides form a dashed route; DA is solid.ABCD476
The three labeled sides form a route from A to D. The fourth side closes that route.

Solution. The route around the other three sides has length

4+7+6=17.4+7+6=17.

The polygon inequality gives

DA<17.DA<17.

A claimed length of 1717 would require the route from AA through BB and CC to DD to lie straight in travel order. That would be flat, so it cannot describe the stated quadrilateral.

Check your understanding

A route goes from A to P to Q to B with positive leg lengths. Which condition makes its total length equal to AB?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

In Book I of Euclid’s Elements, a warning about lengths appears before a construction problem. Proposition 20 proves the triangle inequality. Two propositions later, Euclid asks the reader to construct a triangle from three supplied lengths, but his statement requires each pair to add to more than the third.

The construction draws two circles and uses a meeting point as the new vertex. There is a subtle gap in that old account: why must the circles meet? In his commentary, David Joyce points out that Euclid states the necessary length condition but does not justify that it is sufficient for the intersection. Even an argument that carefully proves its length comparisons can leave a hidden assumption inside its drawing. You can read Proposition 22 and Joyce’s commentary.

Your progress

See all your progress →