Genetic Drift Calculator
Calculate the effects of genetic drift on allele frequencies in finite populations.
Population Parameters
Key Concept
Genetic drift causes random changes in allele frequency, with stronger effects in smaller populations. Drift rate = 1/(2N) per generation.
Drift Effects
Fixation Probabilities
Frequency Distribution
Heterozygosity Retention
What Is Genetic Drift?
Genetic drift is the random change in allele frequency from one generation to the next caused purely by chance sampling of gametes, not by natural selection. Because every finite population draws a limited sample of alleles to form the next generation, the observed frequency wobbles up and down even when no allele is favored. This genetic drift calculator quantifies that wobble, predicting how quickly variation is lost and how likely an allele is to drift to fixation (frequency 1) or loss (frequency 0) in a population of a given size.
The single most important rule in drift theory is that its strength scales inversely with population size. In a small population, the random sampling error is large, so allele frequencies lurch dramatically each generation; in a large population, the law of large numbers smooths the change and drift becomes weak. That is why the calculator highlights the drift rate of 1/(2N) per generation: it is the expected proportion of heterozygosity (genetic variation) lost every generation. A population of 10 loses 5% of its variation per generation, while a population of 1,000 loses only 0.05%.
Drift matters for conservation genetics, animal and plant breeding, microbial evolution, and human population history. Small or recently bottlenecked populations are especially vulnerable because drift can fix harmful alleles and erode the adaptive potential stored in genetic diversity. Use this genetic drift calculator alongside Hardy-Weinberg and effective population size tools to see how chance, rather than selection, reshapes the gene pool over many generations.
How the Genetic Drift Calculator Works
You supply three values: the population size (N), the initial allele frequency (p) between 0 and 1, and the number of generations to project. From these the calculator derives every output using standard Wright-Fisher population-genetics equations. The core engine treats each generation as a binomial sampling event of 2N gene copies, so the variance introduced by drift is p(1 − p)/(2N) per generation.
Heterozygosity is the headline metric. The expected heterozygosity retained after t generations follows a simple geometric decay, (1 − 1/(2N))t, and the complement of that value is the cumulative fraction of variation lost to drift. The calculator also reports the long-run probability of fixation, which under neutral drift equals the starting frequency p itself, and the matching probability of loss, which is 1 − p. This elegant result means that a neutral allele's destiny is decided entirely by its current abundance.
To describe the spread of possible outcomes, the tool computes the standard deviation of allele frequency after t generations and an approximate 95% confidence interval using ±1.96 standard deviations, clamped to the biologically valid range of 0 to 1. Finally, it estimates the average number of generations until an allele becomes fixed or lost using diffusion-theory mean-time formulas, and it draws five random sample trajectories so you can see how individual populations diverge despite sharing identical starting conditions.
Genetic Drift Core Equations
Where:
- N= Population size (number of diploid individuals)
- p= Initial frequency of the allele (between 0 and 1)
- t= Number of generations projected
- H_t= Fraction of heterozygosity retained after t generations
- Var= Variance in allele frequency added per generation
- 1/(2N)= Drift rate: expected heterozygosity lost each generation
Interpreting Your Drift Results
The results panel groups outputs into four ideas. The Drift Rate tile shows 1/(2N) as a percentage and is the cleanest measure of how fast variation erodes per generation; treat it as the speed dial of drift. The companion tile reports total heterozygosity lost after all your generations, derived from the geometric decay formula, while the Heterozygosity Retention bar visualises the percentage of variation still segregating.
The Fixation Probabilities block translates drift into long-term fate. Because P(fixation) = p for a neutral allele, an allele starting at 0.5 has a 50% chance of fixing and a 50% chance of being lost, whereas an allele at 0.1 will usually be lost. Expected time to fix and expected time to loss, measured in generations, come from diffusion approximations and grow with population size, so larger populations both drift more slowly and take longer to reach an extreme.
The Frequency Distribution block describes uncertainty. Variance per generation is the single-step sampling variance, the standard deviation after t generations accumulates that scatter, and the 95% confidence interval gives a plausible range for where the allele frequency could land. A wide interval signals strong drift and an uncertain genetic future; a narrow interval near the starting value indicates a large, stable population where drift is almost negligible.
Factors That Strengthen or Weaken Drift
Several biological realities modify how powerfully drift acts. The table below summarises the main drivers and the direction of their effect on the rate at which genetic variation is lost.
| Factor | Effect on Drift | Reason |
|---|---|---|
| Small population size | Stronger | Larger sampling error per generation (1/(2N) is big) |
| Population bottleneck | Stronger | Temporary crash slashes effective population size |
| Founder effect | Stronger | New colony carries a small, random allele sample |
| Gene flow / migration | Weaker | Immigrants reintroduce lost alleles |
| Large stable population | Weaker | Sampling error is tiny, frequencies stay near p |
Note that the calculator uses census size N, but real populations behave according to effective population size (Ne), which is usually smaller because of skewed sex ratios, unequal reproductive success, and fluctuating numbers across years. When Ne is much less than the census count, drift acts faster than the raw N suggests. Pair this tool with an effective population size calculator to correct for those realities before drawing conservation conclusions.
Real-World Applications of Drift Modeling
Conservation genetics is the most common use. Managers of endangered species run a genetic drift calculator to estimate how many generations of variation a small, isolated population can sustain before inbreeding depression and loss of adaptive alleles threaten survival. The heterozygosity retention output directly informs decisions about translocation, captive breeding, and minimum viable population targets.
In evolutionary biology, drift underlies the neutral theory of molecular evolution, which holds that most genetic differences between species are neutral changes fixed by chance rather than by selection. Researchers use fixation probabilities and mean fixation times to test whether observed patterns of variation are consistent with neutrality or require selection to explain. Microbiologists apply the same logic to clonal bacterial and viral populations, where drift shapes which neutral mutations sweep to fixation.
Plant and animal breeders watch drift carefully because small breeding lines lose useful alleles quickly. By projecting heterozygosity loss over the planned number of generations, a breeding program can schedule the introduction of fresh germplasm to keep variation high. Finally, in human population history, drift explains why isolated communities and the descendants of founder events carry distinctive allele frequencies, a pattern this calculator reproduces through its founder-effect-style small-N scenarios.
Worked Examples
Medium population over 50 generations
Problem:
A population of N = 100 starts with an allele at frequency p = 0.5. How much heterozygosity is lost after 50 generations, and what is the drift rate?
Solution Steps:
- 1Drift rate per generation = 1/(2N) = 1/200 = 0.005 = 0.5000%.
- 2Heterozygosity retained = (1 − 1/(2N))^t = (1 − 0.005)^50 = 0.995^50 ≈ 0.7783, so 77.83% remains.
- 3Total heterozygosity lost = 1 − 0.7783 = 0.2217 = 22.17%.
- 4Variance per generation = p(1 − p)/(2N) = 0.25/200 = 0.001250.
Result:
The drift rate is 0.5% per generation, and about 22.17% of heterozygosity is lost over 50 generations (77.83% retained).
Small population with biased starting frequency
Problem:
A small population of N = 10 begins with an allele at p = 0.25 and is projected for 20 generations. What are the fixation/loss probabilities and the variation lost?
Solution Steps:
- 1Probability of fixation = p = 0.25 = 25.00%; probability of loss = 1 − p = 0.75 = 75.00%.
- 2Drift rate = 1/(2N) = 1/20 = 0.05 = 5.0000% per generation (very strong drift).
- 3Heterozygosity retained = (1 − 0.05)^20 = 0.95^20 ≈ 0.3585, so 35.85% remains.
- 4Total heterozygosity lost = 1 − 0.3585 = 0.6415 = 64.15%.
Result:
This small population most likely loses the allele (75% chance) and sheds 64.15% of its variation in only 20 generations.
Large population resists drift
Problem:
A large population of N = 1000 starts at p = 0.1 over 100 generations. How stable is the allele frequency?
Solution Steps:
- 1Drift rate = 1/(2N) = 1/2000 = 0.0005 = 0.0500% per generation (very weak drift).
- 2Heterozygosity retained = (1 − 0.0005)^100 ≈ 0.9512, so only 4.88% is lost.
- 3Standard deviation after 100 generations = sqrt(p(1 − p)(1 − (1 − 1/(2N))^100)) ≈ sqrt(0.09 × 0.0488) ≈ 0.0663.
- 495% CI = p ± 1.96 × SD = 0.1 ± 0.130, clamped to [0.0000, 0.2299].
Result:
In a population of 1,000, drift is negligible: only 4.88% of variation is lost and the allele frequency stays within roughly 0 to 0.23.
Tips & Best Practices
- ✓Smaller populations drift faster — halving N roughly doubles the drift rate 1/(2N).
- ✓For neutral alleles, the fixation probability is simply the starting frequency p.
- ✓Enter effective population size (Ne), not census size, for realistic conservation estimates.
- ✓Heterozygosity retained follows (1 − 1/(2N))^t, a geometric decay you can verify by hand.
- ✓A wide 95% confidence interval means drift is strong and the outcome is uncertain.
- ✓Gene flow or migration counteracts drift by reintroducing alleles lost by chance.
- ✓Use the calculator before and after a bottleneck to see how much variation a crash destroys.
- ✓Combine drift projections with Hardy-Weinberg expectations to separate chance from selection.
Frequently Asked Questions
Sources & References
Last updated: 2026-06-05
Help us improve!
How would you rate the Genetic Drift Calculator?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Standard Mathematical References
by Various