What Is the Pigeonhole Principle? An Obvious Fact With Startling Consequences
By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.
If there are more items than containers, some container holds more than one item. The statement is so obvious that it seems unusable, and it proves things that are not obvious at all, which is what makes it worth knowing.
The statement
The principle says that placing more objects than containers guarantees at least one container receives more than one object, and the generalised form says that placing a number of objects into containers guarantees at least one container receives at least the number of objects divided by the number of containers, rounded up. Both are immediate consequences of counting and neither requires any construction. The power comes from what the statement does not require, since it establishes that something exists without identifying it, without constructing it and without any information about how the objects were distributed. That makes it a pure existence argument, and the difficulty in using it is never the principle but choosing what the objects and containers should be, which is the creative step and the reason the same trivial fact yields such varied results.
What it proves
The results range from party tricks to genuine mathematics:
- •In any group of thirteen people, two share a birth month, since there are twelve months
- •In any city of reasonable size, two people have exactly the same number of hairs on their head, since hair counts are bounded well below population
- •Any five points placed in a unit square include two within a fixed distance of each other, by dividing the square into four regions
- •Any sequence of more than a certain length contains a monotonic subsequence, which is a classical result proved this way
- •In any group of six people, three are mutual acquaintances or three are mutual strangers, which is the starting point of a whole branch of combinatorics
- •Any set of integers of sufficient size contains two whose difference is divisible by a chosen number, since remainders form the containers
How to use it
Applying it is a matter of identifying the right correspondence and the process is consistent. Decide what the objects are, which is usually the things the problem gives you. Decide what the containers are, which is the creative part and is usually a set of categories that the objects can be sorted into, frequently defined by a remainder, a region, a property or a count. Verify that there are more objects than containers, or apply the generalised form to get a stronger conclusion. Then read off what it means for two objects to share a container, which is where the actual result appears. The common difficulty is that the containers are rarely obvious and frequently have to be invented, and a problem that looks unrelated becomes straightforward once someone finds the right way to partition it, which is why these arguments look clever afterwards and are hard to find in advance.
The infinite version
Extending the idea to infinite collections produces a result that is genuinely useful and considerably less obvious. If infinitely many objects are placed into finitely many containers, at least one container holds infinitely many, which follows because finitely many finite collections cannot be infinite in total. That version is the workhorse in analysis and combinatorics, where it establishes that an infinite sequence with values from a finite set contains an infinite subsequence taking a single value, which is the starting point for a great many arguments. A related and much deeper result extends this to colourings of infinite structures and forms the basis of an entire area concerned with finding order inside apparent disorder. The general slogan of that field is that complete disorder is impossible, since any sufficiently large structure contains a regular substructure whether anyone arranged for it or not, and the humble counting principle is where the reasoning starts.
Why existence proofs matter
This kind of argument belongs to a broader and philosophically interesting category. A non-constructive proof establishes that something exists without producing it or providing any way to find it, and that distinction has practical and foundational consequences. Practically, knowing a solution exists can justify searching for one, and knowing that two people in a city share a hair count does not help identify them. Foundationally, some mathematicians have objected to non-constructive reasoning and developed approaches in which existence requires construction, which changes what can be proved and has connections to computation, since a constructive proof generally corresponds to an algorithm. The principle here is unobjectionable even to those with such reservations, since the counting involved is finite and explicit. Where the objections bite is in arguments involving infinite collections, where existence claims can be considerably more extravagant.
The takeaway
More objects than containers guarantees a container with more than one, and the generalised form gives a stronger bound. The principle establishes that something exists without identifying or constructing it, which is exactly why it applies so widely. The work is never the principle but choosing what the containers should be, which is why these proofs look obvious afterwards and are hard to find beforehand.