Counting and tallying · Shuffling
How many times should you shuffle a deck of cards? Seven for 52, and more for a tarot deck

The tool for this guide: Open the yes or no tarot
Seven riffle shuffles is the published answer for a 52-card deck. Bayer and Diaconis showed in 1992 that after seven riffles every order is nearly equally likely, and that five are not enough. A 78-card tarot deck needs about one more, eight, to reach the same closeness to random.
The short answer: seven riffle shuffles for 52 cards
Seven riffle shuffles is the figure everyone quotes, and it comes from a specific paper. In 1992 the mathematicians Dave Bayer and Persi Diaconis published "Trailing the Dovetail Shuffle to its Lair" in The Annals of Applied Probability (volume 2, pages 294 to 313). Their main result is a formula for the chance of any arrangement of the deck after any number of shuffles, which shows how fast a deck approaches random (Crossref record of the paper). Applied to 52 cards, it says that after seven riffles every order is nearly equally likely, and that shuffling less leaves the deck far from random (Harvey Mudd College, "Seven Shuffles").
That is a statement about a model and a measure, and both matter. The rest of this page says what they are, gives the figures for every number of shuffles, and shows how the answer changes for a deck that is not 52 cards, such as a 78-card tarot deck.
What "random" means for a deck
A 52-card deck can be put in 52 factorial different orders, which is 80,658,175,170,943,878,571,660,636,856,403, 766,975,289,505,440,883,277,824,000,000,000,000 (about 8.07 times ten to the 67th power). A 78-card tarot deck has 78 factorial orders, about 1.13 times ten to the 115th power. A deck is perfectly shuffled when each of those orders is equally likely.
No hand shuffle reaches that exactly. Each shuffle only moves the probabilities closer to even, so the useful question is how close, and for that you need a measure of distance.
How a riffle shuffle is modelled
A riffle shuffle cuts the deck in two and interleaves the halves. The standard model of it is the Gilbert–Shannon–Reeds model: the cut point is chosen at random in the way a coin flip per card would give, and the two halves then drop cards in proportion to how many each still holds. It is named for Edgar Gilbert, who reported it in a 1955 technical memorandum, Claude Shannon and J. Reeds, who described it in an unpublished 1981 manuscript (Wikipedia, "Gilbert–Shannon–Reeds model").
Bayer and Diaconis measured the result with total variation distance. It is the largest amount by which the chance of any group of orders can differ from what a perfectly random deck would give. A distance of 1 means a clever observer can tell the deck from a random one with certainty; a distance near 0 means they cannot do better than guess. Because everything is measured against the best possible observer, it is a strict test.
The table: distance from random after each shuffle
The values below were computed for this page from the exact formula in the 1992 paper, using exact arithmetic, not simulation. The 52-card column agrees with the published figures: close to 1 after five shuffles and 0.334 after seven.
| Riffle shuffles | 52-card deck | 78-card tarot deck |
|---|---|---|
| 1 to 4 | 1.000 | 1.000 |
| 5 | 0.924 | 1.000 |
| 6 | 0.614 | 0.893 |
| 7 | 0.334 | 0.571 |
| 8 | 0.167 | 0.307 |
| 9 | 0.085 | 0.153 |
| 10 | 0.043 | 0.078 |
| 11 | 0.022 | 0.039 |
| 12 | 0.011 | 0.020 |
Read it as a cliff followed by a slope. For the first few shuffles the deck is almost completely distinguishable from a random one, and then the distance drops, and from about seven it falls by half with every extra shuffle. That is why the answer is given as a number: below it the deck is "far from random", and above it more shuffling gives smaller and smaller gains. Seven is a sensible stopping point for a card game, not the place where randomness switches on. A related fact from the same source: five shuffles are not even enough to bring about the reversal of a deck (Harvey Mudd College).
What a tarot deck needs
The seven-shuffle rule is for 52 cards. A bigger deck takes more, and the table shows how many: with 78 cards seven riffles leave a distance of 0.571, well short of the 0.334 that seven gives for 52. It takes eight riffles to reach 0.307, which is what seven achieve for a standard deck, and nine to reach 0.153. The growth is slow, because the number of shuffles needed rises with the logarithm of the deck size, so a deck half as big again needs about one more shuffle and not half as many again.
Tarot cards are larger and stiffer than playing cards, and many people cannot riffle them cleanly. (If you read reversed cards, the shuffle also decides which way each card faces: see how to read reversed tarot cards.) There are two honest ways to read that. One is that a well-mixed tarot deck by hand is a harder thing to get than a well-mixed poker deck. The other is that it matters less than it seems: a tarot draw is a prompt for reflection, and nothing in the reading depends on the deck being perfectly uniform. If you want an exactly fair draw without the work, a computer can give it, as the next section explains.
A perfect shuffle is the opposite of random
You might expect that doing the shuffle perfectly would be better. It is not, because a perfect shuffle is perfectly predictable. In an out-shuffle the deck is split exactly in half and interleaved so that the top card stays on top, and eight out-shuffles in a row restore a 52-card deck to its starting order. In-shuffles, where the top card moves to second place, take 52 repetitions to do the same (Wikipedia, "Faro shuffle"). Card magicians use this on purpose. The randomness of an ordinary riffle comes from its imperfections: the uneven cut and the cards that stick together.
Shuffling on a computer needs no count
A computer does not shuffle in rounds. The standard method, the Fisher–Yates shuffle, walks down the deck once and swaps each card with a randomly chosen card from the part not yet fixed, and with a good random source it makes every one of the 52 factorial orders equally likely in a single pass (Wikipedia, "Fisher–Yates shuffle"). The word "good" is the whole matter: the random numbers have to be unbiased, which depends on how bits become a position as much as on the source (Math.random against crypto.getRandomValues works through both).
The draws on this site use the browser's secure random source, crypto.getRandomValues, and discard any number
that would favour some cards over others (rejection sampling), so there is no seven to remember and no distance
to be measured: the shuffle is uniform by construction. The yes or no tarot works
this way for all 78 cards and publishes the odds behind each answer, and the random tools
shuffle a list of names with the same method.
What to do at the table
- Playing cards, by hand: riffle seven times, cutting the deck between shuffles if you can. Eight or nine is a comfortable margin, and more does no harm.
- A bigger deck such as tarot: aim for eight or nine riffles, or mix in extra cuts if the cards are too large to riffle.
- After a hand of a game: a deck that has been sorted by play, with runs of suits or ranks, needs the full count more than a deck that was already mixed. Do not stop at four.
- When fairness is the point, as in a prize draw or a research sample, use a computer and a secure random source and not a hand shuffle.
Where the number does not apply
The seven-shuffle figure answers a precise question, and three things limit it. It models a riffle shuffle, not an overhand shuffle, a table spread or a pile shuffle, and this page gives no number for those. It measures closeness by total variation distance, and a different measure of "random enough" gives different counts. And it describes an idealised shuffler: a real one cuts unevenly and drops cards in clumps. For a game, it is a good guide. For anything where a bias would cost something, the right answer is not to count shuffles.
Sources
Each source was opened and checked on 21 November 2026. The figures in the table were computed for this page from the formula in the first source.
- Bayer D., Diaconis P., "Trailing the Dovetail Shuffle to its Lair", The Annals of Applied Probability 2(2), 1992, pp. 294–313 (Crossref record).
- Harvey Mudd College Mathematics, "Seven Shuffles" (Fun Facts), which also cites Mann B., "How many times should you shuffle a deck of cards?", UMAP Journal 15(4), 1994, pp. 303–332.
- Wikipedia, "Gilbert–Shannon–Reeds model".
- Wikipedia, "Faro shuffle".
- Wikipedia, "Fisher–Yates shuffle".
- W3C, "Web Cryptography API", for
getRandomValues.
Frequently asked questions
How many times should you shuffle a deck of cards?
Seven riffle shuffles for a 52-card deck, going by Bayer and Diaconis's 1992 analysis. After seven the order is close to random, with a total variation distance of 0.334, and each further shuffle roughly halves that. Five shuffles are not enough, because the deck is still almost entirely distinguishable from a random one.
Is seven shuffles really enough?
Seven is enough for most games, and it is not perfect. Seven leaves a distance of 0.334 from a truly random deck, and eleven leaves 0.022. The word nearly in the published result matters: the deck is not perfectly random at seven, and the figure applies to a model of an ideal human riffle shuffle.
How many times should you shuffle a tarot deck?
About eight to nine riffles for a 78-card deck. Seven riffles leave a 78-card deck at a distance of 0.571 from random, where a 52-card deck is at 0.334. Eight riffles bring it to 0.307, matching what seven achieve for 52 cards. Large tarot cards are hard to riffle, so many readers also cut and mix.
What is a riffle shuffle?
A riffle shuffle splits the deck into two halves and lets the cards fall from each half so that they interleave, the way most people shuffle at a card table. It is the shuffle that Bayer and Diaconis analysed. Overhand shuffles, where small packets are moved from one hand to the other, are a different method and are not covered by the seven-shuffle result.
Does shuffling more than seven times hurt?
No. More shuffling only brings the deck closer to random, never further. The distance from random roughly halves with each riffle after seven: 0.167 at eight, 0.085 at nine and 0.043 at ten. Seven is where the deck stops being obviously unmixed, not a limit past which shuffling does harm.
How many ways can a deck of cards be arranged?
A 52-card deck can be arranged in 52 factorial ways, which is about 8.07 times ten to the 67th power. A 78-card tarot deck has 78 factorial orders, about 1.13 times ten to the 115th power. A fair shuffle makes each of those orders equally likely, which is what a random shuffle means.
How does this site shuffle cards?
With the Fisher-Yates algorithm, driven by crypto.getRandomValues, the browser's secure random source, with rejection sampling so that no card is favoured. Every order of the deck is then equally likely after one pass, so there is no seven to count. A computer shuffle is uniform by construction, and a hand shuffle is not.
Can a perfect shuffle restore the order of a deck?
Yes. Eight perfect out-shuffles, in which the deck is split exactly in half and interleaved with the top card staying on top, return a 52-card deck to its starting order. Fifty-two perfect in-shuffles do the same. That is the opposite of random, and shows why the shuffle has to be imperfect to mix.
People also search for
More in counting and tallying
Count to 1,023 on your fingersThe value of each of ten fingers, worked examples, how to count up, and why the top is 1,023.Updated · 8 min read
The gambler's fallacy and coin-flip streaksA streak of heads never makes tails due. The exact odds, how long a run to expect, the 1913 roulette run, what asylum judges and umpires did, and when a streak is real evidence.Published · 10 min read
Math.random vs crypto.getRandomValuesWhat each function promises in the spec, why Math.random is not biased but is predictable, why getRandomValues is itself a seeded generator, and the modulo mistake that makes picks unfair with either.Published · 10 min read
How to read reversed tarot cardsBlocked, weaker, too far or opposite: four readings of the same reversed card, how to pick one and stay with it, and the exact odds of reversals in a 3 or 10-card spread.Published · 7 min read
How to test whether a die is fairThe chi-square test in four steps with a worked example, the 5% limit for a d4 to a d100, and the part most guides skip, how many rolls it takes to catch a die that really is loaded.Published · 10 min read
Is a coin flip really 50/50?A hand-flipped coin landed on the side it started on 50.8% of the time over 350,757 flips. The figures, why the bias is real but small, and the one fix the authors give.Published · 11 min read