# The Pigeonhole Principle

> More pigeons than holes means at least two must share a hole.

**Field:** Statistics & probability · **Reliability:** Empirical · **Coined:** 1834 · **Named after:** Peter Gustav Lejeune Dirichlet

*Also known as: Dirichlet's box principle*

## What it means

If you put more items into containers than there are containers, at least one container must hold more than one item. More objects than boxes forces sharing. It is simply impossible to give every object its own box.

## How it works

The principle is almost self-evidently true yet powerfully non-constructive: it proves that a collision must exist without identifying which container is crowded or which items collide. That is the source of its power in existence proofs: you establish that something exists without ever exhibiting it. The generalised form sharpens it: with n items in m boxes, some box holds at least the ceiling of n over m.

## Examples

- **Guaranteed birthdays:** Among 367 people at least two must share a birthday, since there are only 366 possible dates: a certainty, unlike the merely probable match at 23.
- **Hairs on heads:** Since a human head has at most about a million hairs and a large city has more people than that, at least two residents must have exactly the same number of hairs.
- **The generalised form:** Distribute more than a multiple of m items among m boxes and some box must hold more than that multiple: the counting version used throughout combinatorics.

## Try it

This entry is interactive: a live calculator.
Open it at https://conyso.com/lawtome/laws/the-pigeonhole-principle/ — free, runs in the browser, sends nothing anywhere.

```
some box holds at least ceil(n / m)
```

- `n` — Items
- `m` — Boxes

## Why it matters

It is one of the most useful tools in combinatorics and computer science, proving that collisions and coincidences are unavoidable (from hash collisions to compression limits) with a one-line argument. Its non-constructive power, guaranteeing existence without location, makes it a favourite in elegant proofs.

## Where it breaks down

It is a proven, elementary theorem with no evidential limitation: it admits no counterexamples and needs no assumptions. Its only genuine constraint is conceptual: it is existence-only, guaranteeing that a collision exists but not where or which items collide, so locating the collision requires additional work. It must also not be confused with the birthday problem: pigeonhole gives a guarantee at 367 people, the birthday problem a probability at 23 (different questions entirely).

## Common misreadings

It tells you a shared category must exist, not which one. It is non-constructive, proving existence without identity. And it is not the birthday problem: the birthday problem is about likelihood at small group sizes, while the pigeonhole principle is a hard guarantee once items exceed categories.

## Origin

Commonly called Dirichlet's box principle after Peter Gustav Lejeune Dirichlet's 1834 use of it under the name 'Schubfachprinzip', though this is a naming convention rather than first discovery: an earlier written statement appears in Jean Leurechon's work of 1622.

## Related

- [The Birthday Problem](https://conyso.com/lawtome/laws/the-birthday-problem/) — kindred

## Sources

- [Pigeonhole principle, Wikipedia. — the statement, the generalised form, the Dirichlet naming, and the Leurechon precedence.](<https://en.wikipedia.org/wiki/Pigeonhole_principle>)
- [Birthday problem, Wikipedia. — the guarantee-versus-probability distinction from the birthday problem.](<https://en.wikipedia.org/wiki/Birthday_problem>)

---
Source: https://conyso.com/lawtome/laws/the-pigeonhole-principle/ · The Law Tome — a sourced index of named laws.
