Free~20 min · AP Biology

Natural Selection & Population Genetics

Darwin's engine of evolution

Key equationp^2 + 2pq + q^2 = 1 \quad (\text{Hardy-Weinberg})

Natural selection is the differential survival and reproduction of individuals with heritable traits better suited to their environment. Darwin's four postulates: variation exists in populations; variation is heritable; more offspring are produced than can survive; individuals with favorable traits survive and reproduce more. Hardy-Weinberg equilibrium describes allele frequencies in a non-evolving population (random mating, no selection, no mutation, no migration, large population). Deviations from H-W indicate evolution is occurring. Selection against recessive alleles is slow because heterozygotes 'hide' the allele. Genetic drift (random fluctuations, stronger in small populations) can fix or eliminate alleles regardless of fitness. Bottleneck and founder effects reduce genetic diversity. Over time, selection + isolation → speciation.

ProPremium experiment

Unlock Natural Selection & Population Genetics

Plus 148+ other Pro labs covering AP Physics, Biology, Chemistry, Earth Science, and Math — with unlimited simulation time, advanced parameters, and detailed analytics.

Start 7-day free trial$4.99 / month · cancel anytime
No credit card for trial Cancel in one click Student discount available

What is Natural Selection & Population Genetics?

Natural selection is the process by which heritable traits that improve reproductive success become more common in a population across generations. Darwin identified four conditions: individuals vary in heritable traits, populations overproduce offspring, resources are limited, and certain variants survive and reproduce more. Antibiotic resistance in bacteria, peppered moths during the Industrial Revolution, and beak depth shifts in Galapagos finches during drought years are all the same mechanism operating at different speeds. Selection is not a force that pushes species toward complexity or perfection — it only acts on the variation that already exists, and only favors traits that help right now in the current environment. This simulation tracks allele frequency change as the selection coefficient s moves from 0 (neutral) to 1 (lethal for the disfavored genotype).

Parameters explained

Selection Pressure
Selection Pressure controls how strongly the environment rewards one trait over another. At low values, survival differences are subtle, so allele and phenotype frequencies may shift slowly and random drift can remain visible. At high values, poorly matched individuals are removed from the breeding population much faster, producing a steeper evolutionary response. Use this slider to compare weak, moderate, and intense selection while keeping Mutation Rate and Population Size steady. The important idea is that selection does not make individuals change during life; it changes which inherited variants are more likely to appear in the next generation.
Mutation Rate
Mutation Rate controls how often new heritable variation enters the population during the simulation. A low setting makes the run mostly about selection acting on variation that already exists, while a higher setting continually introduces rare variants for selection or drift to act on. Mutation by itself is random with respect to usefulness: it can create helpful, harmful, or neutral changes. Try raising Mutation Rate while using the Antibiotic Resistance preset to see why rare resistant variants can matter when the environment changes. The slider helps separate the origin of variation from the filtering effect of natural selection.
Population Size(individuals)
Population Size sets how many individuals are represented in each generation. Larger populations tend to show smoother trends because random sampling errors average out across many births and deaths. Smaller populations make genetic drift more obvious: a trait can become common or disappear by chance, even when selection pressure is unchanged. Use 20 or 30 individuals to show noisy outcomes, then raise the slider toward 300 to show a more stable pattern. This control is useful for comparing deterministic selection with stochastic drift, especially when students repeat the same preset several times and notice that small populations do not always follow the same path.

Common misconceptions

  • Misconception"Survival of the fittest" means the physically strongest individuals survive.

    CorrectFitness in evolutionary biology means reproductive success — the number of viable offspring an individual contributes to the next generation. A small, "weak" organism that reproduces three times before dying has higher fitness than a large, strong one that reproduces once. Physical strength is only relevant if it translates into more surviving offspring in that specific environment.

  • MisconceptionNatural selection has a direction — species are always evolving toward becoming more complex or more advanced.

    CorrectSelection is purely local and immediate. It favors whatever traits increase reproduction in the current environment. Cave fish that lose their eyes under relaxed selection are not "degenerating" — losing costly eyes is adaptive when light is absent. Parasites that simplify their body plans are not primitive. There is no ladder of progress in evolution.

  • MisconceptionIf a trait is selected against, it will quickly disappear from the population.

    CorrectThe speed depends on how strong the selection pressure is, how common the trait already is, and how much random drift is present. A strongly disfavored visible trait can decline quickly, but rare variants may persist for many generations, especially in larger populations or when they are not always exposed to selection. Use the Selection Pressure slider to test how fast the population changes under weak versus intense pressure.

  • MisconceptionIndividuals evolve during their lifetimes in response to environmental pressure.

    CorrectIndividuals do not evolve — populations do. A single organism cannot change its allele frequencies. What selection does is change which individuals survive to reproduce, so the next generation has a different distribution of inherited alleles. This is the distinction between Darwinian evolution and Lamarckism: selection acts on existing variation, it does not create adaptive changes in response to need.

  • MisconceptionMutation drives evolution by directly producing the traits that selection then favors.

    CorrectMutation generates raw variation, but it does not know what the population needs. Most mutations are neutral or harmful in a given environment, and useful variants are usually rare. Natural selection changes how common variants become by filtering survival and reproduction after variation exists. The two processes work together: Mutation Rate affects how often new variants appear, while Selection Pressure affects which variants leave more descendants.

How teachers use this lab

  1. Selection pressure sweep: run the same preset with Selection Pressure set low, medium, and high, then ask students to compare how quickly trait frequencies shift and connect the pattern to NGSS standard HS-LS4-4.
  2. Drift vs. selection experiment: keep Selection Pressure moderate and run Population Size near 30 versus near 300 several times each. Students record which outcomes vary most and explain why small populations show stronger genetic drift.
  3. Preset comparison: assign groups to Peppered Moths, Antibiotic Resistance, and Beak Size (Finches). Each group identifies the environmental pressure, the selected trait, and the evidence that the population changed over generations.
  4. Mutation investigation: hold Population Size and Selection Pressure steady while raising Mutation Rate. Students distinguish the creation of new variation from the process that makes some variants more common.
  5. AP Free Response prep: provide a scenario where phenotype frequencies change after an environmental shift; ask students to identify which slider best represents the causal pressure and justify the answer with evidence from the simulation.

Frequently asked questions

What is the selection coefficient and how is it measured?

In population genetics, a selection coefficient estimates the fitness difference between variants. In this simulation, the Selection Pressure slider is the classroom-facing way to explore that idea. Low pressure means survival and reproduction differ only slightly between variants; high pressure means the environment filters variants much more strongly. Students do not need to calculate the coefficient to use the model, but they should connect stronger pressure with faster population-level change.

How do AP standards 1.A.1 and 1.A.2 map onto this simulation?

AP standard 1.A.1 addresses the concept that natural selection acts on heritable variation in traits, while 1.A.2 covers the four conditions required for natural selection to occur. In this simulation, Mutation Rate introduces new variation, Selection Pressure represents differential survival or reproduction, and the generational time axis demonstrates cumulative heritable change. Comparing presets helps students identify the environmental condition that makes a trait advantageous.

Why does allele frequency change slow down as the favored allele approaches fixation?

The per-generation change in p under selection against a recessive is Δp = spq² / (1 − sq²). As q approaches 0, both q and q² shrink rapidly, so Δp shrinks even though s stays constant. The math mirrors the biology: when q is small, almost all 'a' alleles are hidden in Aa heterozygotes where they experience no selection penalty. Selection can only act on the aa individuals it can see, and those become exponentially rarer.

What is the difference between natural selection and genetic drift?

Natural selection is deterministic: alleles with higher fitness reliably increase in frequency given enough time. Genetic drift is stochastic: allele frequencies change randomly due to sampling error in finite populations, with no relationship to fitness. In small populations (20–50 individuals), drift is often stronger than moderate selection (s = 0.1–0.2), and a beneficial allele can be lost by chance. NGSS standard HS-LS4-2 asks students to distinguish these mechanisms using evidence from allele frequency data.

What is AP standard 1.C.1 and how does this experiment address it?

AP standard 1.C.1 states that the distribution of phenotypes in a population can change over time due to natural selection, genetic drift, and other mechanisms. This experiment addresses it directly: the frequency graph shows how population traits shift in response to Selection Pressure, Mutation Rate, and Population Size. Comparing repeated runs isolates the contribution of each mechanism, which is precisely the type of experimental reasoning 1.C.1 targets.