Freq(A) over generations1.0
Generation 0 Environment favors: A
Allele A (favored) Allele a Large population Small population (drift)
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Evolutionary Genetics Simulator

This simulator visualizes population genetics directly: two populations of organisms — one large, one small — carry two allele variants of the same gene at real Hardy-Weinberg proportions. Toggle which allele the simulated predator favors, tune the selection coefficient, and watch each generation reproduce under selection while the small population additionally drifts due to random sampling. The live chart tracks allele frequency across generations in both populations side by side, making the difference between deterministic selection and stochastic drift directly visible.