Updated: 2026-03-27

Hilbert's Hotel Paradox Explained & Interactive Tool

Overview: This article introduces the interactive "Hilbert's Hotel Paradox" calculator, which explores the fascinating thought experiment about infinity. The paradox describes a hotel with infinitely many rooms, all occupied, yet still able to accommodate new guests—even an infinite number of them—by shifting existing guests to new room numbers. The calculator allows users to simulate different scenarios, demonstrating how countable infinite sets work.

Welcome to the ultimate exploration of Hilbert's Hotel, a thought experiment where a fully occupied hotel with endless rooms still finds space for more guests. How is this possible? The brilliant mathematician David Hilbert devised this paradox to illustrate the counterintuitive nature of infinity.

Demystifying Hilbert's Infinite Hotel Paradox

The Hilbert Hotel paradox is a classic mental exercise designed to probe the curious properties of infinity. Picture a grand hotel with a never-ending sequence of rooms, numbered 1, 2, 3, and so on indefinitely. Now, imagine every single room is occupied by a guest. Common sense suggests there is no vacancy.

However, this is where infinity defies intuition. Despite being completely booked, this hotel can always accept additional guests. The key lies in its infinite capacity; with no final room number, the hotel manager can devise strategies to make space for any number of new arrivals—whether it's one, one hundred, or an infinite multitude.

A Note on Terminology: In this context, "infinitely many" refers to a countably infinite set. The collection of hotel rooms (Set S) is equivalent in size to the set of natural numbers (N = {1, 2, 3, ...}).

Strategies for Accommodating New Guests

We've established the hotel is perpetually "full," yet the manager can always find room. The method for achieving this depends on the specific situation.

Scenario 1: A Finite Number of New Guests

For a limited group of newcomers, the solution is straightforward. The manager instructs every current guest to relocate to a room with a higher number. The shift is equal to the number of new guests arriving. This vacates the lower-numbered rooms, which are then assigned to the new guests.

The formula is:

New Room = Current Room + Number of New Guests

For example, if three new guests arrive, all existing guests move up three rooms (the guest from room 1 goes to room 4, and so on). This frees up rooms 1, 2, and 3 for the newcomers.

Scenario 2: An Infinite Number of New Guests (One Bus)

When a bus carrying an infinite number of passengers arrives, a different tactic is needed. The manager cannot simply shift guests by an infinite amount. Instead, a clever reassignment occurs.

Each current guest is asked to move to the room number that is double their current room number (moving to all even-numbered rooms). Concurrently, each new guest from the bus is assigned to the now-vacant odd-numbered rooms based on their seat number.

The calculations are:

Current Guest's New Room = 2 × (Current Room Number)
New Guest's Room Number = (2 × Seat Number) - 1

Scenario 3: Infinite Buses with Infinite Guests Each

The most complex challenge involves an endless convoy of buses, each with an endless list of passengers. The manager employs the "prime power method."

Current guests are sent to rooms numbered by powers of 2, corresponding to their original room number. New guests are assigned based on their bus and seat number using prime numbers. Each bus is assigned a unique prime number (the first bus gets 3, the next gets 5, etc.). A guest's room is calculated by raising their bus's prime number to the power of their seat number.

Formulas:

Current Guest's New Room = 2^(Current Room Number)
New Guest's Room Number = (Assigned Prime Number for their Bus)^(Seat Number)

This method ensures no room number is repeated, as prime numbers are not multiples of each other. Other mathematical strategies, like interleaving or triangular numbers, can also solve this nested infinity problem.

The Reality of Infinity

Infinity is a well-established mathematical concept, symbolizing something without limit or end. While its physical existence in the universe remains a topic of profound scientific and philosophical debate—especially in cosmology regarding the nature of space and time—it is an indispensable tool for theoretical exploration.

How to Use the Hilbert's Hotel Paradox Calculator

Our calculator is designed to help you, whether you're managing this theoretical hotel or simply curious about infinite logistics. Follow these steps based on your chosen scenario:

  1. Select your desired scenario from the dropdown menu.
  2. For Finitely Many New Guests:
    • Enter the number of new guests and the current room number of a specific guest.
    • The tool will compute and display that guest's new room assignment.
  3. For Infinitely Many New Guests (One Bus):
    • Input the current room number of an existing guest to see their new even-numbered room.
    • Enter the seat number of a new guest to find their assigned odd-numbered room.
  4. For Infinitely Many Buses:
    • Provide the room number of a current guest to see their new room (a power of 2).
    • Enter the bus number and seat number of a new guest. The calculator will determine their room number using prime powers.

Frequently Asked Questions

Can Hilbert's Hotel ever run out of rooms?

No, it cannot. By definition, the hotel has an infinite number of rooms. No matter how many guests are present—even an infinite amount—the hotel's infinite capacity means there is always a systematic way to reassign rooms and accommodate any number of additional guests.

What are transfinite numbers?

Transfinite numbers are mathematical quantities that are infinite but can differ in size. They are infinitely larger than any finite number yet are not "absolutely infinite," as some transfinite numbers can be larger than others. This field, introduced by Georg Cantor, includes transfinite cardinals and ordinals, which help categorize different sizes of infinity.

Where should the guest in room 1397 move if an infinite number of new guests arrive (one bus)?

The guest should relocate to room 2794. To find this, simply double the original room number: New Room Number = 2 × 1397 = 2794. This follows the rule for accommodating a single infinite busload of new arrivals.

Other calculators:

Multilingual calculator