Has Anyone Ever Shuffled the Same Deck Twice?
Every time you shuffle a deck properly, you almost certainly create an order that has never existed before. But has a repeat ever happened, anywhere, in all of history?
The short answer
Almost certainly not, as long as the decks were properly shuffled. Even if every human who has ever lived (about 117 billion people) had shuffled a deck once a minute for 80 years, the chance that any two of those shuffles ever matched would be about 1 in 7 × 1030.
The odds of two shuffles matching
A deck of 52 cards can be in 52! (52 factorial) orders, about 8.07 × 1067. So the chance that one random shuffle matches one specific earlier deck is 1 in 52!.
"Has it ever happened?" is a different question, though, because every shuffle in history gets compared with every other one. That's the famous birthday problem: in a room of just 23 people, two probably share a birthday. With N shuffles, the chance of at least one repeat is roughly N² ÷ (2 × 52!).
Plug in a generous history of shuffling, around 5 × 1018 shuffles (every person ever, once a minute, for 80 years), and you get about 1 in 7 × 1030. To reach even a 50% chance of one repeat, humanity would need about 1034 shuffles. With all 8 billion people alive today shuffling once a second, that would take around 40 quadrillion years, roughly three million times the age of the universe.
When decks really do repeat
The math above assumes good, random shuffles. Real life cheats in a few ways:
- New decks. A fresh deck comes in factory order, the same for everyone. Deal it without shuffling and you have "repeated" a deck millions of people have held.
- Lazy shuffles. One or two riffle shuffles leave lots of the old order in place. It takes about seven riffle shuffles to really mix a deck, and many card players stop well before that.
- Perfect shuffles. A magician's perfect "faro" shuffle splits the deck exactly in half and interleaves it card by card. It's not random at all: eight perfect out-shuffles bring a 52-card deck back to its starting order.
- Bad computer shuffles. In the late 1990s, researchers showed that an online poker site seeded its shuffle from the computer's clock, which left only a tiny fraction of the 52! possible decks reachable, few enough to predict the cards. Scientific American tells the story.
So identical decks do happen when the shuffle is weak. Two genuinely random shuffles matching? Not in this universe's lifetime.
What are the odds of matching just some of the cards?
Getting the whole deck right is hopeless, but matching a few cards happens all the time. On average, exactly one card lands in its original spot, no matter how big the deck is. And the chance of matching no cards at all is about 36.8%, which is 1/e (the number e = 2.718… shows up in the strangest places).
| Cards in the right spot | Odds per shuffle |
|---|---|
| None | 1 in 2.7 (36.8%) |
| Exactly 1 | 1 in 2.7 (36.8%) |
| Exactly 2 | 1 in 5.4 (18.4%) |
| Exactly 3 | 1 in 16 (6.1%) |
| Exactly 5 | 1 in 326 (0.3%) |
| Exactly 8 | 1 in 110,000 |
| Exactly 10 | 1 in 9,864,000 |
| Exactly 13 | 1 in 1.7 × 1010 |
| Exactly 20 | 1 in 6.6 × 1018 |
| All 52 | 1 in 8.1 × 1067 |
That's why the Luckiest Shufflers board on the game ranks people by their best partial match: 10 or 13 cards is already the luck of a lifetime. 52 is another matter.
So we're trying to do it on purpose
The Impossible Shuffle took one deck, shuffled it once and fixed that order forever: the Holy Grail Sequence. Since then, everyone who visits the site has been shuffling, trying to hit that exact order a second time. Every shuffle is provably fair and counted in one shared, worldwide total.
Shuffles by humanity so far: …
Successful matches so far: none. If that ever changes, the front page turns into a monument and the Grail takes the winner's name. Mathematics is not worried.