52 Factorial: How Many Ways Can You Shuffle a Deck?

Quick answer: A standard 52-card deck can be arranged in 52! (52 factorial) ways: 52 × 51 × 50 × … × 1 ≈ 8.07 × 10^67, a 68-digit number. Because that number is so huge, a truly random shuffle almost certainly produces an order that has never occurred before, although uniqueness is not guaranteed. The classic answer to how many shuffles you need is about 7 riffle shuffles (Bayer and Diaconis, 1992) when the deck is cut roughly in half; 2026 research suggests up to about 14 if each cut is at a random place.

Facts checked November 22, 2026.

Pick up a deck of cards, shuffle it well, and look at the order. It is almost certain that no deck in history has ever been in exactly that order, and none ever will be again. That sounds impossible for something as ordinary as a card game, but it follows directly from one number: 52 factorial. Here is the math, some comparisons that make it feel real, and a live shuffler.

Counting the Orders: What Is 52!?

To order a deck, you have 52 choices for the first card, then 51 for the second, 50 for the third, and so on down to 1 for the last card. Multiplying them gives the number of possible orders, called 52 factorial:

\[ 52! = 52 \times 51 \times 50 \times \cdots \times 2 \times 1. \]

Written out in full, it is a 68-digit number:

80,658,175,170,943,878,571,660,636,856,403,766,975,289,505,440,883,277,824,000,000,000,000

That is about \(8.07 \times 10^{67}\), roughly 80 unvigintillion. Factorials grow astonishingly fast: \(10! = 3{,}628{,}800\), \(13! \approx 6.2\) billion, and \(20! \approx 2.4 \times 10^{18}\). By convention \(0! = 1\), the single way to arrange nothing.

Did you know? 52! ends in exactly 12 zeros. Each zero needs a factor of 10, and the limiting factor is 5: there are \(\lfloor 52/5 \rfloor + \lfloor 52/25 \rfloor = 10 + 2 = 12\) fives in 52!.

Do not confuse orders with hands. Ordering all 52 cards gives 52!; choosing an unordered 5-card poker hand gives only \(\binom{52}{5} = 2{,}598{,}960\).

How Big Is 8 × 10^67, Really?

QuantityApproximate sizeCompared with 52!
Seconds since the Big Bang (13.8 billion years)\(4.4 \times 10^{17}\)52! is about \(10^{50}\) times larger
Stars in the observable universe (estimate)about \(10^{22}\) to \(10^{24}\)Tiny by comparison
Atoms in planet Earth (estimate from its mass)about \(1.3 \times 10^{50}\)52! is about \(6 \times 10^{17}\) times larger
Atoms in the observable universe (rough estimate)about \(10^{80}\)About 1.2 trillion times larger than 52!

If you listed one new deck order every second since the Big Bang, you would have covered only about 1 in \(10^{50}\) of them so far.

Has Any Shuffle Ever Repeated?

This is a birthday-problem question: with \(n\) random shuffles, the chance that any two match is about

\[ P \approx \frac{n^2}{2 \times 52!}. \]

Be extremely generous: suppose 10 billion decks had been shuffled every second since the Big Bang. That is about \(n = 4.4 \times 10^{27}\) shuffles, and

\[ P \approx \frac{(4.4 \times 10^{27})^2}{2 \times 8.07 \times 10^{67}} \approx 1.2 \times 10^{-13}, \]

about 1 in 8.5 trillion. So even under absurd assumptions, a repeat is wildly unlikely, and real history has seen far fewer shuffles than that.

How many random shuffles would give a 50% chance of a repeat? The birthday formula gives

\[ n_{50\%} \approx \sqrt{2 \ln 2 \times 52!} \approx 1.06 \times 10^{34}, \]

about 10 decillion shuffles. This assumes every shuffle is perfectly random; sloppy real shuffles that leave patterns can repeat orders far sooner, for example a brand-new deck shuffled only once.

Try It: Shuffle a Deck

This uses the Fisher–Yates algorithm, which gives every one of the 52! orders exactly the same chance (as far as your browser’s random numbers allow).


On average, about 1 card stays in its original position after a perfect random shuffle, a surprising fact from the math of derangements.

How Many Times Should You Shuffle? The 7 vs. 14 Rule

All of this assumes a well-shuffled deck. In 1992, Dave Bayer and Persi Diaconis analyzed a mathematical model of the riffle shuffle (the Gilbert–Shannon–Reeds model), in which the deck is cut roughly in half and the two piles are randomly interleaved card by card. They found a sharp “cutoff”: the deck stays far from random, then suddenly becomes close to random around the seventh shuffle.

Riffle shuffles5678910
Distance from random (0 = perfect)0.920.610.330.170.090.04

So 7 is where the deck becomes reasonably mixed, not perfectly mixed. In June 2026, Quanta Magazine reported new work by Mark Sellke, Jialu Shi and Jiamin Wang extending the theory to decks cut at a random place each time instead of near the middle. Their proof gives a ceiling of roughly 14 riffle shuffles for a 52-card deck under that model. Both results still assume cards fall one at a time, not in clumps, so real hand shuffles may need more. Overhand shuffling is far worse, needing thousands of shuffles under standard models.

And a perfect riffle, splitting exactly in half and alternating cards one by one (a “faro” out-shuffle), is not random at all: 8 perfect out-shuffles return a 52-card deck to its starting order.

Why This Matters Beyond Card Games

  • Online poker and security: a computer shuffle is only as good as its random numbers. A random generator with fewer than about 226 bits of internal state cannot even reach every one of the 52! orders, since \(\log_2(52!) \approx 225.6\).
  • Permutations everywhere: the same factorial counting appears in scheduling, passwords, DNA sequences and cryptography.
  • Intuition check: combinations of everyday objects can produce numbers bigger than anything in physics, a reminder of how fast multiplication grows.

Common Misconceptions

“52! is larger than the number of atoms in the universe.” No. It is larger than the number of atoms in Earth, but smaller than the roughly \(10^{80}\) atoms in the observable universe.

“Seven shuffles makes a deck perfectly random.” No. Seven is where the classic model becomes close to random; 2026 work suggests up to about 14 for randomly placed cuts, and clumpy human shuffles may need more.

“Every shuffle is unique, guaranteed.” Not guaranteed, just overwhelmingly likely, and only for well-mixed decks. A new deck shuffled once or twice is far from random.

“More perfect shuffles always mix better.” No. Perfect faro shuffles are completely predictable and cycle back to the start.

Watch: The Size of 52!

If you learn better by watching, these videos are worth your time.

How many ways can you arrange a deck of cards? – Yannay Khaikin (TED-Ed). A short animation explaining 52 factorial.
The Incomprehensible Scale of 52! (But Why?). A walk-through that makes the size of 52! feel real.

Check Your Understanding

Five quick questions to see how much of this has stuck. Pick an answer and press Submit; you will see a short explanation either way.

Answer each question and press Submit to see your result right away.

1. How many ways can a 52-card deck be ordered?
Found a bug? Let us know!
2. About how big is 52!?
Found a bug? Let us know!
3. Is 52! bigger than the number of atoms in the observable universe?
Found a bug? Let us know!
4. Under the classic Bayer–Diaconis model, about how many riffle shuffles mix a deck?
Found a bug? Let us know!
5. How many perfect out-shuffles return a deck to its original order?
Found a bug? Let us know!

Frequently Asked Questions

What is 52 factorial?

52! is the product 52 × 51 × … × 1, the number of ways to order a standard deck. It equals about 8.07 × 10^67, a 68-digit number.

Has the same shuffled deck ever occurred twice?

Almost certainly not for well-shuffled decks. Even with 10 billion shuffles every second since the Big Bang, the chance of any repeat would be about 1 in 8.5 trillion.

How many times should you shuffle a deck?

About 7 riffle shuffles under the classic Bayer and Diaconis (1992) model, when the deck is cut near the middle. 2026 research suggests up to about 14 if cuts are at random places. Overhand shuffling needs far more.

How many shuffles before a repeat is likely?

About 1.06 × 10^34 perfectly random shuffles would give a 50% chance that two match, by the birthday-problem formula.

Is 52! bigger than the atoms in the universe?

No. 52! is about 8 × 10^67, larger than the atoms in Earth (about 10^50) but smaller than the atoms in the observable universe (about 10^80).

How do computers shuffle cards fairly?

With the Fisher–Yates algorithm and a strong random number source, which together give every order the same chance.

Keep Exploring

Sources and Further Reading

Related to This Article

What people say about "52 Factorial: How Many Ways Can You Shuffle a Deck? - Effortless Math"?

No one replied yet.

Leave a Reply