Home › Statistics & Probability Calculators › Hypergeometric Distribution Calculator
Hypergeometric Distribution Calculator
The hypergeometric distribution models the number of successes when you draw n items without replacement from a population of N items that contains K successes: the number of aces in a five-card hand, the number of defective parts in a sample from a batch, the number of women on a randomly chosen committee. Enter N, K, n and the value(s) of k.
The calculator applies P(X = k) = C(K, k) × C(N − K, n − k) ÷ C(N, n), shows the three binomial coefficients with their values, applies the cumulative rule you chose and lists a probability table over the possible range of k (which is limited on both sides when n is large). The mean nK/N and the variance with its finite population factor are reported.
When the population is much larger than the sample (N more than about 20 times n) the draws are nearly independent and the binomial distribution with p = K/N is a good approximation.
Result and step-by-step solution
Drawing 10 without replacement from 50 items of which 12 are successes. Mean nK/N = 2.4, SD = 1.2202
- FormulaP(X = k) = C(K, k) × C(N − K, n − k) ÷ C(N, n)
- Single term at k = 3P(X = 3) = C(12, 3) × C(38, 7) ÷ C(50, 10) = 220 × 12620256 ÷ 10272278170 = 0.27029
- Apply the ruleP(X ≤ 3) = 0.82094
- Probability table (possible k from 0 to 10)
k P(X = k) P(X ≤ k) P(X ≥ k) 0 0.04602 0.04602 1 1 0.19043 0.23645 0.95398 2 0.31421 0.55066 0.76355 3 0.27029 0.82094 0.44934 4 0.13303 0.95398 0.17906 5 0.0387 0.99268 0.04602 6 0.00664 0.99931 0.00732 7 0.00065 0.99997 0.00069 8 0.00003 1 0.00003 9 8.138 × 10^−7 1 8.203 × 10^−7 10 6.425 × 10^−9 1 6.425 × 10^−9
Frequently asked questions
- What is the difference between binomial and hypergeometric?
- Binomial draws with replacement (or from an infinite population), so p stays constant. Hypergeometric draws without replacement, so each draw changes the odds.
- What is the probability of exactly 2 aces in 5 cards?
- N = 52, K = 4, n = 5, k = 2: C(4,2) × C(48,3) ÷ C(52,5) = 6 × 17296 ÷ 2598960 = 0.0399.
- Why can't k be any value from 0 to n?
- You cannot draw more successes than exist (k ≤ K) or more failures than exist (n − k ≤ N − K). The table shows only the possible values.
- How do the parameters map to a TI-84 or Excel?
- Excel’s HYPGEOM.DIST(k, n, K, N) uses the same four quantities. SciPy’s hypergeom(M, n, N) uses M for the population, n for successes and N for draws.
Last reviewed: September 25, 2026. Calculations run in your browser and were validated against SciPy.
