Card Draw Probability Calculator

Last updated

Finds the chance that the cards you see from a shuffled deck hold the cards you need. It uses the multivariate hypergeometric distribution: the number of hands that meet every condition, counted with binomial coefficients, divided by all hands of that size. Up to three separate card groups each take an at-least and an optional at-most figure. It also reports each group alone, expected copies, and the chance as more cards are drawn. Mulligans and draw effects are not modelled.

Group A (at most is optional)
Group B (optional)
Group C (optional)
Chance of that draw –
Expected group A cards –
Each group on its own
As more cards are seen
Group A cards among those seen

Enter the size of the deck, the number of cards you will have seen, and up to three groups of cards with how many of each you want. The calculator returns the exact chance that every condition holds at once, along with each group on its own, the copies to expect, and the chance for each of the next ten cards. Choosing a deck fills in the two boxes under it; change either and the choice switches to Custom.

How the calculation works

Cards leave the deck as they are drawn, so each draw changes the odds of the next. The distribution that describes this is the hypergeometric. Penn State's probability course defines it for a set of items of which some are of one type, sampled without replacement, and Grinstead and Snell give the same formula for red and blue balls. With N cards in the deck, K of them in the group and n cards seen, the chance of exactly x cards from the group is:

P(X = x) = C(K, x) × C(N − K, n − x) ÷ C(N, n)

C(a, b) is the number of combinations of b things chosen from a. The top line counts the hands with x cards from the group and the rest from elsewhere, and the bottom line counts every hand.

With several groups the same idea extends to the multivariate hypergeometric distribution. For groups of A, B and C cards, with every other card counted as the rest, the chance of exactly a, b and c of them is:

P(a, b, c) = C(A, a) × C(B, b) × C(C, c) × C(rest, n − a − b − c) ÷ C(N, n)

The calculator adds this up over every set of counts that your at-least and at-most figures allow. The copies to expect from a group are simply n × K ÷ N. Groups must be separate sets of cards: a card can sit in one group only, and the groups together cannot exceed the deck.

A worked example at the defaults

The defaults describe a 60-card deck and the first seven cards. Group A is 24 cards, such as lands, of which you want at least two. Group B is 8 cards, such as the plays you want early, of which you want at least one. There are C(60, 7) = 386,206,920 possible hands.

Group A alone succeeds in 85.73% of them and group B alone in 65.36%. Both hold together in 53.74%. Multiplying the two single figures would give 56.03%, which is too high: the groups compete for the same seven cards, so a hand rich in one tends to be short of the other. You can expect 7 × 24 ÷ 60 = 2.80 cards from group A and 0.93 from group B.

The second table follows the same wish as more cards arrive: 62.81% after eight cards, 75.92% after ten and 94.29% after seventeen. The third lists group A card by card. Exactly three is the most likely count, at 30.87%, exactly two comes up 26.94% of the time, and 2.16% of hands hold none.

An at-most figure narrows the wish. Asking for two to four cards from group A lowers its own chance to 77.46% and the combined chance to 50.69%. It also means more cards are not always better: the combined chance peaks at 54.95% after eight cards and falls to 8.60% after seventeen, because by then most draws hold five or more.

Where the deck sizes come from

The choices in the first box follow the games' own rules.

Magic: The Gathering. The Comprehensive Rules effective 6 November 2026 set a minimum deck of 60 cards in constructed play and 40 in limited play, and a starting hand that is normally seven. In a two-player game the player who goes first skips the first draw, so that player has seen seven cards on turn one and the opponent eight. A Commander deck is exactly 100 cards including the commander, which starts in the command zone, so the library is 99 cards and the hand is seven.

Yu-Gi-Oh! Version 10 of the official rulebook requires a deck of 40 to 60 cards and a starting hand of 5.

A standard deck. Five cards from 52 is the textbook case. Grinstead and Snell define a poker hand as a random subset of 5 cards from a deck of 52, and Penn State uses the number of aces in such a hand as its example.

A few results show the range. Magic's constructed rules allow no more than four copies of a card other than basic lands, and four copies in 60 cards appear in the first seven 39.95% of the time. One particular card in a 99-card library appears 7.07% of the time. Yu-Gi-Oh! allows up to three copies of a card, and three copies in 40 cards reach a five-card hand 33.76% of the time, while nine cards that can start a turn give at least one in 74.18% of hands. A five-card poker hand holds at least one ace 34.12% of the time.

A problem from 1657

Christiaan Huygens's De ratiociniis in ludo aleae was published in Latin in 1657. The reprint of its 1714 English translation hosted by the University of York calls it the first book on probability theory ever published. It ends with five problems left to the reader, and the third draws several cards at once.

In the third, a player bets that from 40 cards, ten of each of four sorts, he will draw four and have one of every sort. Huygens gives the proportion of his chance to his opponent's as 1000 to 8139. Enter a 40-card deck, four cards seen, and three groups of ten with at least one and at most one each. The fourth card must then come from the ten that are left, and the calculator returns 10.94%, which is 1,000 chances in 9,139.

What the calculator leaves out

The result is the chance for one random set of cards from a fully shuffled deck, and the order in which the cards arrive does not matter. Mulligans are not modelled. Magic's rules let a player shuffle a hand back and draw a new one, and that choice changes the odds of the hand finally kept. Cards that draw, search the deck, or look at and reorder the top cards are not modelled either. Count the opening hand plus the draws you expect by the turn you care about as the cards seen.

Decks are limited to 500 cards. Percentages are rounded to two decimals, and a chance that is not exactly zero is never shown as 0%: it reads "under 0.01%", and a near-certainty reads "over 99.99%". A half-filled optional group, or groups that add up to more cards than the deck, stops the calculation with a message.

Dice behave differently, because one roll does not change the next. For those, the dice probability calculator counts sums, advantage and drop-lowest rolls in the same exact way.

Frequently asked questions

What is the chance of drawing at least one copy of a card I run four of?

In a 60-card deck, seven cards hold at least one of four copies 39.95% of the time. By ten cards seen it is 52.77%, and by seventeen it is 74.69%. In a 40-card deck with three copies and a five-card hand the figure is 33.76%. For a single card in a 99-card deck it is 7.07% in the first seven cards.

How do I work out the odds of a hand with enough lands and a key card?

Put the lands in group A and the key cards in group B. With 24 lands and 8 key cards in 60, the chance that seven cards hold at least two lands and at least one key card is 53.74%. The lands alone are 85.73% and the key cards alone 65.36%. Multiplying those two gives 56.03%, which is too high, because the groups compete for the same seven cards.

What is the hypergeometric distribution?

It gives the chance of drawing a set number of marked items when you sample without replacement. With N cards of which K are in a group, the chance that n cards hold exactly x of them is C(K, x) × C(N − K, n − x) ÷ C(N, n), where C counts combinations. Each card drawn changes what is left, which is what separates it from the binomial distribution used for draws with replacement.

Does the calculator account for mulligans?

No. It gives the chance for one random set of cards from a fully shuffled deck. A mulligan, a card that draws or searches, and anything that reorders the deck all change the odds, and none of them is modelled. To see what extra draws do, read the table of the next ten cards or raise the number of cards seen.

Why does the chance sometimes fall as I see more cards?

An at-most figure can be broken by drawing more. With 24 lands in 60 and a wish for two to four of them, the chance is 77.46% at seven cards, 60.94% at ten and 8.72% at seventeen, because the larger hands often hold five or more lands. Without an at-most figure the chance can only rise or stay the same.

Sources

  1. The Multivariate Hypergeometric Distribution, Random: Probability, Mathematical Statistics, Stochastic Processes (Kyle Siegrist)
  2. STAT 414 Introduction to Probability Theory, Lesson 7: Discrete Random Variables, Penn State Eberly College of Science
  3. Grinstead and Snell's Introduction to Probability (second edition, GNU FDL version), Dartmouth College, 2006
  4. De Ratiociniis in Ludo Aleae, or The Value of All Chances in Games of Fortune (Christiaan Huygens, English translation of 1714), University of York, Department of Mathematics
  5. Magic: The Gathering Comprehensive Rules, effective November 6, 2026, Wizards of the Coast, 2026
  6. Yu-Gi-Oh! Trading Card Game Official Rulebook, Version 10, Konami Digital Entertainment