Natural Selection Simulator

About this tool

A population of creatures whose colour is set by one gene with two alleles, so there are three shades: light, medium and dark. Pick the background, and in every generation predators catch the creatures that stand out most. The survivors mate at random, offspring inherit one allele from each parent, and each inherited allele can mutate at the rate you choose. Watch the population on its background, the count of each shade and the allele-frequency graph. Change the background mid-run, or switch predators off and use a small population to see genetic drift. A run code makes every run repeatable, so the class can compare predictions with results.

Classroom ideas

  • Ask students to predict the graph for a dark background, then run it and compare.
  • Change the background halfway through a run and discuss why the line turns round.
  • Switch the predators off with 12 creatures and run it several times to show genetic drift.

Related tools