Hypergeometric Calculator

Enter the population size, successes in the population, sample size and target successes to get the exact hypergeometric probability of drawing that many successes without replacement.

By Mustansar Iqbal Khan, independent developerUpdated

Hypergeometric Calculator

Result

Working it out…

Hypergeometric formula

N is the population, K the successes in it, n the number drawn and k the successes you want. C means combinations.

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

Example: cards

The chance of exactly 2 hearts in a 5-card hand from a 52-card deck (13 hearts) is about 27.4%.

Frequently asked questions

Is this a hypergeometric distribution calculator?

Yes. It uses the hypergeometric distribution to give the probability of exactly k successes, plus the cumulative probabilities P(X < k), P(X ≤ k), P(X > k) and P(X ≥ k).

When do I use hypergeometric instead of binomial?

When you draw without replacement from a small population, so each draw changes the odds.

Is it used in card games?

Yes. Magic: The Gathering and poker players use it to work out draw odds.

What is the mean?

n × K ÷ N.