The question the page answers

Card problems usually ask for the chance that a hand contains a certain number of cards of one kind: exactly one ace, two hearts or no face cards. You describe the deck by its size, the number of cards in the category you care about, how many cards you draw and how many successes you want. The page returns the probability. Because drawn cards are not put back, each draw changes the odds of the next, and the right model is the hypergeometric distribution. Independent trial formulas, such as those for coin flips, would give wrong answers here.

Hypergeometric probability for draws from a deck

The probability of exactly k successes in n draws from a deck of N cards containing K success cards is C(K, k) × C(N − K, n − k) / C(N, n), where C is the number of combinations. The numerator counts hands with exactly k success cards and n − k others, and the denominator counts all possible hands. All hands are equally likely when the deck is well shuffled. The inputs must be whole numbers, the success cards cannot exceed the deck, and the number of successes must be possible given the draws. The page treats one designated category only and adds no assumptions about jokers or poker hands.

Drawing one ace from 52 cards

The page starts with a standard 52-card deck, 4 success cards such as aces, one draw and one success wanted. The formula gives C(4,1) × C(48,0) / C(52,1) = 4 / 52, which is about 0.0769, or 7.69 percent, equal to 1 in 13. A single draw reduces the problem to simple counting. The example is the base case, and the more interesting results come from larger hands, where the combination counts grow quickly and an exact calculation is easier by calculator than by hand.

Aces in a five-card hand

In a five-card hand from 52 cards, the chance of exactly one ace is C(4,1) × C(48,4) / C(52,5) = 4 × 194,580 / 2,598,960, about 0.2995. The chance of no aces is C(48,5) / C(52,5) = 1,712,304 / 2,598,960, about 0.6588, so roughly one hand in three contains at least one ace. Enter 52, 4, 5 and 1, then 52, 4, 5 and 0, to confirm both. Two aces in two draws gives C(4,2) / C(52,2) = 6 / 1,326, about 0.004525, the same as 4/52 × 3/51. Each value follows from counting hands, with no simulation involved.

Suits and a bridge hand

Cards of one suit work the same way. With 13 hearts in the deck and 5 cards drawn, the chance of exactly two hearts is C(13,2) × C(39,3) / C(52,5) = 78 × 9,139 / 2,598,960, about 0.2743. In bridge, 13 cards are dealt to a player, so entering 52, 13, 13 and 4 gives the chance of holding exactly four spades, about 0.2386. Suit-length distributions like this guide bidding conventions, because the common patterns are far more likely than extremes. Void suits, with zero cards in a suit, appear in only about 1.3 percent of hands for a given suit.

How to describe the deck

The deck size is the number of cards you are drawing from, which may be less than 52 if cards have been removed or you use a short deck. The success category can be anything you can count: 4 aces, 12 face cards, 26 red cards or 13 of a suit. If you have removed cards you know are not in the category, reduce the deck size by that number. Because the page takes counts, it does not care whether the category is aces or kings. Any custom deck, such as a 40-card Italian deck, works if you enter its size and counts correctly. In a 40-card deck with 4 aces, one draw gives 4/40, or 0.1, a noticeably higher chance than 4/52, because the same number of aces sits in a smaller deck. Card counters in blackjack use the same idea when they track which cards have left the shoe, since each removed low card raises the chance that the next card is a ten or an ace.

Without replacement and why it matters

If the card is returned and the deck reshuffled after each draw, draws are independent and the binomial formula applies instead. The difference is large for small decks. Drawing two aces from 52 cards without replacement has probability about 0.00452, while with replacement it would be (4/52)² = 0.00592. For very large populations the two methods converge, which is why the hypergeometric distribution is used in quality control to sample a batch without replacement. For card games, no replacement is the rule, so use this page.

Turning a card probability into percent or odds

The result is a number between 0 and 1. Multiply by 100 for a percentage, or take the reciprocal for odds: 0.0769 is one chance in 13. A probability describes long-run frequency over many deals, not what the next hand will do. A result of exactly 0 means the outcome is impossible, as when you ask for more successes than there are success cards or draws. Results displayed with many digits come from floating-point arithmetic, so differences in the final digits are rounding and carry no meaning.

Fair shuffle and one success category

The page assumes a fair shuffle, a single designated category, and counting of exactly the number of successes you enter. It does not add up ranges such as at least two aces, so for those you sum several results. It does not evaluate poker hands, which involve combinations across ranks and suits, and it makes no assumption about jokers. Wild cards, burn cards and cards visible to you from earlier play change the true probabilities and are not modeled. The results are also exact only for a perfectly shuffled deck. Real casual shuffling can leave runs of cards in order, particularly after a game that sorts them by suit, so the formula describes the idealized fair deal. Seven riffle shuffles are the figure commonly cited as enough to randomize a 52-card deck, from work by Bayer and Diaconis in 1992. For quick checks, a useful sanity bound is that the probabilities of all possible success counts add to exactly 1, so you can run the page for every value of the successes input and confirm that the list sums to 1, apart from rounding.