AP Biology · Unit 7 · Topic 7.5
7.5 Hardy-Weinberg Equilibrium
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.
A is correct. 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.
B is wrong. Trap: 1 in 10,000 is q², the frequency of aa. Carriers are 2pq, a different genotype, and here they are far more common.
C is wrong. Trap: 1 in 100 is q = 0.01, the frequency of the allele, not of a genotype. Carriers are 2pq ≈ 0.02.
D is wrong. Trap: doubling q² is not 2pq. Find q first (√0.0001 = 0.01), then 2pq = 2 × 0.99 × 0.01.
Locked in. Keep reading, the answer is at the end of the page.
The whole topic in one picture
- 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.
- 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.
- 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.
- 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.
- 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.
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.
The mistake: 0.09 is q², the frequency of the aa genotype, not the frequency of the allele. The allele frequency is its square root. Mixing up q and q² is the most common Hardy-Weinberg mistake, and every later line inherits it.
q = √0.09 = 0.3, so p = 0.7 and 2pq = 2 × 0.7 × 0.3 = 0.42. Expected heterozygotes: 0.42 × 1,200 = 504 mice, more than four times the 108 light mice.
Practice: 3 questions
Original AP-style questions. Every wrong choice is a real trap, and the explanation names it.
Which change, by itself, would alter the genotype frequencies of a population without changing its allele frequencies?
A is wrong. Trap: that is gene flow. The newcomers bring alleles in different proportions, so p and q change.
B is wrong. Trap: that is a bottleneck. The survivors are a small random sample, so allele frequencies change by chance (drift).
C is correct. Inbreeding is nonrandom mating. Relatives share alleles, so more offspring are homozygous and fewer are heterozygous, but no allele is added or removed: p and q stay the same while the genotypes move away from p², 2pq and q².
D is wrong. Trap: mutation adds a new allele to the gene pool, which changes allele frequencies, even if only slightly.
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?
A is wrong. Trap: fitting the equation within one generation is not the test. Equilibrium means the frequencies stay the same across generations, and q moved from 0.4 to 0.3.
B is correct. Generation 1: q = (2 × 160 + 480) ÷ 2000 = 0.4. Generation 8: q = (2 × 90 + 420) ÷ 2000 = 0.3. Each sample happens to fit p², 2pq and q² for its own q, but the allele frequency changed between them, and a change in allele frequency over generations is evolution.
C is wrong. Trap: p + q = 1 is true of any two-allele population, evolving or not. It says nothing about change.
D is wrong. Trap: 420 is exactly 2 × 0.7 × 0.3 × 1,000, so there is no shortage of heterozygotes for that q. Aa fell because q changed.
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?
A is wrong. Trap: mating with the same genotype is nonrandom mating that makes more homozygotes, not more heterozygotes.
B is wrong. Trap: mutation is far too rare to produce a large, steady excess of one genotype.
C is wrong. Trap: drift is random and, on average, lowers heterozygosity. It cannot explain a consistent excess.
D is correct. Children are born in about the proportions 2pq predicts, but HbA HbS children survive malaria better than HbA HbA children and avoid sickle-cell disease (HbS HbS). By adulthood, selection has left extra heterozygotes: the no-selection condition is broken.
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.