Life Sciences · Evolution

Natural Selection Lab

Predict which moth color will be harder for birds to spot. Then run a population through several generations and explain how a change in the environment shifts the traits that survive and reproduce.

Quick ID

  • Natural selection is not an organism trying to adapt
  • It needs three ingredients: variation, heritability, differential success
  • It acts on populations over generations, not individuals in a lifetime
  • It can be driven by predators, climate, food supply, disease, or mates
  • The result: allele and trait frequencies shift over time — evolution

The Three Requirements for Natural Selection

In 1811, almost every peppered moth resting on English tree bark was pale and speckled — camouflage against lichen-covered trunks. A century of coal smoke later, soot had blackened the trees, and in the worst industrial cities nearly every peppered moth was dark. No moth “decided” to change color. Birds found mismatched moths easier to see and eat. Natural selection happens when some heritable traits survive and reproduce better than others.

Charles Darwin and Alfred Russel Wallace independently pieced together the same logical chain in the 1850s. If these three things are all true of a population, natural selection is guaranteed to happen — it isn't optional, and it doesn't need anyone to intend it.

1

Variation

Individuals in a population differ from one another — in color, size, speed, chemistry, behavior. No two individuals are identical.

2

Heritability

At least some of that variation is passed from parent to offspring through genes, not just picked up from the environment during life.

3

Differential Survival & Reproduction

Some variants survive and reproduce more successfully than others, given the current environment — a predator, a climate, a food supply.

Natural Selection in the Real World

Industrial Melanism

Peppered Moths (Biston betularia)

Pale speckled moths camouflaged well on clean lichen-covered bark. As coal smoke darkened trees across industrial England, dark ("melanic") moths — once rare — became common in polluted cities because birds could no longer spot them as easily. As air quality improved after the Clean Air Act, pale moths rebounded. The trait never disappeared; only its frequency changed with the environment.

Galápagos, 1970s–present

Darwin's Finches

Peter and Rosemary Grant tracked beak size in medium ground finches for decades. A single severe drought that killed off small, easy-to-crack seeds left only tough, large seeds behind — and birds with slightly deeper, stronger beaks survived to breed. Average beak depth measurably increased in a single generation, then shifted back after wetter years favored smaller beaks again.

Ongoing, worldwide

Antibiotic Resistance

A bacterial population already contains huge genetic variation. An antibiotic kills nearly all of them — except the rare cells whose genes happen to confer resistance. Those survivors reproduce freely with no competition, and within days the population is dominated by resistant bacteria. This is natural selection acting in real time, on a scale of hours instead of centuries.

Peppered moth Biston betularia camouflaged against lichen-encrusted tree bark
Industrial Melanism · Field Observation Biston betularia (Peppered Moth) The pale speckled morph of the peppered moth resting on lichen-covered bark. When industrial coal smoke killed lichens and blackened trees in 19th-century England, dark melanic mutants gained differential survival against avian predators, rapidly increasing in population frequency. Photo: Gilles San Martin via Wikimedia Commons (CC BY-SA 2.0).
Comparative plate of Darwin's Galápagos finches illustrating diverse beak morphologies
Adaptive Radiation · Museum Specimen Plate Darwin's Finches: Beak Morphology & Ecological Niches Classic comparative plate showing the adaptive radiation of Galápagos finches (Geospiza). Divergent natural selection shaped beak depths and shapes over generations to exploit distinct food resources—from deep crushers for hard seeds to slender forceps for cactus nectar and insects. Plate: John Gould / modified via Wikimedia Commons (CC BY-SA 4.0).
Agar plate showing antibiotic disks with circular zones of bacterial clearing and resistant colonies
Microbial Selection · Laboratory Assay Antibiotic Selection: Kirby-Bauer Disk Diffusion A bacterial lawn incubated with antibiotic-impregnated paper disks. Clear circular zones of inhibition reveal where antibiotics kill sensitive bacteria; colonies growing inside the clearing zone represent resistant mutant strains that survived and reproduced under chemical selection. Photo: Bondarev.gal via Wikimedia Commons (CC BY 4.0).

Lab: Run a Population Through Generations

This is a population of 160 virtual moths. Each one carries a single heritable trait — body color, from pale (0.0) to dark (1.0) — shown as a dot color. Pick a selection pressure, set how strong it is, then step the population forward one generation at a time (or press Play) and watch the color histogram and trend line shift as the trait that survives best becomes more common.

Top: population · middle: trait histogram · bottom: generation trend
Generation 0
Mean trait 0.50
Dark morph ~50%
Last step: —
Reading the sim: dots that closely match the bark/target tone are hardest to select against and survive at higher rates. Every generation, survivors' offspring inherit a trait close to their parent's — plus a little random mutation — refilling the population back to 160.

Discussion Prompts

  • Set Selection Strength to 0% and run 30 generations. Does the trait still drift around? What does this tell you about the difference between natural selection and random genetic drift?
  • Switch from Predation to Cold Snap partway through a run. How many generations does it take the population to visibly shift toward the new optimum? Would a slower-reproducing species (like elephants) shift as quickly as this simulation?
  • Set Mutation Rate to 0%, run the population to an extreme, then flip the target tone to the opposite side. What happens, and why does that matter for real populations facing sudden environmental change?
  • The peppered moth story is sometimes summarized as "moths turned dark to hide from birds." Rewrite that sentence so it accurately describes what natural selection actually did.

Formative Check

In two or three sentences, explain why a population of moths that all have identical genes for color could never undergo natural selection for color, no matter how many birds hunted them. Name which of the three requirements is missing.