Hardy-Weinberg Equilibrium Guide: The Equation That Reveals When Evolution Is Happening
The Hardy-Weinberg principle, independently derived in 1908 by British mathematician G.H. Hardy and German physician Wilhelm Weinberg, provides a mathematical null hypothesis for evolution. If a population's allele frequencies match the Hardy-Weinberg prediction, evolution is not occurring. Deviations tell you exactly how and why it is.
Key Takeaways
- p² + 2pq + q² = 1 predicts genotype frequencies from allele frequencies under no evolution
- p = dominant allele frequency, q = recessive allele frequency; p + q = 1
- q² = frequency of homozygous recessive — the only directly observable genotype from phenotype
- Deviations from HWE reveal selection, inbreeding, genetic drift, migration, or assortative mating
- Used in medical genetics to estimate carrier frequencies for autosomal recessive diseases like cystic fibrosis
The Hardy-Weinberg Equation Explained
Consider a gene with two alleles: A (dominant, frequency p) and a (recessive, frequency q). Since there are only two alleles at this locus, p + q = 1. In a randomly mating population with no evolutionary forces, the expected genotype frequencies after one generation are:
- AA (homozygous dominant): p² — probability both alleles drawn from pool are A
- Aa (heterozygous carrier): 2pq — two ways to get one A and one a
- aa (homozygous recessive): q² — probability both alleles are a
These frequencies sum to 1: p² + 2pq + q² = 1. This is a mathematical identity (it's just (p+q)² expanded) — which is why the principle holds for any allele frequencies, not just 50/50.
Practical Application: Estimating Carrier Frequency
Cystic fibrosis (CF) is an autosomal recessive disease. Approximately 1 in 2,500 Europeans are born with CF (homozygous recessive, aa). Using Hardy-Weinberg to find the carrier frequency:
Cystic Fibrosis Carrier Frequency Calculation
This closely matches observed carrier rates (~1/22–1/25 in Caucasian populations), validating the HWE approach for estimating carrier frequencies of recessive diseases.
The 5 Conditions and What Violations Mean
Random mating
Assortative mating (people choosing partners by phenotype) increases homozygosity; inbreeding increases q²
No mutation
New mutations shift allele frequencies slowly; mutation pressure in both directions creates mutation-selection balance
No migration (gene flow)
Immigrants introduce new alleles; gene flow homogenizes frequencies between populations
No natural selection
Differential survival/reproduction shifts p and q over generations — the mechanism of Darwinian evolution
Large population size
Small populations experience genetic drift — random allele frequency changes. Can fix deleterious alleles or eliminate beneficial ones
Calculate Hardy-Weinberg Frequencies
Hardy-Weinberg Calculator
Calculate allele and genotype frequencies, determine if a population is in Hardy-Weinberg equilibrium, and estimate carrier frequencies for recessive traits.
Open Hardy-Weinberg Calculator →