Genetic drift is the random loss of genetic variation, and it is strongest in small populations. The genetic drift calculator takes the effective population size, the number of generations, the initial heterozygosity and the initial allele frequency, and gives the heterozygosity after drift, the share lost, the spread of the allele frequency, the fixation probability of a new neutral mutation and the expected time to fixation.
How the calculation works
- In a population of effective size Ne, random sampling of gametes each generation makes allele frequencies drift. Heterozygosity falls by a factor (1 − 1 ÷ (2 × Ne)) per generation.
- After t generations, Ht = H0 × (1 − 1 ÷ (2 × Ne))^t. The share lost is 1 minus that factor.
- The variance of the allele frequency after t generations is about p0 × (1 − p0) × (1 − (1 − 1 ÷ (2 × Ne))^t), and the standard deviation is its square root.
- A new neutral mutation has a chance of 1 ÷ (2 × Ne) of becoming fixed, and an allele that does fix takes about 4 × Ne generations on average.
Example
A population has Ne = 100, an initial heterozygosity of 0.5 and an allele at frequency 0.3. After 50 generations, the factor is 0.995^50 = 0.778. Heterozygosity falls to 0.389, a loss of 22.2 %, and the standard deviation of the allele frequency is 0.216. A new neutral mutation has a 0.5 % chance of fixing, and it would take about 400 generations.
Why it matters
Conservation biologists use these formulas to judge how fast a small population loses variation, and students meet them in every population genetics course. They show why population size matters for long-term survival.
Good to know
The formulas assume an ideal population with random mating, constant size, no selection, no mutation and no migration. Real populations depart from these assumptions. The variance formula is an approximation that works best while the allele frequency is far from 0 or 1.
Related tools
The Hardy-Weinberg calculator gives genotype frequencies in an ideal population, and the mutation rate calculator estimates mutation frequency.