How to Calculate Card-Matching Probabilities
At a glance
- 1. Define a match
Decide whether a match means the same physical card, the same rank, or another feature.
- 2. Set the draw rules
Specify the deck, number of draws, replacement, and any redraw or stopping rules.
- 3. Count outcomes
Use favorable outcomes divided by equally likely outcomes, or add conditional probabilities for sequential draws.
- 4. Check the event
Make sure the counting matches whether you want an exact match, at least one match, or a particular number.
A card-match probability depends on the rules: matching the same rank is different from matching the same physical card, and drawing with replacement is different from drawing without replacement. Redraw and stopping rules can change the probability as well.
The basic method is to define the event precisely, then count outcomes that satisfy it under the stated rules. The example below compares two common rules for drawing two cards from a standard 52-card deck.
Start with the event and the draw rules
Write down four details before calculating:
- Deck: How many cards are available, and how are they divided into types such as ranks or suits?
- Match: Does a match mean the same physical card, the same rank, the same suit, or something else?
- Replacement: Is a drawn card returned and the deck reshuffled before the next draw?
- Redraw or stopping rule: Are matching cards kept, discarded, or drawn again? Does the process stop at the first match?
For equally likely outcomes, the basic formula is
where is the precisely defined match event. If the draws are not equally likely—for example, because a card is redrawn under a special rule—use conditional probabilities or model the full sequence instead of applying this ratio without adjustment.
Example: two cards with no replacement
Suppose you draw two cards from a standard deck without replacement and call it a match if the cards have the same rank. Once the first card is drawn, 51 cards remain. Exactly 3 of them have the same rank as the first card: there were 4 cards of that rank, and one has already been drawn.
Therefore,
The probability is about 5.88%. This calculation works because every possible second card is equally likely, given the first card.
If instead “match” means the same physical card, the probability is zero without replacement: the first card is no longer in the deck.
Example: two cards with replacement
Now return the first card to the deck and reshuffle before the second draw. There are 52 possible second cards, and 4 have the same rank as the first card. Thus
If you mean the same physical card, only one of the 52 possible second cards is a match, so the probability is . Replacement makes an exact-card match possible; it does not mean the second card must differ from the first.
| Rule for two draws | Same rank | Same physical card |
|---|---|---|
| Without replacement | ||
| With replacement |
A formula for repeated categories in a hand
Sometimes the question is whether a hand contains any repeated category, such as any repeated rank in a five-card hand. Let the deck have cards divided into categories, with cards in category . For an unordered hand of cards drawn without replacement, the total number of possible hands is .
The number of hands with no repeated category is
Each such hand selects distinct categories and one card from each. So the probability of at least one repeated category is
For a standard deck, there are 13 rank categories, each containing 4 cards. For a five-card hand, the number of hands with all different ranks is . Therefore, the probability of at least one repeated rank is
This event includes hands with a pair, two pairs, three of a kind, a full house, or four of a kind. It is not the probability of getting exactly one pair.
When redraw rules apply
A rule such as “discard any matching card and draw again” changes what counts as an outcome and can change the distribution of the final hand. Specify whether the discarded card returns to the deck and whether the replacement draw can trigger another redraw. For a short sequence, calculate each step conditionally; for a more complex rule, list the possible states and their transition probabilities.
For example, if the first card is kept and you repeatedly draw until you get a different rank, the final card is not an ordinary independent draw from the original deck: matching-rank draws are rejected. The desired probability must reflect that rejection rule.
Common mistakes
- Leaving “match” undefined: Same rank and same physical card have different probabilities.
- Using 52 as the second-draw total without replacement: After one card is removed, there are 51 cards left.
- Confusing “at least one” with “exactly one”: Counting hands with a repeated rank includes hands with multiple matching ranks.
- Ignoring redraw rules: A redraw can alter which final outcomes are possible and how likely they are.
Once the event and rules are fixed, the calculation is a matter of counting the outcomes those rules actually allow.
References
- A First Course in Probability, Sheldon Ross
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.