Mathematics · Infinity · Paradoxes
Hilbert’s Hotel
Every room is full, and there is still room for one more. Then for infinitely many more. Then, one night, a coach arrives that no infinite hotel can take. The story of the strangest building in mathematics, and of the man who proved that infinity comes in sizes.
1925
the January Hilbert first told the story, in a lecture at Göttingen
0
empty rooms, before and after every new arrival
ℵ₀
aleph-null: the number of rooms, and of every guest the hotel can take
1
coach it can never fit, however clever the night clerk

The night clerk's problem
A full hotel, and one more guest
Imagine a hotel with infinitely many rooms. Not a very large number of rooms: infinitely many. Room 1, room 2, room 3 and so on along a corridor that never ends. Tonight every one of them is taken. The sign outside says No vacancies, and it is telling the truth.
Late in the evening a traveller comes in from the rain and asks for a room. In any hotel you have ever stayed in, the answer would be a polite apology. Here the night clerk picks up the microphone and makes an announcement to every room at once: would the guest in room n please move to room n + 1.
The guest in room 1 carries their bags into room 2. The guest in room 2 moves to room 3. The guest in room 1,000 moves to room 1,001, and the guest in room one billion moves one door down as well. Nobody is left in the corridor, because every room has a next room: there is no last door for anyone to fall out of. When the shuffling stops, every guest has a room, and room 1 is empty. The traveller takes the key.
Nothing was built. No guest was made to share. The hotel was full before and it is full again now, with one more guest in it than before. Try it yourself.
Watch it · the night clerk’s problem
Every room is taken. Make room anyway.
Press the button when the newcomers are at the door, and watch every guest move at once.
If that feels like cheating, sit with it for a moment, because the feeling is the point. Our intuitions about “full” and “more” were built on finite things: chairs at a table, seats on a bus, coins in a purse. In a finite hotel, full means no room for anyone else, and moving everyone up a room would push the last guest out into the street. The infinite hotel has no last guest. Every rule we learned about counting assumed there was one.
The story is known as Hilbert’s Hotel, or Hilbert’s paradox of the Grand Hotel, after the great German mathematician David Hilbert, who told it to his students in Göttingen a century ago. It is not really a paradox in the sense of a contradiction. Nothing in it is inconsistent. It is what logicians call a veridical paradox: a result that sounds absurd and turns out to be true. And it is the friendliest door ever made into one of the deepest ideas in mathematics.
Later the same night
A coach with infinitely many seats
An hour later a coach pulls up outside. It has infinitely many seats, numbered 1, 2, 3, …, and every seat has a passenger who wants a room. Moving everyone one door down will not do now: that frees a single room, and doing it again and again would take forever, with the coach still waiting at the kerb.
The clerk has a better announcement: would the guest in room n please move to room 2n. The guest in room 1 goes to room 2, the guest in room 2 to room 4, room 3 to room 6, room 100 to room 200. Every guest still has a room of their own, since no two numbers have the same double. But now every guest is in an even-numbered room, and every odd-numbered room, 1, 3, 5, 7, …, is empty. There are infinitely many of those: exactly one for each seat on the coach. The passenger in seat k goes to room 2k − 1. Switch to One coach in the panel above and watch the odd rooms open up.
Pause on what has happened. The even numbers are only half of the whole numbers, surely, and the odd numbers the other half. Yet the guests who filled the whole hotel now fit exactly into the even rooms, with not one room to spare and nobody left over. There are, in the only sense that a hotel cares about, exactly as many even numbers as whole numbers. One infinite crowd has been matched up perfectly with a part of itself.
An infinite collection can be matched, one to one, with a part of itself. That is not a curiosity of infinity. It is what infinity is.
The lesson of the second coach
Towards morning
Infinitely many coaches, infinitely full
Near dawn the clerk looks up and sees the worst possible sight: a line of coaches stretching to the horizon. Coach 1, coach 2, coach 3, and so on forever, each with infinitely many seats, all occupied. Infinitely many infinities of tired people, all wanting rooms in a hotel that is already full.
It can still be done. One famous way, first printed in a story by the Soviet mathematician Naum Vilenkin that we will meet in a moment, uses prime numbers: the guests already staying move to the powers of 2 (room n to room 2n), the passengers of coach 1 to the powers of 3, coach 2 to the powers of 5, and so on through the primes. Since a power of one prime is never a power of another, no two people ever collide. It works, though it leaves most rooms empty and hands out room numbers with hundreds of digits.
There is a tidier way, the one that wins the prize in Vilenkin’s story, and it carries the idea Georg Cantor and Richard Dedekind used in the 1870s for a much more serious purpose. Write all the guests in a table: the hotel’s own guests in the first row, coach 1 in the second, coach 2 in the third, each row running off to the right forever. Then walk through the table along its short diagonals, corner to corner, and hand out room numbers in the order you meet people. Each diagonal is finite, so the walk never gets stuck. Every guest, in any seat of any coach, is reached after some finite number of steps, and so gets a finite room number. Nobody is skipped, and no room is wasted.
Try it · Cantor’s diagonal walk
An infinite table, walked one short diagonal at a time.
Each short diagonal is finite, so every guest, in any seat of any coach, is reached at some finite step and gets a finite room number.
Now switch the table to Every fraction. Put 1/1, 2/1, 3/1, … in the first row, 1/2, 2/2, 3/2, … in the second, and so on. Every positive fraction appears somewhere in this table, many of them more than once (2/4 is just 1/2 again, so we skip it). The same diagonal walk lists them all. That means something Cantor, writing to Dedekind in November 1873, called “not hard to show”, and that still astonishes everyone who meets it: there are no more fractions than there are whole numbers. Between any two fractions, however close, there are infinitely many more, and yet the whole dense swarm of them can be lined up, first, second, third, and given rooms in Hilbert’s hotel.
An infinite set that can be lined up like this, so that every member gets a finite position number, is called countable. The whole numbers are countable by definition. So are the even numbers, the integers, the fractions, and, Cantor showed, even the algebraic numbers such as √2 and the cube root of 7, every number that solves an equation with whole-number coefficients. They are all the same size. Cantor gave that size a name, taken from the first letter of the Hebrew alphabet: ℵ₀, aleph-null.
By now you may suspect that the hotel can take anyone, that every infinity is just ℵ₀ again with a different costume on. Keep that suspicion. Hilbert’s hotel is about to meet a coach it cannot hold. But first, where did the hotel come from?
Göttingen · winter 1924–25
The lecture that was never published
David Hilbert was born in East Prussia in 1862, in Königsberg by his own account, though some records name the nearby town of Wehlau, and by the 1920s was the most influential mathematician in the world. Göttingen, the small university town where he had taught since 1895, was the capital of mathematics, and students came from every continent to sit in his lectures. In 1900, in Paris, he had set out the 23 problems that would shape the next century, and the very first of them was a question about infinity.
In the winter semester of 1924–25 he gave a lecture course for a general audience called Über das Unendliche, On the Infinite. In one lecture in January 1925, to make vivid how strange infinite collections are, he described a hotel with infinitely many rooms, every one of them occupied, and showed how it could still take one new guest, then any finite number, and then infinitely many: the guest in room n moves to room 2n. In a world with infinitely many houses and occupants, he concluded, there will be no homeless. For good measure he made the same point with an infinite dance party at which one more lady arrives. His assistant Lothar Nordheim wrote the lectures up, and the notes went into the archive. They would not be printed for almost ninety years.
For decades nobody knew exactly where the story came from. It spread the way good stories do, from lecture hall to lecture hall. In 1947 the physicist George Gamow, best known for his work on the early universe, put it into his bestselling popular book One Two Three… Infinity, and credited it to Hilbert with a wink. A footnote gave the source as “the unpublished, and even never written, but widely circulating volume: The Complete Collection of Hilbert Stories by R. Courant.” Gamow’s hotel takes one guest and then infinitely many, exactly as Hilbert’s did, and it carried the story to millions of readers. Writers kept adding floors: the coach, the infinitely many coaches, guests checking out. The boldest addition came in 1965, when Naum Vilenkin, in his popular book Stories about Sets, sent Ion the Quiet, the space traveller of the Polish writer Stanisław Lem, to the Hotel Cosmos, an infinite hotel that wandering builders had raised across almost every galaxy, full to the last room with delegates to a congress of cosmozoologists. There, for the first time in print, infinitely many full hotels move into one. In a footnote Vilenkin asked Lem to forgive his clumsy attempt at imitation. The pastiche was so convincing that anthologies went on printing it as Lem’s own work for decades.
Nordheim’s notes were finally printed in 2013, in a volume of Hilbert’s lectures on the foundations of mathematics. A year later the historian of science Helge Kragh, pointed to the passage by a colleague, showed that the hotel really was Hilbert’s, and how modestly he had told it: a few paragraphs, the single guest and the infinite crowd, offered as an illustration and then left behind. When Hilbert turned the course into a public address that June, the hotel was one of the examples he left out. A throwaway example in a lecture became one of the most famous thought experiments in mathematics.

Hilbert did not tell the story to amuse. He told it because, for him, the infinite was the most serious matter in mathematics, the place where its foundations were being fought over. To see why, the story has to go back three centuries, to an old man under house arrest outside Florence.
Arcetri, 1638 · Braunschweig, 1888
Galileo’s squares and Dedekind’s definition
In 1638, confined to his villa at Arcetri after his trial, Galileo Galilei published his last great book, the Discourses on Two New Sciences. On the first day of its imaginary conversation, his spokesman Salviati raises a puzzle. Some numbers are perfect squares: 1, 4, 9, 16, 25. Most are not. Clearly, then, there are more numbers than squares. And yet every number has exactly one square, and every square comes from exactly one number. Pair them off, 1 with 1, 2 with 4, 3 with 9, and neither side ever runs out. So there are just as many squares as numbers.
Galileo’s puzzle, drawn
Two New Sciences · 1638
Paired one to one, every number has its own square and every square its own number. Counted on the line, only ten of the first hundred numbers are squares, one in a thousand of the first million. Both are true.
Galileo’s conclusion was cautious and wise. The words “equal”, “greater” and “less”, he decided, simply do not apply to infinite quantities, only to finite ones. Infinity was not a number to be compared. Better to step back from the edge.
Gli attributi di eguale, maggiore e minore non aver luogo ne gl'infiniti, ma solo nelle quantità terminate.
The attributes equal, greater and less have no place among infinite quantities, but only among finite ones.
Galileo, Discourses on Two New Sciences, First Day, 1638
For more than two centuries most mathematicians agreed. Infinity was a direction, not a destination; a process that goes on without end, not a finished collection you could hold. That distinction is far older than Galileo. Aristotle had drawn it: the potential infinite, like the counting numbers that can always be continued, is acceptable; an actual infinite, a completed infinite whole, is not. Even Gauss, in 1831, protested against using an infinite quantity as something completed.
The Bohemian priest and mathematician Bernard Bolzano was braver. His little book Paradoxes of the Infinite, published in 1851, three years after his death, took actual infinite collections seriously and noticed that an infinite set could be matched with a part of itself. He still would not accept that such a matching proved the two collections equally many. It was Richard Dedekind, a quiet professor in Braunschweig, who turned the strangeness into a definition. In his 1888 essay Was sind und was sollen die Zahlen?, What are numbers and what should they be?, he turned the paradox around: “A system S is called infinite if it is similar to a proper part of itself.” He had sent the definition to Cantor six years earlier, in September 1882.
Read that again with the hotel in mind. Dedekind’s definition is Hilbert’s hotel. A hotel that can always take one more guest without anyone leaving is exactly a set that matches up with a part of itself. Galileo’s puzzle was not a sign that something had gone wrong. It was the defining feature of the thing he was looking at. The question was no longer whether infinite collections behave strangely. It was what else they might do. And for that, mathematics needed someone willing to count past infinity.


Halle · 1845–1918
The man who counted past infinity
Georg Cantor was born in Saint Petersburg in 1845, to a Danish-born merchant father and a musical mother, and moved to Germany as a boy. He studied in Zurich and Berlin, and spent his whole working life at the University of Halle, a respectable institution but not the post in Berlin he had hoped for. He was a devout Lutheran, a lover of music and Shakespeare, a man of enormous energy, and he did something no one before him had dared: he treated infinite collections as finished, real objects and asked how big they were.
His method was the hotel’s method. Two collections are the same size, he said, if their members can be paired off one to one with none left over, exactly as you can tell that a theatre is full without counting the seats, by seeing that every seat has one person and every person one seat. Applied to finite sets, this is just counting. Applied to infinite sets, it produces Galileo’s paradox at every turn, and Cantor embraced it.
In 1874, in a short paper with a dull title, he published two results. The first was that the algebraic numbers are countable: they can be listed, and would all fit in Hilbert’s hotel. The second was that the real numbers, all the points on a line, cannot be listed. However you try, some point is always missed. For the first time someone had shown that there are different sizes of infinity.
Three years later he went further and found something that disturbed even him. The points of a square, he showed, can be matched one to one with the points of a single line segment. A plane has no more points than a line. He sent the proof to Dedekind and waited anxiously for a verdict. In a letter dated 29 June 1877, pressing his friend to check it, he wrote the most famous sentence of his career, in French, as if German would not do. As long as Dedekind had not agreed with him, he said, he could only say:
Je le vois, mais je ne le crois pas.
I see it, but I don't believe it.
Cantor to Dedekind, 29 June 1877


Not everyone was delighted. The most powerful opponent was Leopold Kronecker in Berlin, an important mathematician who believed that mathematics should deal only with objects that could be constructed in finitely many steps from the whole numbers. To him, Cantor’s completed infinities were not mathematics at all. His creed is remembered in one line from a lecture he gave in Berlin in 1886, known only because Heinrich Weber recorded it in his obituary:
Die ganzen Zahlen hat der liebe Gott gemacht, alles andere ist Menschenwerk.
God made the whole numbers; all else is the work of man.
Leopold Kronecker, as recorded by Heinrich Weber
Kronecker blocked Cantor’s hopes of a chair in Berlin, delayed his papers and spoke against him openly. His attitude, the mathematician Arthur Schoenflies later wrote, must have made Cantor look like a corrupter of youth. The strain was real. In 1884 Cantor suffered the first of several breakdowns, and in later life he spent long periods in the clinic at Halle. Through it all he kept working, and he kept a conviction that sustained him: that the infinite was not his invention but something that truly exists, and that its highest form belonged not to mathematics but to God. He distinguished the transfinite numbers, which mathematicians could study, from what he called the Absolute Infinite, which no number could reach and no mind could grasp, and which he identified with God. He wrote to theologians about it. In January 1886 he explained to Cardinal Johann Baptist Franzelin in Rome that he distinguished an eternal, uncreated infinite, the Absolute, which belongs to God alone, from a created infinite, the transfinite. The cardinal replied that his transfinite numbers posed no danger to religious truth. Cantor believed he had recognised the transfinites, as he put it in 1888, “with God’s help”, and he faced his critics calmly: “My theory stands as firm as a rock; every arrow directed against it will return quickly to its archer.”
Cantor died in a Halle sanatorium on 6 January 1918, in the last winter of the First World War, poor and underfed. By then the tide had turned. His set theory had become the language in which most of mathematics was being rewritten. And its most famous defender was David Hilbert.
Any room list you can write leaves someone out.
Cantor’s diagonal argument, 1891, in one line
The coach no hotel can take
The passengers with endless tickets
Back to the hotel. Late on another night, one more coach arrives. It looks ordinary. But every passenger on this coach carries a ticket printed with an endless row of 0s and 1s, and for every possible endless row there is exactly one passenger. 0000… is on board. So is 1111…, and 0101…, and every row you could write, including all the patternless ones.
The clerk tries every trick in the book. Suppose that, at last, he hands over a complete room list: the passenger in room 1, the passenger in room 2, and so on, every room occupied by one of these ticket-holders. Cantor, in a short paper of 1891, showed how to find a passenger the list has missed, whatever list the clerk writes.
Look at the first digit of the ticket in room 1, the second digit of the ticket in room 2, the third digit of the ticket in room 3, and so on down the diagonal. Now build a new ticket by flipping each of those digits: wherever the diagonal has a 0, write a 1, and wherever it has a 1, write a 0. This new ticket differs from the one in room 1 in its first digit, from the one in room 2 in its second digit, from the one in room n in its nth digit. It is not in any room. But it is a perfectly good endless row of 0s and 1s, so its owner is on the coach, standing in the rain. The list was not complete after all. And since the same trick works on any list, no list can ever be complete.
Try it · the coach that will not fit
Give every passenger a room. One is always left over.
| Room 1 | … | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Room 2 | … | ||||||||||||
| Room 3 | … | ||||||||||||
| Room 4 | … | ||||||||||||
| Room 5 | … | ||||||||||||
| Room 6 | … | ||||||||||||
| Room 7 | … | ||||||||||||
| Room 8 | … | ||||||||||||
| ⋮ | |||||||||||||
| Left out | |||||||||||||
Read down the yellow diagonal and flip every digit: 0 becomes 1, 1 becomes 0.
This is Cantor’s diagonal argument, and it is one of the most elegant proofs ever found, short enough to explain to a curious teenager, strong enough to rearrange the foundations of mathematics. Endless rows of 0s and 1s are really just numbers in disguise: write a 0 and a point in front of each row and you have the binary expansion of a number between 0 and 1. So the same argument shows that the real numbers cannot be listed. There are more points on a line than there are whole numbers. The line is a bigger infinity than the corridor.
The diagonal idea did not stop with Cantor. Kurt Gödel turned a version of it on mathematics itself in 1931 to show that any consistent system of axioms strong enough for arithmetic contains true statements it cannot prove. Alan Turing used another in 1936 to show that no computer program can decide, for every program, whether it will ever stop. Some of the most important limits we know, on proof and on computation, come from the night clerk’s impossible room list.
Cantor's theorem
A ladder of infinities with no top
Once there were two sizes of infinity, there were soon infinitely many. Cantor proved that for any collection at all, finite or infinite, the collection of all its subsets is strictly bigger. A set of 3 things has 8 subsets; a set of 10 things has 1,024. For infinite sets the same jump happens, and it never stops. The subsets of the whole numbers correspond exactly to the endless 0-and-1 tickets (put a 1 in position n if n is in the subset), so they are as numerous as the points on a line. The subsets of the line are more numerous still. And so on, up a ladder with no top rung.
How big is infinite?
Cantor's ladder
Countable · aleph-null
Fits in Hilbert’s hotel. The whole numbers, the even numbers, all the integers, every fraction, every algebraic number such as √2, every finite string of letters, every computer program that could ever be written.
The continuum
Does not fit. All real numbers; the points of a line segment one centimetre long; the points of a square, or of all of space; every endless sequence of 0s and 1s, the passengers on the last coach.
Bigger still
Every collection of points on the line; every function from the real numbers to the real numbers, however wild.
It is worth stopping to feel how strange this ladder is. Most of the infinite collections you meet in daily mathematics sit on its first two rungs. Everything that can be named, described or computed, every number you could ever write down a recipe for, every sentence in every language, every program, lies on the first rung, ℵ₀. Most real numbers, by contrast, have no finite description at all. They are there, on the second rung, in overwhelming majority, and we will never be able to point to a single one of them individually.
The morning after
Checking out: infinity minus infinity
Arrivals are only half of hotel life. In the morning, guests leave, and here the infinite hotel produces its most unsettling result. Suppose infinitely many guests check out. How many are left? It depends entirely on which guests go.
Three ways to empty infinitely many rooms
From a full hotel
Every guest in an odd room leaves
∞ − ∞ = ∞
Every guest from room 4 upwards leaves
∞ − ∞ = 3
Every guest leaves
∞ − ∞ = 0
This is why mathematicians refuse to give ∞ − ∞ a value. It is not that the answer is unknown. It is that there are many correct answers, depending on details the expression throws away. Infinity can be added to and multiplied without trouble, at least on the first rung (ℵ₀ + 1 = ℵ₀, ℵ₀ + ℵ₀ = ℵ₀, ℵ₀ × ℵ₀ = ℵ₀, as the coaches showed), but it cannot be subtracted from itself.
The English mathematician J. E. Littlewood pushed this to a memorable extreme in his Mathematician’s Miscellany of 1953. At one minute to noon, put balls numbered 1 to 10 into an empty vase and take ball 1 out. At half a minute to noon, put in balls 11 to 20 and take out ball 2. At a quarter of a minute to noon, balls 21 to 30 go in and ball 3 comes out, and so on, faster and faster. At each step the vase gains nine balls. How many are in it at noon? None. Every ball n was removed at the nth step, so not a single ball remains, although the count had been rising the whole time. Change only the labels, removing ball 11 instead of ball 2 and so on, and infinitely many balls remain. Infinity punishes anyone who keeps track of how many but not of which.
If this kind of surprise appeals to you, Abakcus has two close relatives of it: why 0.999… is exactly 1, and Gabriel’s Horn, a trumpet you could fill with paint but never paint.
Paris 1900 · Princeton 1940 · Stanford 1963
The question Hilbert put first
Cantor spent the last decades of his working life on one question, and it defeated him. The whole numbers are on the first rung of the ladder; the real numbers are on a higher one. Is there anything between? Is there an infinite collection too big to fit in Hilbert’s hotel but smaller than the line? Cantor believed not. His guess became known as the continuum hypothesis. Several times he thought he had proved it, and several times he found the mistake.
When Hilbert stood up in Paris on 8 August 1900 to set out the great open problems for the coming century, he put the continuum hypothesis first on the list. It was a declaration of where he stood: Cantor’s infinite was not a fringe curiosity but the foundation of the whole building. A quarter of a century later, on 4 June 1925, a few months after the hotel lecture, he gave an address in Münster under the same title, On the Infinite, and spoke the sentence that became the motto of Cantor’s defenders:
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können.
No one shall drive us from the paradise that Cantor has created for us.
David Hilbert, Über das Unendliche, Münster, 1925 (printed 1926)
The answer, when it came, was stranger than anyone expected. In 1940 Kurt Gödel, working at the Institute for Advanced Study in Princeton, showed that the continuum hypothesis cannot be disproved from the standard axioms of set theory. In 1963 Paul Cohen at Stanford, using a powerful new technique he called forcing, showed that it cannot be proved from them either. Cohen received the Fields Medal for it in 1966. The question Hilbert put first is, in a precise sense, undecidable: the usual rules of mathematics are compatible with a world where there is an infinity between the corridor and the line, and with a world where there is not.
Some mathematicians take this as the final answer. Others believe the question has a true answer that our present axioms are simply too weak to reach, and they search for new, convincing axioms that would settle it. Gödel himself thought the continuum hypothesis was probably false. The debate is still going on. The first of Hilbert’s 23 problems, more than a century later, remains a live argument about what mathematical truth is, a theme we have explored in our essay on whether mathematics is invented or discovered.
Philosophy
Could the hotel ever be built?
No one thinks Hilbert’s hotel could be built out of bricks. It would need infinitely much material and an announcement that reaches infinitely many rooms in an instant. But the question behind it is serious: can an actual infinity exist anywhere outside mathematics, in the physical world?
Hilbert himself, in the same Münster address in which he praised Cantor’s paradise, argued that the answer is no. Physics, he pointed out, had found that matter is not infinitely divisible but made of atoms, and that energy comes in quanta. Wherever we look in nature, we find the finite. The infinite, he concluded, is nowhere to be found in reality: it is neither present in nature nor admissible as a foundation of our rational thought. What remained to it was the role of an idea, indispensable, the thing that makes mathematics whole.
Philosophers have used the hotel to press the point further. If an actual infinite collection of real things leads to a hotel that is full and yet can always take more, where infinitely many guests can leave and leave the hotel as full as before, then perhaps actual infinities of real things cannot exist at all. That line of thought goes back to medieval thinkers, Christian and Muslim alike, who argued that the past cannot stretch back through an infinite series of days, since an infinite series could never have been completed to arrive at today. Its most prominent modern defender, the philosopher William Lane Craig, made Hilbert’s hotel the centrepiece of the argument: if the past were an actual infinity of events, the absurdities of the hotel would apply to time itself. So, the argument runs, the universe had a beginning, and whatever begins to exist has a cause beyond itself.
Not every philosopher accepts that argument, and the debate is lively. But it is remarkable how naturally the hotel leads there. Cantor, who first made sense of the infinite, never thought he was competing with God; he thought he was exploring a small part of what God had made, and he reserved the truly Absolute for the Creator alone. A hotel with a corridor that never ends turns out to be a very good place to think about what has no end at all.
We must know, we will know
Hilbert died in Göttingen on 14 February 1943, in the middle of another war, his great school scattered by the Nazi persecution of his Jewish colleagues and students. Barely a dozen people came to his funeral. On his gravestone are the words he had spoken in Königsberg in September 1930, in an address broadcast on the radio, his answer to anyone who said that some questions must stay unanswered forever: Wir müssen wissen. Wir werden wissen. We must know. We will know.
The hotel he invented in passing has outlived almost everything else he said to a general audience. Teachers draw its corridor on whiteboards; physicists use it to explain why infinities in their equations need careful handling; philosophers argue in its lobby about the age of the universe. Its night clerk has become a kind of patron saint of anyone who has ever stared at an idea and thought, like Cantor, I see it, but I don’t believe it.
And somewhere in the endless corridor, there is always room for one more.
Frequently asked
Questions about the hotel
What is Hilbert's Hotel?
Hilbert's Hotel is a thought experiment about a hotel with infinitely many rooms, numbered 1, 2, 3 and so on, all of them occupied. Even so, it can take a new guest: everyone moves from room n to room n + 1 and room 1 is freed. It can even take infinitely many new guests, by moving everyone from room n to room 2n and freeing all the odd rooms. The story shows that infinite sets behave differently from finite ones.
Who invented Hilbert's Hotel?
The German mathematician David Hilbert described it in January 1925, in his lecture course On the Infinite at the University of Göttingen. The notes, written up by his assistant Lothar Nordheim, were not printed until 2013, so the story spread by word of mouth until the physicist George Gamow put it in his popular book One Two Three… Infinity in 1947. The historian Helge Kragh traced it back to Hilbert's lecture in 2014.
Is Hilbert's Hotel a real paradox?
It is not a contradiction. It is a veridical paradox: a result that sounds absurd but is true once the rules of infinite sets are applied. The surprise comes from expecting infinite collections to behave like finite ones. In fact an infinite set can always be matched one to one with a part of itself, and Richard Dedekind used exactly that property to define what infinite means.
Can Hilbert's Hotel run out of rooms?
Yes. It can take any countable number of new guests, even infinitely many coaches each carrying infinitely many passengers. But if a coach arrives with one passenger for every real number, or for every endless sequence of 0s and 1s, there is no way to give them all rooms. Georg Cantor's diagonal argument of 1891 shows that any room list must leave someone out.
What is infinity minus infinity in Hilbert's Hotel?
It has no single answer, which is why mathematicians leave it undefined. If the guests in all the odd rooms check out, infinitely many guests remain. If everyone from room 4 upwards checks out, three remain. If everyone checks out, none remain. In each case infinitely many guests left a hotel that held infinitely many.
Sources and further reading
- Helge Kragh, “The True (?) Story of Hilbert’s Infinite Hotel,” 2014.
- David Hilbert, “Über das Unendliche,” Mathematische Annalen 95 (1926).
- George Gamow, One Two Three… Infinity, Viking, 1947.
- Galileo Galilei, Discorsi e dimostrazioni matematiche intorno a due nuove scienze, Leiden, 1638.
- Richard Dedekind, Was sind und was sollen die Zahlen?, 1888.
- Georg Cantor, “Über eine elementare Frage der Mannigfaltigkeitslehre,” Jahresbericht der DMV 1 (1891).
- Joseph W. Dauben, Georg Cantor: His Mathematics and Philosophy of the Infinite, Princeton University Press, 1979.
- Georg Cantor and David Hilbert, MacTutor History of Mathematics.





