The Hardy–Weinberg equation and its conditions

Ecosystems (Continuity and change) · Natural selection · note 7 of 7

Spec D4.1.13, D4.1.14
HL only (what this means)HL only: additional Higher Level content, only for HL students. SL students can skip it. What the labels mean
Download all Natural selection notes (PDF)Download all notes (PDF)8 pages

The Hardy–Weinberg equation and its conditionsSpec D4.1.13, D4.1.14

In short

The Hardy–Weinberg equation, p² + 2pq + q² = 1, predicts genotype frequencies from the two allele frequencies p and q, where p + q = 1. It holds only when a population is in genetic equilibrium: large, randomly mating, with no mutation, migration or selection. Frequencies that do not fit show a condition is not met.

For a gene with two alleles, p and q denote the two allele frequencies. Where one allele is dominant, p is usually the dominant allele and q the recessive allele. Every allele copy is one or the other, so p + q = 1, and with random combination of gametes the genotype frequencies are p², 2pq and q².

p + q = 1
p² + 2pq + q² = 1
What each term means
TermGenotype frequency
p²Homozygous dominant (AA)
2pqHeterozygous (Aa)
q²Homozygous recessive (aa)

Allele and carrier frequencies

In a population, 1 in 2500 people has a recessive genetic condition. Calculate the frequency of carriers (practice figures).

  1. q² = 1 ÷ 2500 = 0.0004
  2. q = √0.0004 = 0.02
  3. p = 1 − q = 0.98
  4. 2pq = 2 × 0.98 × 0.02 = 0.0392

Answer: Carrier frequency = 0.0392, about 3.9% or 1 in 26 people.

Maths skill:

Start from q², the homozygous recessive frequency, because it is the only genotype you can identify from the phenotype. Never take the square root of the dominant phenotype frequency.

Conditions for genetic equilibrium

  • A very large population, so chance changes (genetic drift) are negligible.
  • Random mating.
  • No mutation.
  • No migration into or out of the population (no gene flow).
  • No natural selection: all genotypes survive and reproduce equally.

If observed genotype frequencies do not fit the Hardy–Weinberg equation, one or more conditions is not being met, for example mating is non-random or survival rates vary between genotypes.

Quick check

  1. What generates new alleles?

    Show answer

    Mutation: a random change in the base sequence of a gene.

  2. Why are acquired characteristics not inherited?

    Show answer

    They are not encoded in the base sequence of genes.

  3. What is fitness?

    Show answer

    The survival value and reproductive potential of a genotype.

  4. HL only What does 2pq represent in the Hardy–Weinberg equation?

    Show answer

    The frequency of heterozygotes.

  5. HL only Is antibiotic resistance an example of artificial selection?

    Show answer

    No, it is natural selection; nobody chose which bacteria would reproduce.

Written and checked against the IB Biology HL specification · Updated October 2026

Frequently asked questions

How does natural selection lead to evolution?

Natural selection leads to evolution by making useful heritable traits more common over generations. Individuals vary, more offspring are produced than can survive, and those with better-adapted traits survive and reproduce more. They pass their alleles to offspring, so the allele frequencies of the population change over many generations.

What is the difference between Darwinism and Lamarckism?

Darwinism explains evolution by natural selection acting on heritable variation, while Lamarckism claimed that characteristics acquired during life were passed on. Acquired characteristics are not encoded in the base sequence of genes, so they cannot be inherited. Darwin's theory replaced Lamarckism, an example of a paradigm shift in biology.

What did Endler's guppy experiment show?

Endler's experiment showed that male guppy colour is a balance between sexual and natural selection. In ponds with no predator or only the weak predator Rivulus, males evolved more spots because females prefer colourful mates. In ponds with the dangerous pike cichlid, males evolved fewer spots because bright males were eaten.

All 4 questions on Natural selection

Finished natural selection? Test yourself:Exam questionsFlashcards