Hypergeometric Distribution Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Statistics Hub

The hypergeometric distribution models the number of successes in n draws from a finite population of N items containing exactly K successes, without replacement. Unlike the binomial distribution, each draw changes the probability for subsequent draws.

Enter the population size N, number of success items K, and sample size n. The calculator computes PMF, CDF, mean, variance, and the full probability table for k = 0, 1, …, min(n, K).

Formula

P(X = k) = C(K, k) × C(N−K, n−k) / C(N, n)

N
total population size
K
number of success items in population
n
number of draws (sample size)
k
observed number of successes (0 ≤ k ≤ min(n, K))
C(a, b)
binomial coefficient "a choose b"

Parameters

Total population size

Success items in population

Sample / draw size

P(X = k) and P(X ≤ k)

Hypergeometric vs Binomial — Key Differences

FeatureHypergeometricBinomial
SamplingWithout replacementWith replacement (or infinite population)
Trial independenceTrials are dependentTrials are independent
ParametersN, K, nn, p
MeannK/Nnp
VariancenKM(N−n) / [N²(N−1)]np(1−p)
Finite pop. correctionYes: (N−n)/(N−1)No (= 1)
Use whenn/N > 5%n/N ≤ 5% (or replacement)

Disclaimer

For educational and exploratory use only. Results use exact combinatorial computation which may be slow for very large N.

Frequently Asked Questions