science tinker

Natural selection simulator

Choose the colour of the bark and how hungry the birds are, then run the generations. Moths that stand out get eaten; the ones that blend in survive and pass on their alleles.

Natural selection

Natural selection is how living things change over many generations. It needs three things: variation (individuals differ), inheritance (the differences are passed on in genes) and a struggle to survive (not every individual survives to breed). Individuals with features that suit the environment survive and reproduce more, so the alleles for those features become more common. Over long periods this leads to evolution.

The peppered moth

Peppered moths rest on tree trunks during the day, where birds hunt them. Most were pale, which matched lichen-covered bark. During the Industrial Revolution in Britain, soot killed the lichen and blackened the trees. A dark form, caused by a single dominant allele, was rare at first, but it was now better camouflaged. Within about 50 years most moths near industrial cities were dark. After clean-air laws in the 1950s the trees became pale again, and the pale moths came back. Experiments by Bernard Kettlewell, and later by Michael Majerus, showed that birds really did eat more of the moths that stood out.

What the simulator shows

Each generation, birds eat a share of the moths that stand out and far fewer of the ones that match the bark. The survivors’ alleles make the next generation. Because the dark allele is dominant, both CC and Cc moths are dark. Try starting with 5% dark moths on soot-dark bark and watch the S-shaped rise, then switch the bark back to pale. Set the birds to 0% and the share only wanders by chance: that is genetic drift, not selection.

Selection pressure

The stronger the predation, the faster the change: the selection pressure is higher. Antibiotic resistance in bacteria works the same way, but much faster, because bacteria reproduce in minutes.

Questions students ask

What is natural selection in simple words?

Natural selection means that living things with features that suit their environment survive and reproduce more, so they pass those features on. Over many generations the useful features become common in the population.

Why did dark peppered moths increase during the Industrial Revolution?

Dark peppered moths increased during the Industrial Revolution because soot blackened the tree bark. Dark moths were better camouflaged, so birds ate fewer of them, and they passed on the dark allele to more offspring.

Do moths change colour to match the bark?

No. Each moth is born dark or pale because of its genes and cannot change. The population changes because more of the well-camouflaged moths survive to breed, not because individual moths change.

What is the difference between natural selection and genetic drift?

Natural selection changes allele frequencies because some alleles help survival. Genetic drift changes them purely by chance, which matters most in small populations.

More biology simulators

Check yourself

3 quick questions. Tap an answer to see if you are right.

1. Why did dark peppered moths become common near industrial cities?

2. Which is NOT needed for natural selection?

3. With no predators (0%), the share of dark moths…

Know someone who needs this?

It’s free for every student. Send it to your class group chat.

Updated · Free, no sign-up ·

Connected tools

The same idea from another angle, across the site.