BioBlog Labs

Population Genetics Simulator

PopG Online

This is an online one-locus, two-allele genetic simulation tool, inspired by the classic population genetics program PopG. It can simulate multiple subpopulations and enables you to observe the effect of natural selection, mutation, migration, and genetic drift on allele frequencies.

It calculates allele frequencies in each generation according to the Wright–Fisher model, one of the foundational models in population genetics used to describe the evolutionary dynamics in finite populations, which assumes that there is no overlap of generations, and that each copy of the gene found in a new generation is drawn independently and at random from all copies of the gene in the previous generation.

This tool enables you to:

How to use the simulator

Go ahead and test various selection intensities, mutation rates, and migration fractions to see how allele frequencies respond!

This tool is based on the wonderful PopG software developed by Joe Felsenstein at the University of Washington, reproduced and modified with permission as per its copyright notice (Apr 2025). PopG is a program first written in the 1970s but that was still used in my Genetics undergraduate workshops five decades later to easily visualise the effects of selection, mutation, migration, and drift. While there are benefits to offline, local software, each student having to download the program, ensure they have Java installed, and (on macOS) bypass Gatekeeper, was inconvenient. This tool enables learners to take advantage of PopG's main functionality right in their web browser - no downloads required. This also enables ChromeOS, iPadOS, and mobile users to join in!

'Buy me a coffee' donation button