A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

The Pigeonhole Principle

College Depth 74 in the knowledge graph ☐ I know this ☆ Set as goal
60topics build on this
356prerequisites beneath it
See this on the map →
Counting Principles: Addition and Multiplication RulesIntroduction to the Pigeonhole Principle+2 more→→Graph Coloring and the Chromatic NumberPigeonhole Principle and Its Applications
pigeonhole counting existence-proof combinatorics

Core Idea

The pigeonhole principle states that if n+1 or more objects are distributed into n containers, at least one container must hold more than one object. The generalized form says that if kn+1 objects are placed into n containers, some container holds at least k+1 objects. Despite its simplicity, the pigeonhole principle is a powerful non-constructive existence tool used in combinatorics, number theory, and graph theory. Proofs using it often feel surprising because they guarantee something must exist without identifying which instance.

How It's Best Learned

Start with obvious physical examples (socks, birthdays), then move to less obvious applications. The key skill is identifying the 'pigeons' (objects) and 'holes' (categories) in a problem — this requires creative setup and is what makes the principle challenging to apply in novel contexts.

Common Misconceptions

Explainer

The pigeonhole principle is deceptively simple: if you have more pigeons than pigeonholes, at least one pigeonhole must contain more than one pigeon. State it in counting terms: if n + 1 objects are placed into n containers, some container holds at least 2 objects. This is one of the most basic facts imaginable, yet it is the engine behind a surprising number of non-trivial mathematical results.

The reason it's powerful is that it guarantees existence without constructing a witness. From the counting principles you've studied, you know how to count objects. The pigeonhole principle turns a counting inequality into an existence statement: you don't need to find the "crowded" container — you just need to verify the count exceeds the capacity. This is the essence of a non-constructive existence proof, a technique that appears throughout combinatorics, number theory, and analysis.

The key skill is creative setup: identifying what the "pigeons" and "pigeonholes" should be. This mapping is rarely spelled out in the problem. For example: among any 13 people, two must share a birth month (13 people, 12 months). Among any 5 integers, two must have the same remainder when divided by 4 (5 numbers, 4 possible remainders: 0, 1, 2, 3). In both cases, the hard part is choosing the right categories — the month or the remainder mod 4. Once the right map is identified, the conclusion is immediate.

The generalized pigeonhole principle extends the argument: if kn + 1 objects are placed into n containers, some container holds at least k + 1 objects. This lets you prove stronger collisions. If 25 students take a 10-question test, some question was answered the same way by at least 3 students (25 > 2 × 10, so some question has at least 3 identical answers). This generalization is where the principle becomes genuinely useful for problems that require multiple collisions or repeated structure. When you encounter a problem asking you to prove that "some two things share a property" or "something appears at least k times," suspect the pigeonhole principle and start looking for the right containers.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Set Operations: Union, Intersection, and Complement → Proof by Cases → Proving by Cases and Exhaustion → Vacuous Truth and Trivial Cases → Proof by Cases (Proof by Exhaustion) → Mathematical Induction → The Pigeonhole Principle

Longest path: 75 steps · 356 total prerequisite topics

Prerequisites (4)

Leads To (2)