Maths & numbers

Pigeonhole minimum guaranteed occupancy calculator

Find the minimum count guaranteed in at least one box regardless of the allocation.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

This is a guarantee for one box. The count in a particular box can be much smaller.

THE FORMULAceil(objects / boxes)

A worked example

25 objects in six boxes force at least one box to contain five objects.

Good to know

Each object belongs to one box.

Read the result

Find the minimum count guaranteed in at least one box regardless of the allocation.

The primary result is labeled “Guaranteed occupancy”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

Each object belongs to one box.

For a related exercise, try the greatest common divisor.

A few questions, answered

How can I check the default inputs by hand?

25 objects in six boxes force at least one box to contain five objects.

Which rule does this calculator apply?

ceil(objects / boxes)

Find your calculator

Start typing to explore the library.