What Is the Probability Three Random Segments Form a Triangle?
At a glance
- 1. Choose two cuts
Take two independent points uniformly at random from the unit interval and sort them.
- 2. Find the lengths
The three segment lengths are the first cut, the gap between cuts, and the distance from the second cut to one.
- 3. Apply the triangle test
Three positive lengths form a triangle exactly when each length is less than one-half.
- 4. Compute the probability
The probability that any one length is at least one-half is three-quarters in total, leaving one-quarter.
Suppose you choose two points independently and uniformly from the unit interval, then cut at those points. The three resulting lengths add to 1. They form the sides of a nondegenerate triangle with probability 1/4.
The key is that a triangle can be formed exactly when its longest side is shorter than half the total length. The calculation then reduces to finding the chance that none of the three pieces is at least .
The triangle condition
Three positive lengths , , and form a triangle if and only if each is shorter than the sum of the other two. Since , the condition for is
which is equivalent to . Applying the same argument to the other lengths gives the full condition:
If one piece is exactly half the stick, the three lengths make a degenerate, flat triangle rather than a proper triangle. This equality has probability zero for random continuous cut points, so using “less than” or “less than or equal to” does not change the probability.
Calculate the probability
Let the two cut points, after sorting, be and . The lengths are
These lengths are exchangeable: each has the same marginal distribution. For example, the chance that the first piece is at least half is
The same probability, , applies to each of the other two pieces. These three events cannot overlap, except at boundary cases of probability zero: two pieces cannot both be at least half while the third has positive length. Therefore,
The pieces form a triangle when none is at least half, so
A geometric way to see the result
The length triples satisfy and have nonnegative coordinates. They are uniformly distributed over a triangular region in the plane. The full region has area when described using coordinates , with .
The outcomes that fail the triangle condition fall into three corner regions: , , or . Each has area , so their combined area is . The remaining area is . Dividing by the full area gives
This area argument is another expression of the same probability calculation: uniform cut points produce a uniform distribution over the possible length triples.
Worked example
Imagine the two cut points land at and . The pieces have lengths
The longest piece is , which is less than , so these pieces can form a triangle. For instance, the longest-side test is .
If instead the cuts land at and , the pieces are , , and . The piece of length is longer than the other two combined, so no triangle is possible.
Common mistakes
- Checking only whether the cuts are distinct. Distinct cut points create three positive pieces, but some may still be too long to form a triangle.
- Using the condition that every piece is less than one-third. Equal thirds are not required. A piece can be larger than one-third and still form a triangle, provided it is shorter than one-half.
- Treating the three failure events as overlapping. Two pieces cannot both be at least half when all three lengths are positive, so their probabilities can be added directly.
- Ignoring how the cuts are chosen. The answer assumes two independent uniform points on the original interval. A different cutting procedure—for example, choosing a location in one piece after the first cut—can produce a different distribution and probability.
The result is a classic example of geometric probability: a simple triangle condition becomes a region of possible segment lengths, and the desired probability is the fraction of that region that satisfies the condition.
References
- A First Course in Probability — Sheldon Ross
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.