Skip to content
OneKitly

The Pigeonhole Principle Proves a Thing Exists Without Finding It

Published 10/16/2026 · 3 min read · Everyday calculators

Lena Hoffmann

Lena Hoffmann — Science & education writer at OneKitly

Mathematics · Physics

Checked against 2 sources

View profile →
In short

Put more items than containers and at least one container holds more than one item — the whole principle, and the reason it is taught to children and used by mathematicians. The quantitative version is ⌈N ÷ M⌉: ten items in three containers guarantee four in the fullest one, whatever anybody does with them. Turn it around and the question becomes how many items force a target: to guarantee four in one container you need M·(k−1)+1 = 3·3+1 = 10, exactly the number we started with. Applied to birthdays, 366 possible dates mean 367 people guarantee that two share one. What none of these statements does is identify the container or the pair — the principle proves existence and stops there.

Ten items in three containers force four into one of them. 367 people force a shared birthday. Neither statement tells you which container or which pair.

Certainty at 367, a coin flip at 23

The gap between what is guaranteed and what is likely is enormous here, and it is the reason the birthday problem surprises people. Twenty-three people already give a 50.7 per cent chance that two share a date, and fifty-seven push it to 99 per cent — yet certainty still needs 367, because a single arrangement in which all birthdays differ remains possible right up to that point. The pigeonhole principle speaks only about the guaranteed column and is silent about the other one. Reaching for it when you wanted a probability produces a true statement that is useless, and reaching for probability when you needed a guarantee produces a claim that fails on the one arrangement you did not consider.

Existence proofs that hide the answer

A hash function that turns any file into a fixed number of bits has more possible inputs than outputs, so collisions must exist — two different files with the same hash — and the pigeonhole principle proves it in one line. Finding one is another matter entirely, and the practical security of a hash rests on that gap: everyone knows collisions are there, and for a sound function nobody can produce one. The same shape appears wherever a counting argument is available: it settles whether something is possible and leaves the search untouched. That is a feature when you need to know that a search is not futile, and a frustration when you expected a location.

Guaranteed, not probable
Items and containersGuaranteed in the fullestItems to force that
10 in 3410
367 in 3662367

Worked with our own calculator

Pigeonhole principle calculator

Given

Items N
5
Containers M
2
Target k per container
1

Result

Guaranteed max in fullest container ⌈N/M⌉
3
Items needed to force k in one: M·(k−1)+1
1

These figures are produced by the calculator below, not typed in by hand — they are recomputed whenever the tool changes.

Run it on your own figures →

Frequently asked questions

Why 366 and not 365?
Because the 29th of February is a possible birthday and the principle has to survive the worst case. Using 365 containers would give a guarantee of 366 people that fails for a group in which someone was born on a leap day, and a guarantee that fails is not a guarantee. This is the characteristic discipline of the principle: every count has to be the number of containers that could conceivably be used, not the number typically used, and any argument built on the typical case collapses on exactly the example someone will produce to test it.
Is there a version for uneven containers?
Yes, and it is the same counting argument written more carefully. If each container has its own capacity, the total capacity is what matters: exceed the sum and some container is over its own limit, though the principle still will not say which. There is also a probabilistic cousin, used when the items are not placed adversarially but at random, and it gives much smaller thresholds — the birthday problem is exactly that cousin, and the distance between 23 and 367 is a good measure of how much the assumption of randomness buys you.

Articles you may find interesting

All guides →

Related tools

Sources

Spotted a mistake in this article?