Mathwords logoMathwords

Hardy-Weinberg Law — Definition, Formula & Example

The Hardy-Weinberg Law is a probability rule from genetics. It says that if a population mates at random and nothing disturbs it, the frequencies of its gene variants and genotypes stay constant from one generation to the next.

Consider a diploid locus with two alleles AA and aa at frequencies pp and q=1−pq = 1 - p. Assume random mating, a very large population, no selection, no mutation, and no migration. Then after one generation the genotype frequencies of AAAA, AaAa, and aaaa are p2p^2, 2pq2pq, and q2q^2, and they remain fixed in later generations. In probability terms, each genotype is two independent draws from the allele pool, so the number of AA alleles an individual carries follows a Binomial(2,p)\text{Binomial}(2, p) distribution.

Key Formula

p2+2pq+q2=1,p+q=1p^2 + 2pq + q^2 = 1, \qquad p + q = 1
Where:
  • pp = Frequency of the dominant allele A in the population
  • qq = Frequency of the recessive allele a, equal to 1 − p
  • p2p^2 = Expected frequency of homozygous dominant individuals (AA)
  • 2pq2pq = Expected frequency of heterozygous carriers (Aa)
  • q2q^2 = Expected frequency of homozygous recessive individuals (aa)

Worked Example

Problem: In a population of 2,000 deer, 9% show a recessive coat color, so they have genotype aaaa. Assume the population is in Hardy-Weinberg equilibrium. How many deer are expected to be heterozygous carriers (AaAa)?
Step 1: Only aaaa deer show the recessive trait, so the 9% equals q2q^2. Take the square root to find qq.
q2=0.09⇒q=0.09=0.3q^2 = 0.09 \quad\Rightarrow\quad q = \sqrt{0.09} = 0.3
Step 2: Use p+q=1p + q = 1 to find the frequency of the dominant allele.
p=1−0.3=0.7p = 1 - 0.3 = 0.7
Step 3: The carrier frequency is 2pq2pq. Multiply it by the population size.
2pq=2(0.7)(0.3)=0.42,0.42×2000=8402pq = 2(0.7)(0.3) = 0.42, \qquad 0.42 \times 2000 = 840
Answer: About 840 deer are expected to be carriers. As a check, 0.49×2000=9800.49 \times 2000 = 980 are AAAA and 0.09×2000=1800.09 \times 2000 = 180 are aaaa, and 980+840+180=2000980 + 840 + 180 = 2000.

Why It Matters

Genetic counselors use 2pq2pq to estimate how many people carry a recessive disorder such as cystic fibrosis, even though carriers show no symptoms. In population genetics courses, the law serves as the null model. You compare observed genotype counts to p2p^2, 2pq2pq, q2q^2 with a chi-squared test, and a significant gap signals selection, inbreeding, or migration.

Common Mistakes

Mistake: Setting qq equal to the fraction of individuals with the recessive trait, for example writing q=0.09q = 0.09 in the deer problem.
Correction: The recessive phenotype appears only in aaaa individuals, so that fraction is q2q^2, not qq. Take the square root first: q=0.09=0.3q = \sqrt{0.09} = 0.3. You also cannot find pp directly from the dominant phenotype, because it includes both AAAA and AaAa.

Related Terms