Draw Probability Calculator
When objects are drawn from a bag, a deck, or a production batch without being put back, every draw changes the odds of the next one. The binomial distribution no longer applies; the correct model is the hypergeometric distribution: with K of N objects being targets and n objects drawn, the probability of getting exactly k targets is P(X = k) = C(K,k)·C(N−K,n−k) / C(N,n).
Alongside the probability of exactly k, the tool reports at least k, at most k, none at all, and at least one; the expected value, variance, and standard deviation; a probability table covering the whole support; and a bar chart of the distribution. It also shows the binomial equivalent of the same calculation with replacement, so you can see how much difference the finite population correction makes.
Hypergeometric Distribution Formulas
Exactly k targets: P(X = k) = [C(K, k) · C(N−K, n−k)] / C(N, n) Support: max(0, n+K−N) ≤ k ≤ min(n, K) At most k: P(X ≤ k) = Σᵢ₌₀ᵏ P(X = i) At least k: P(X ≥ k) = 1 − P(X ≤ k−1) At least one: P(X ≥ 1) = 1 − C(N−K, n) / C(N, n) Expected value: E(X) = n · K / N Variance: Var(X) = n · (K/N) · (1 − K/N) · (N−n)/(N−1) Binomial version: P(X = k) ≈ C(n, k) · pᵏ · (1−p)ⁿ⁻ᵏ, p = K/N (with replacement)
The formula is the share of draws containing exactly k targets among all C(N, n) possible draws. For large N the combinations grow too big to evaluate directly, so the tool works on a logarithmic scale; the result is the same and there is no overflow risk.
How to Calculate
- Enter the total number of objects (N): the cards in the deck, the balls in the bag, or the items in the batch.
- Enter how many of them are the kind you are after (K); for example, 4 aces in a 52-card deck.
- State how many objects you will draw (n); the objects are drawn without being put back.
- Enter how many of the drawn objects you want to be targets (k).
- Read the exactly k, at least k, and at most k probabilities together; for an "at least one" question, look at the P(X ≥ 1) row.
- Check where the peak of the distribution chart lies and how far your outcome sits from the expected value.
Worked Examples
Exactly one ace from a deck of cards
Drawing 5 cards from a 52-card deck, the probability of getting exactly 1 ace is [C(4,1)·C(48,4)] / C(52,5) = (4 × 194,580) / 2,598,960 = 29.95%. The probability of getting no ace is 65.88%, so the chance of seeing at least one ace is 34.12%. The expected number of aces is 5 × 4/52 = 0.3846.
Exactly 1 successes — P(X = 1): 29.95% · At least 1 successes — P(X ≥ 1): 34.12% · At most 1 successes — P(X ≤ 1): 95.83%
Matching three numbers in a 6/49 lottery
In a game where 6 of 49 numbers are drawn, the probability that exactly 3 of your 6 numbers match is [C(6,3)·C(43,3)] / C(49,6) = (20 × 12,341) / 13,983,816 = 0.017650, that is 1.77%. The probability of matching at least 3 is 1.86%, and the probability of matching all six is 1 in 13,983,816. The expected number of matches is 6 × 6/49 = 0.7347, and the chance of matching none is 43.60%.
Exactly 3 successes — P(X = 3): 1.77% · At least 3 successes — P(X ≥ 3): 1.86% · At most 3 successes — P(X ≤ 3): 99.90%
A clean batch in quality control
With 8 defective units in a batch of 100, the probability that a sample of 10 drawn without replacement contains no defective unit is C(92,10)/C(100,10) = 7,210,666,060,598 / 17,310,309,456,440 = 41.66%. In other words, the sample catches at least one defective unit only 58.34% of the time: this acceptance sampling plan misses roughly two out of five defective batches. The expected number of defective units is 10 × 8/100 = 0.8000, with a standard deviation of 0.8180.
Exactly 0 successes — P(X = 0): 41.66% · At least 0 successes — P(X ≥ 0): 100.00% · At most 0 successes — P(X ≤ 0): 41.66%