Back to homeAP® Biology · AP Biology · Change subject
Start for free
AP Bio · AP® Biology
AP Biology: Additional Course Content · Natural Selection and Population Genetics

Hardy-Weinberg Equilibrium

Newborn screening in the United States tests babies for rare recessive conditions like PKU. Roughly 1 in 10,000 to 15,000 babies has PKU, yet far more people carry one copy of the allele without ever knowing it. How can we estimate how many carriers there are when we can only see the people who actually have the condition? The Hardy-Weinberg model answers that question.

Allele frequencies and the null model

A population's gene pool is all the alleles of all its members. The allele frequency is the fraction of the gene pool made up of one allele. For a gene with two alleles, we call the dominant allele frequency $p$ and the recessive allele frequency $q$.

Every allele in the pool is either one or the other, so the frequencies must add up to 1:

$$p + q = 1$$

Evolution is a change in allele frequencies over generations. To detect change, you need a baseline: what would the frequencies look like if nothing were changing? The Hardy-Weinberg equilibrium is that baseline. A population stays in equilibrium only if all five conditions hold:

  1. No mutation (no new alleles appear or change).

  2. No gene flow (no migration of individuals or gametes in or out).

  3. Random mating (no preference for particular genotypes).

  4. No natural selection (all genotypes survive and reproduce equally well).

  5. Very large population size (no genetic drift from chance).

A gene pool bar split into p, the dominant allele, and q, the recessive allele, adding up to 1 p = 0.7 (A) q = 0.3 (a) Gene pool: p + q = 1 Every allele copy is either A or a
Practice★☆☆Not started
List the five conditions that must be met for a population to remain in Hardy-Weinberg equilibrium. Which of these conditions, if violated, introduces new alleles to a…

List the five conditions that must be met for a population to remain in Hardy-Weinberg equilibrium. Which of these conditions, if violated, introduces new alleles to a population?

Solve
Practice★☆☆Not started
In a population at Hardy-Weinberg equilibrium for a gene with two alleles, the frequency of the dominant allele is $p = 0.7$. Use $p + q = 1$ to find $q$, and state what…

In a population at Hardy-Weinberg equilibrium for a gene with two alleles, the frequency of the dominant allele is $p = 0.7$. Use $p + q = 1$ to find $q$, and state what $q$ represents.

Solve

The Hardy-Weinberg equation

Think of each parent as drawing one gamete from the gene pool. The chance of drawing $A$ is $p$ and the chance of drawing $a$ is $q$. Two gametes combine at random, so we multiply probabilities:

  • $AA$: $p \times p = p^2$

  • $Aa$: $p \times q$ and $q \times p$, so $2pq$

  • $aa$: $q \times q = q^2$

All genotypes together make up the whole population:

$$p^2 + 2pq + q^2 = 1$$
Term Genotype Meaning
$p^2$ homozygous dominant frequency of $AA$
$2pq$ heterozygous frequency of $Aa$ (carriers)
$q^2$ homozygous recessive frequency of $aa$
A Punnett-style square with sides p and q showing areas p squared, pq, pq, and q squared p² (AA) pq pq q² A (p) a (q) A (p) a (q)
Practice★☆☆Not started
In the equation $p^2 + 2pq + q^2 = 1$, state what each term represents (in terms of genotypes). Which term do you use to find the frequency of individuals showing a…

In the equation $p^2 + 2pq + q^2 = 1$, state what each term represents (in terms of genotypes). Which term do you use to find the frequency of individuals showing a fully recessive phenotype?

Solve

Working from the recessive phenotype

Here is the key trick. You can only see phenotypes. A dominant phenotype could be $AA$ or $Aa$, so you cannot count $p^2$ or $2pq$ directly. But the recessive phenotype can only be $aa$, so it tells you $q^2$. Start there.

This answers our opening question: most copies of a rare recessive allele are hidden in healthy carriers.

Practice★★☆Not started
In a hypothetical population in Hardy-Weinberg equilibrium, a recessive genetic disorder affects 1 in 2,500 people, so $q^2 = 0.0004$. (a) Calculate $q$ and $p$. (b)…

In a hypothetical population in Hardy-Weinberg equilibrium, a recessive genetic disorder affects 1 in 2,500 people, so $q^2 = 0.0004$. (a) Calculate $q$ and $p$. (b) Calculate the frequency of carriers ($2pq$). (c) In a city of 100,000 people, about how many carriers are expected?

Solve
Practice★★☆Not started
In a population assumed to be in Hardy-Weinberg equilibrium, 16% of individuals show a recessive phenotype. (a) Find $q$ and $p$. (b) Find the frequency of…

In a population assumed to be in Hardy-Weinberg equilibrium, 16% of individuals show a recessive phenotype. (a) Find $q$ and $p$. (b) Find the frequency of heterozygotes. (c) Find the frequency of individuals who are homozygous dominant.

Solve

Testing whether a population is in equilibrium

If you know the genotype counts, you can calculate allele frequencies by counting alleles, predict the genotype counts with Hardy-Weinberg, and compare. Each individual has 2 alleles, so a population of $N$ individuals has $2N$ alleles.

In practice, real counts rarely match perfectly. To decide whether a difference is just chance, AP Biology uses the chi-square test from the exam formula sheet:

$$\chi^2 = \sum \frac{(o-e)^2}{e}$$

Here $o$ is the observed count and $e$ is the expected count (from Hardy-Weinberg) for each genotype. Add the terms for all genotypes. A larger $\chi^2$ means the observed counts are farther from the expected counts. If $\chi^2$ is bigger than the critical value for your degrees of freedom (number of genotypes minus 1), the difference is unlikely to be chance alone. A large gap like the one above is a clear signal.

Practice★★☆Not started
A population of 500 snapdragons has 320 red flowers (RR), 160 pink flowers (Rr), and 20 white flowers (rr). (a) Calculate the frequency of the R and r alleles. (b) Use…

A population of 500 snapdragons has 320 red flowers (RR), 160 pink flowers (Rr), and 20 white flowers (rr). (a) Calculate the frequency of the R and r alleles. (b) Use the Hardy-Weinberg equation to find the number of each genotype expected in 500 plants. (c) Decide whether this population appears to be in Hardy-Weinberg equilibrium for this gene, and justify your answer.

Solve
Practice★★★Not started
A population of 200 lizards has 120 AA, 40 Aa, and 40 aa individuals. (a) Calculate $p$ and $q$. (b) Calculate the genotype counts expected if the population were in…

A population of 200 lizards has 120 AA, 40 Aa, and 40 aa individuals. (a) Calculate $p$ and $q$. (b) Calculate the genotype counts expected if the population were in Hardy-Weinberg equilibrium. (c) Compare observed with expected counts and identify which genotype is over- or underrepresented. (d) Suggest two Hardy-Weinberg conditions that could be violated to explain the pattern, and explain what genotype frequencies you would expect after one generation of random mating.

Solve

When a condition is violated: selection against a recessive

Suppose the recessive genotype is lethal before reproduction. Then selection is violated, and $q$ changes.

As $q$ gets smaller, carriers ($2pq$) vastly outnumber $aa$ individuals ($q^2$), so selection removes fewer and fewer $a$ alleles each generation. That is why $q$ declines slowly over many generations.

Practice★★★Not started
At birth, a large population is in Hardy-Weinberg equilibrium with $p = 0.6$ and $q = 0.4$ for a gene in which the recessive genotype (aa) is lethal before reproduction.…

At birth, a large population is in Hardy-Weinberg equilibrium with $p = 0.6$ and $q = 0.4$ for a gene in which the recessive genotype (aa) is lethal before reproduction. (a) Calculate the genotype frequencies at birth. (b) After the aa individuals die, calculate the new frequencies of AA and Aa among survivors and the new value of $q$ in the next generation's gametes. (c) Identify which Hardy-Weinberg condition is violated. (d) Explain why $q$ declines slowly over many generations even though all aa individuals are removed every generation.

Solve

Summary

  • Hardy-Weinberg equilibrium describes a non-evolving population: no mutation, no gene flow, random mating, no selection, very large population.

  • $p + q = 1$ for allele frequencies; $p^2 + 2pq + q^2 = 1$ for genotype frequencies.

  • Start from the recessive phenotype: $q^2 \to q \to p \to 2pq$.

  • Compare observed counts with expected counts to detect evolution; the model does not say which condition is violated.

  • Selection against a recessive allele is slow because most copies hide in carriers.

Back to the start: for a rare recessive condition, carriers far outnumber affected people, and Hardy-Weinberg lets you estimate them from $q^2$ alone.

See all the exercises in this section