AP Biology · Unit 7 · Topic 7.5

7.5 Hardy-Weinberg Equilibrium

6-minute read1 picture1 sim1 work-it problem3 practice questions

TLDR

The Hardy-Weinberg model describes a population that is not evolving. For a gene with two alleles, p + q = 1 (p is the frequency of one allele, q of the other) and, after one round of random mating, the genotype frequencies are p² (AA) + 2pq (Aa) + q² (aa) = 1. They come from multiplying: an AA zygote needs an A egg and an A sperm (p × p), and Aa can form two ways, so it is 2pq. If all five conditions hold (no mutation, random mating, no gene flow, a very large population and no natural selection), p, q and the genotype frequencies stay the same every generation. Real populations rarely meet all five, so the model is a null hypothesis: compare real counts with p², 2pq and q² (often with chi-square), and a real difference means at least one condition is broken. A change in allele frequency is evolution; nonrandom mating alone shifts the genotypes but not p and q. With complete dominance, only aa shows the recessive trait, so q² = the recessive phenotype frequency, q = √q², and carriers (2pq) usually far outnumber affected individuals.

Guess firstAbout 1 in 10,000 newborns of European ancestry has PKU, a recessive genetic condition. Assuming Hardy-Weinberg equilibrium, about how many people in that population are carriers (heterozygous)?

Pick one now. The page tells you if you were right at the end, after the picture and the sim show you why.

The whole topic in one picture

A gene pool jar with 14 A and 6 a alleles (p = 0.7, q = 0.3); a probability tree of random mating giving AA 0.49, Aa 0.21 plus aA 0.21, and aa 0.09; a next generation of 100 beetles with 49 AA, 42 carriers that look dominant, and 9 light aa beetles; a recount showing p and q unchanged; and the five conditions for equilibriumGene pool1AAaAAAaAAAAaAAAaAaAAp = 0.7q = 0.3Random mating2eggsperm0.70.3AaAaAa0.70.30.70.3AA 0.49Aa 0.21aA 0.21aa 0.09Aa + aA = 2pq = 0.42Next generation349 AA42 Aa9 aaCount the alleles again4A: 2×49 + 42 = 140 of 200 → p = 0.7a: 2×9 + 42 = 60 of 200 → q = 0.3Same p and q: no evolutionHolds only if all five hold5No mutationRandom matingNo gene flowNo selectionVery large population
One generation of random mating in a population at Hardy-Weinberg equilibrium: a gene pool with p = 0.7 and q = 0.3, a probability tree for random mating, 100 offspring beetles, a recount of the alleles and the five conditions. Original diagram, Green Flask Science.
  1. The gene pool: p + q = 1. Think of every allele of one gene in the population as a marble in a jar. Here 14 of every 20 are A and 6 are a, so p = 0.7 and q = 0.3. With only two alleles, the two frequencies always add up to 1, whether or not the population is evolving.
  2. Random mating: multiply the chances. With random mating, each egg and each sperm is a random draw from the jar. An AA offspring needs an A egg and an A sperm: 0.7 × 0.7 = 0.49 (p²). An aa offspring needs two a: 0.3 × 0.3 = 0.09 (q²). An Aa offspring forms two ways (A egg with a sperm, or a egg with A sperm), so it is 0.21 + 0.21 = 0.42 (2pq). The three add up to 1.
  3. The next generation: p², 2pq, q². Out of 100 offspring, expect 49 AA, 42 Aa and 9 aa. If the dark color allele A is dominant, the 42 carriers look exactly like AA, and only the 9 aa show the light phenotype. That is why the recessive phenotype gives you q² directly, and why carriers outnumber affected individuals when q is small.
  4. Count the alleles again: nothing changed. Each AA has two A, each Aa one A and one a, each aa two a. A = 2 × 49 + 42 = 140 of 200 alleles, so p is still 0.7, and q is still 0.3. Allele and genotype frequencies stay the same generation after generation: the population is not evolving. This is the null model you test real data against.
  5. The five conditions. Equilibrium holds only with no mutation, random mating, no gene flow, a very large population (no genetic drift) and no natural selection. Break one and the population can leave equilibrium: selection, drift, gene flow and mutation change p and q (evolution), while nonrandom mating such as inbreeding changes the genotype frequencies (fewer heterozygotes) without changing p and q.
Hardy-Weinberg equilibrium
The state of a population whose allele and genotype frequencies stay the same from generation to generation because all five conditions hold. It describes a population that is not evolving.
Allele frequency (p and q)
The fraction of all copies of a gene in the gene pool that are one allele. Count alleles, not individuals: each diploid individual has two. p + q = 1.
Genotype frequencies (p², 2pq, q²)
The expected fractions of AA, Aa and aa after random mating. 2pq has a 2 because a heterozygote can get A from either parent.
Carrier
A heterozygote (Aa) for a recessive allele. It shows the dominant phenotype but passes the recessive allele to about half of its gametes.
The five conditions
No mutation, random mating, no gene flow, a very large population (no drift) and no natural selection. Real populations rarely meet all five.
Null hypothesis
The prediction of no effect, here that the population is in Hardy-Weinberg equilibrium. A chi-square test can reject it or fail to reject it, never prove it.

What the exam hands you, and what it doesn't

On the exam already

  • Hardy-Weinberg: p + q = 1 and p² + 2pq + q² = 1, where p is the frequency of the dominant allele and q of the recessive allele
  • Chi-square: χ² = Σ (o − e)² ÷ e, with degrees of freedom = number of categories − 1
  • The chi-square critical value table (at p = 0.05: df 1 = 3.84, df 2 = 5.99)
  • A calculator for the whole exam

You bring

  • Which genotype is which term: p² = AA, 2pq = Aa, q² = aa. The 2 is there because Aa forms two ways
  • The route from a recessive phenotype: q² = (number showing it) ÷ (total), then q = √q², p = 1 − q, carriers = 2pq × N. It works only with complete dominance and when you may assume equilibrium
  • When all three genotypes can be seen (codominance, incomplete dominance or a DNA test), count alleles: q = (2 × aa + Aa) ÷ 2N
  • The five conditions, and which one a scenario breaks: nonrandom mating changes genotype frequencies only; selection, drift, gene flow and mutation change allele frequencies
  • Null hypothesis wording: fail to reject or reject, never accept or prove

Try it: Equilibrium bench

Pick one condition to break, set the starting q and the number of generations. Compare the Hardy-Weinberg prediction with the population, and watch whether q itself moves.

Work it: Has it left equilibrium?

A census gave q years ago; this year's sample shows every genotype. Count the alleles, find the expected heterozygotes, run chi-square, then decide what changed. Then try a new population.

In the full Unit 7 review: the full lesson, Population Genetics and Hardy-Weinberg (shared with 7.4 and 7.6), draws the p-by-q square for p = 0.6, has a Work It from the number of people showing a recessive trait to the number of carriers (starting with cystic fibrosis), a Sort It that matches ten real situations to the condition each one breaks, and a chi-square Work It on a wildflower census, alongside a six-population genetic drift Run It, a Graph It on population size and heterozygosity, the lines of evidence for evolution and a Justify It on drift.

How it shows up on the exam

  • Calculation items: from a recessive phenotype count to q², q, p and the number of carriers, or from genotype counts to allele frequencies. The two most common misses are using q² as if it were q, and using pq instead of 2pq for heterozygotes. Read whether the question gives a phenotype, a genotype or an allele.
  • Which condition is broken: a scenario (migrants arrive, a storm leaves a few survivors, mates are chosen by color, one genotype survives better) and its effect on allele or genotype frequencies. On free response, "identify" wants the condition named; "explain" wants how it changes p and q (or only the genotypes, for nonrandom mating).
  • Data and statistics: compare observed genotype counts with p²N, 2pqN and q²N, often with chi-square from the reference sheet. State the null hypothesis, say reject or fail to reject (never accept or prove), and use numbers. A change in allele frequency between generations means the population evolved even if each generation fits p², 2pq and q².

Find the wrong line

In a population of 1,200 rock pocket mice, dark fur is dominant and 108 mice have light fur. Assuming Hardy-Weinberg equilibrium, how many mice are expected to be heterozygous? Click the line with the mistake.

Practice: 3 questions

Original AP-style questions. Every wrong choice is a real trap, and the explanation names it.

1

Which change, by itself, would alter the genotype frequencies of a population without changing its allele frequencies?

2

A population of 1,000 beetles was sampled in two generations. Generation 1: AA 360, Aa 480, aa 160. Generation 8: AA 490, Aa 420, aa 90. Which claim do the data best support?

3

In a region where malaria is common, a survey of adults finds more people heterozygous for the sickle-cell allele (HbA HbS) than 2pq predicts from the population's allele frequencies. Which explanation is best supported?

How it connects

Ideas from this topic show up again in other topics. These are the links the exam uses most.

Back to your guessAbout 1 in 10,000 newborns of European ancestry has PKU, a recessive genetic condition. Assuming Hardy-Weinberg equilibrium, about how many people in that population are carriers (heterozygous)?

Answer: A. About 1 in 50. Only aa individuals have PKU, so q² = 1/10,000 = 0.0001 and q = √0.0001 = 0.01. Then p = 0.99 and carriers are 2pq = 2 × 0.99 × 0.01 ≈ 0.02, about 1 in 50. For every person with the condition there are about 200 carriers, because almost every copy of a rare recessive allele is hidden in a heterozygote. The picture's 42 carrier beetles against 9 light ones show the same thing at q = 0.3.

Quick questions

What are the five conditions for Hardy-Weinberg equilibrium?

No mutation, random mating, no gene flow (no migration), a very large population (so no genetic drift) and no natural selection. If all five hold, allele and genotype frequencies stay the same every generation. Breaking any one can move the population off equilibrium.

When can I use q² = the frequency of the recessive phenotype?

When the trait has complete dominance (only aa shows the recessive phenotype) and the question lets you assume Hardy-Weinberg equilibrium. If all three genotypes can be seen, as with codominance or incomplete dominance, count alleles instead: q = (2 × aa + Aa) ÷ 2N.

Why use Hardy-Weinberg if no real population meets all five conditions?

Because it is the null model: it says exactly what the genotype counts would be with no evolution. When real counts differ from p², 2pq and q² by more than chance (a chi-square test), you know at least one condition is broken, and the pattern points to which one.

Go deeper

Population Genetics and Hardy-Weinberg: the full Unit 7 lesson

About 14 minutes of interactive slides on topics 7.4 to 7.6, with data and graph practice, drawings you build yourself, a diagnostic that finds your weak spots, a 50-question bank and AI-scored free response.