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 moreGraph 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesSet Operations: Union, Intersection, and ComplementProof by CasesProving by Cases and ExhaustionVacuous Truth and Trivial CasesProof by Cases (Proof by Exhaustion)Mathematical InductionThe Pigeonhole Principle

Longest path: 75 steps · 356 total prerequisite topics

Prerequisites (4)

Leads To (2)