Counting, Permutations & Combinations

Pigeonhole Principle Calculator

Find a guaranteed occupancy or the minimum objects needed to force one.

Counting & Combinatorics

Apply the generalized pigeonhole principle

Guaranteed minimum
  1. 1EnterProvide the known values
  2. 2CalculateResults update automatically
  3. 3VerifyReview the details and units
Try an example

At least one box contains

Enter valid values to see the result.

Your entries are calculated in this browser and are not submitted to 365CALCS.COM.

Feedback

Understand the subject

What does the pigeonhole principle guarantee?

The pigeonhole principle proves that crowding forces a repetition or a minimum occupancy, even when you do not know which box receives it.

Use it for guarantees about duplicates, collisions, schedules, and distribution.

The relationship

The counting rule

See the structure

Thirteen objects cannot fit into four boxes with only three each

Worked example

Check the rule with a small case

13 objects in 4 boxes guarantee one box with at least ⌈13 ÷ 4⌉ = 4 objects.

Interpret with care

Choose the right counting model

It proves existence, not which box is crowded or how every object is distributed.

Use the Permutation & Combination Generator when a small case needs to be inspected rather than only counted.

Quick guide

How to use this calculator

  1. Choose the question you need answered.
  2. Enter the number of boxes and either objects or target occupancy.
  3. Read the guaranteed minimum.

Calculation method

Use the generalized pigeonhole bound

Distributing n objects among k boxes guarantees one box contains at least ceiling(n/k). To guarantee at least m objects in one box, k(m−1)+1 objects are sufficient and necessary.

Worked example

Thirteen objects in four boxes

At least one box must contain four objects.

⌈13/4⌉ = 4

Supported inputs

Precision and limits

Discrete domain

Inputs are whole counts. Negative, fractional, grouped, and scientific-notation inputs are rejected.

Exact integers

Results use arbitrary-precision integers and are never rounded. Inputs and output size are bounded to keep the page responsive.