COLLEGE BIOLOGY • EVOLUTION & NATURAL SELECTION

Hardy-Weinberg Equilibrium

The null model of population genetics that reveals when — and why — evolution occurs.

Historical Context & Motivation

In the early twentieth century, the rediscovery of Mendel's laws of inheritance created a paradox that troubled biologists and mathematicians alike. If dominant alleles are, by definition, expressed over recessive ones, why don't dominant phenotypes simply sweep through a population and eliminate recessive traits altogether? This misconception — sometimes called the dominant-allele fallacy — was widespread among early geneticists. The resolution came independently from two scholars working in different countries and different disciplines, establishing one of the most foundational principles in population genetics.

The intellectual landscape of the time was shaped by a fierce debate between the biometricians — who favored continuous, gradual variation as the substrate for Darwinian selection — and the Mendelians, who championed discrete, particulate inheritance. What was missing was a quantitative framework that could reconcile Mendelian genetics with population-level phenomena. The Hardy-Weinberg principle provided exactly that bridge, demonstrating mathematically that Mendelian inheritance alone does not change allele frequencies across generations.

1865
Mendel's Laws Published
Gregor Mendel publishes his work on inheritance in pea plants, establishing the particulate theory of heredity. His work remains largely unrecognized for 35 years.
1900
Rediscovery of Mendelian Genetics
De Vries, Correns, and Tschermak independently rediscover Mendel's principles, triggering intense debate about whether Mendelian inheritance is compatible with Darwinian evolution.
1908
Hardy & Weinberg Independently Derive the Equilibrium
G.H. Hardy, a British mathematician, and Wilhelm Weinberg, a German physician-geneticist, independently demonstrate that allele frequencies in a population remain constant across generations under idealized conditions — refuting the dominant-allele fallacy.
1918
Fisher's Foundational Paper
R.A. Fisher publishes 'The Correlation Between Relatives on the Supposition of Mendelian Inheritance,' using the Hardy-Weinberg framework to reconcile biometrics with Mendelian genetics and catalyze the Modern Synthesis.
1930s
The Modern Synthesis
Fisher, Haldane, and Wright integrate Hardy-Weinberg equilibrium into a comprehensive theory of evolutionary genetics, establishing population genetics as a quantitative discipline.

The central question that Hardy-Weinberg equilibrium addresses is deceptively simple: What happens to allele and genotype frequencies in a population when nothing acts to change them? By establishing this null model, the principle provides a baseline against which evolutionary forces — natural selection, genetic drift, mutation, migration, and non-random mating — can be detected and measured. In this sense, Hardy-Weinberg equilibrium is to population genetics what Newton's first law is to mechanics: a description of what happens in the absence of perturbing forces.

Core Principles & Assumptions

The Hardy-Weinberg principle rests on a set of idealized conditions that must all be satisfied simultaneously for allele frequencies to remain unchanged from one generation to the next. In reality, no natural population perfectly meets every assumption — and that is precisely the point. Deviations from Hardy-Weinberg expectations serve as evidence that one or more evolutionary mechanisms are at work. Understanding these five core assumptions is therefore essential to using the model as a diagnostic tool.

1

No Natural Selection

All genotypes have equal fitness — no allele confers a survival or reproductive advantage. Differential fitness drives directional, stabilizing, or disruptive selection, each of which alters allele frequencies.
2

No Genetic Drift

The population is infinitely large (or effectively so), eliminating random sampling error in allele transmission. In small populations, genetic drift causes stochastic fluctuations in allele frequencies.
3

No Mutation

No new alleles are created, and existing alleles are not converted to alternative forms. While mutation rates are typically low per locus per generation, they are the ultimate source of all genetic variation.
4

No Gene Flow

The population is completely isolated — no immigration or emigration introduces or removes alleles. Gene flow homogenizes allele frequencies between populations.
5

Random Mating

Individuals pair without regard to genotype or phenotype. Assortative mating, inbreeding, or sexual selection alters genotype — though not necessarily allele — frequencies.
KEY TAKEAWAY
Think of Hardy-Weinberg equilibrium like a control experiment in the laboratory of evolution. In a controlled experiment, you hold all variables constant so that any change in the outcome can be attributed to the factor you are testing. Similarly, HWE describes what a population looks like when no evolutionary forces are operating. When observed genotype frequencies deviate from HWE predictions, you know that at least one 'variable' — selection, drift, mutation, migration, or non-random mating — has been 'uncontrolled,' and you can begin to investigate which mechanism is responsible.

A critical distinction to keep in mind is that violating different assumptions produces different signatures. Non-random mating changes genotype frequencies (increasing homozygosity in the case of inbreeding) without altering allele frequencies, whereas natural selection typically changes both allele and genotype frequencies across generations. This nuance makes Hardy-Weinberg analysis a surprisingly powerful diagnostic framework for identifying which evolutionary forces are shaping a population.

Visualizing Allele & Genotype Frequencies

The relationship between allele frequencies and genotype frequencies under Hardy-Weinberg equilibrium can be visualized using a Punnett square scaled to population-level allele probabilities. Consider a single autosomal locus with two alleles, A (frequency = p) and a (frequency = q). Under random mating, the probability of any genotype in the offspring generation is simply the product of the corresponding gamete frequencies. The diagram below illustrates how the three genotype classes — AA, Aa, and aa — arise from the random union of gametes.

The population-level Punnett square shows how random mating produces genotype frequencies that are the algebraic expansion of (p + q)². The two heterozygote cells (Aa from A-egg × a-sperm, and Aa from a-egg × A-sperm) combine to give 2pq as the total heterozygote frequency.

Notice that the Punnett square is nothing more than a geometric representation of the binomial expansion (p + q)² = p² + 2pq + q². The key insight is that once allele frequencies are established, genotype frequencies are mathematically determined under the assumption of random mating. Furthermore, because p + q = 1 (there are only two alleles at this locus), the sum of all genotype frequencies must also equal 1. This elegant relationship means that knowing a single parameter — either p or q — is sufficient to predict the entire genotype distribution of the population at equilibrium.

Mathematical Framework

The mathematical formulation of Hardy-Weinberg equilibrium consists of two complementary equations. The first describes the constraint on allele frequencies; the second describes the resulting genotype frequencies. Together, they form a complete predictive model for a diploid, sexually reproducing population at a single autosomal locus with two alleles.

ALLELE FREQUENCY CONSTRAINT
p + q = 1
p = frequency of the dominant allele (A) in the population; q = frequency of the recessive allele (a). Because only two alleles exist at this locus, their frequencies must sum to unity. This allows you to calculate one frequency if you know the other: q = 1 − p.
GENOTYPE FREQUENCY EQUATION
p² + 2pq + q² = 1
= frequency of homozygous dominant (AA) individuals; 2pq = frequency of heterozygous (Aa) individuals; = frequency of homozygous recessive (aa) individuals. This is the algebraic expansion of (p + q)², reflecting the random combination of gametes during sexual reproduction.

Deriving Equilibrium in One Generation

A remarkable property of Hardy-Weinberg equilibrium is that genotype frequencies reach their equilibrium values after a single generation of random mating, regardless of the initial genotype distribution. To see why, consider a population with arbitrary initial genotype frequencies for AA, Aa, and aa. The allele frequency of A in the gamete pool is p = freq(AA) + ½ × freq(Aa), and similarly q = freq(aa) + ½ × freq(Aa). Under random mating, the offspring genotype frequencies will be p², 2pq, and q² — exactly the Hardy-Weinberg predictions. In subsequent generations, p and q remain unchanged, so the genotype frequencies also remain constant. Equilibrium is achieved and maintained indefinitely.

ALLELE FREQUENCY FROM OBSERVED GENOTYPES
p = f(AA) + ½ × f(Aa)
This formula calculates the frequency of allele A from observed genotype counts. f(AA) is the frequency of homozygous dominant individuals and f(Aa) is the frequency of heterozygotes. Equivalently, p = (2 × count of AA + count of Aa) / (2 × total individuals).
💡 Practical Entry Point
In many genetics problems, you are given the frequency of the homozygous recessive phenotype because it is the only genotype directly identifiable from phenotype alone (when dominance is complete). Set this value equal to , take the square root to find q, and then use p = 1 − q to obtain p. From there, all genotype frequencies follow.

Evolutionary Forces That Disrupt Equilibrium

The true power of the Hardy-Weinberg model lies not in describing static populations but in detecting evolution in action. When observed genotype frequencies deviate significantly from HWE predictions, we know that one or more of the five assumptions has been violated. Each evolutionary force produces a characteristic signature on allele and genotype frequencies, allowing researchers to use the chi-square goodness-of-fit test to quantify departures from equilibrium and identify the responsible mechanism.

The five evolutionary forces that disrupt Hardy-Weinberg equilibrium. Natural selection, genetic drift, mutation, and gene flow change allele frequencies (and consequently genotype frequencies), while non-random mating alters genotype frequencies without necessarily changing allele frequencies.
Comparison of evolutionary forces and their effects on Hardy-Weinberg equilibrium
Evolutionary ForceEffect on Allele FrequenciesEffect on Genotype FrequenciesExample
Natural SelectionChanges — favored alleles increase in frequencyChanges — shifts toward fitter genotypesSickle-cell allele maintained by heterozygote advantage in malaria-endemic regions
Genetic DriftChanges — random fluctuations, especially in small populationsChanges — stochastic departures from expected ratiosBottleneck in cheetah populations led to extreme homozygosity
MutationChanges — introduces new alleles at low ratesChanges — new genotypes ariseSpontaneous point mutations in tumor suppressor genes (e.g., TP53)
Gene FlowChanges — homogenizes frequencies between populationsChanges — recipient population shifts toward donorPollen dispersal between plant populations separated by a road
Non-Random MatingNo changeChanges — typically increases homozygosity (inbreeding)Self-pollination in Arabidopsis increases homozygote frequency

Worked Example: Cystic Fibrosis Carrier Frequency

One of the most clinically relevant applications of Hardy-Weinberg equilibrium is estimating carrier frequencies for autosomal recessive disorders. Cystic fibrosis (CF) is caused by homozygosity for loss-of-function mutations in the CFTR gene. Among individuals of European descent, approximately 1 in 2,500 newborns is affected. Using Hardy-Weinberg assumptions, we can estimate how many individuals in the population are heterozygous carriers — information that is critical for genetic counseling.

Estimating CF Carrier Frequency Using HWE
1
Step 1 — Identify the Known QuantityThe prevalence of cystic fibrosis in European-descent populations is approximately 1 in 2,500. Since CF is autosomal recessive, only individuals with the aa genotype display the disease phenotype. Therefore, the frequency of the homozygous recessive genotype is q² = 1/2,500.
q² = 1/2,500 = 0.0004
2
Step 2 — Calculate q (Recessive Allele Frequency)Take the square root of q² to find the frequency of the recessive allele (a) in the population: q = √(0.0004).
q = √0.0004 = 0.02
3
Step 3 — Calculate p (Dominant Allele Frequency)Using the allele frequency constraint p + q = 1, solve for p: p = 1 − q = 1 − 0.02.
p = 1 − 0.02 = 0.98
4
Step 4 — Calculate Carrier Frequency (2pq)The frequency of heterozygous carriers (Aa) is 2pq = 2 × 0.98 × 0.02. These individuals carry one copy of the CFTR mutation but do not exhibit CF symptoms.
2pq = 2 × 0.98 × 0.02 = 0.0392 ≈ 1 in 25
5
Step 5 — Interpret the ResultApproximately 1 in 25 individuals of European descent is a carrier for cystic fibrosis — nearly 4% of the population. This is a strikingly high carrier frequency for a potentially lethal recessive disorder, which has led researchers to hypothesize that heterozygote advantage (possibly resistance to cholera or typhoid fever) may maintain the CF allele at a frequency higher than expected from mutation-selection balance alone.
🧬 Clinical Significance
This result has direct implications for genetic counseling. If two unrelated individuals of European descent plan to have children, the probability that both are carriers is approximately (1/25) × (1/25) = 1/625. Given that two carriers have a 1/4 chance of having an affected child, the overall risk is (1/625) × (1/4) = 1/2,500 — consistent with the observed prevalence, which provides a satisfying internal check on the calculation.

Strengths & Limitations of the HWE Model

Like any scientific model, the Hardy-Weinberg equilibrium principle is a simplification of biological reality. Its value lies not in perfectly describing any real population, but in providing a rigorous null hypothesis against which observed data can be tested. Understanding both its strengths and limitations is essential for applying the model appropriately in research and clinical contexts.

Comparative strengths and limitations of the Hardy-Weinberg model
StrengthsLimitations
Provides a clear, testable null hypothesis for detecting evolutionary change in populationsAssumes only two alleles at a locus; many loci are multiallelic (extension to k alleles uses a multinomial expansion)
Enables estimation of carrier frequencies for recessive disorders from disease prevalence dataAssumes complete dominance; does not inherently account for codominance, incomplete dominance, or epistasis
Simple mathematical framework (two equations, two unknowns) that is accessible and computationally inexpensiveCannot distinguish which evolutionary force is responsible for a detected deviation — additional tests are needed
Equilibrium is reached in a single generation of random mating, making the model rapidly applicableAssumes a single, panmictic population; population structure (subpopulations) violates this assumption (Wahlund effect)
Foundational to advanced models including selection coefficients, drift simulations, and F-statisticsStatistical power to detect deviations requires large sample sizes; small samples yield unreliable chi-square tests
KEY TAKEAWAY
The Hardy-Weinberg model is analogous to the ideal gas law in chemistry: no real gas perfectly obeys PV = nRT, yet the equation is indispensable because deviations from ideal behavior reveal important information about intermolecular forces, molecular volume, and other real-world properties. Similarly, no real population is in perfect HWE, but the model's predictions provide a baseline that makes evolutionary forces measurable and quantifiable.

Connections to Advanced Population Genetics

The Hardy-Weinberg model serves as the foundation upon which more sophisticated population genetics models are built. Once you understand the equilibrium conditions, you can systematically relax each assumption and derive quantitative models for selection, drift, mutation, and migration. This section briefly previews several extensions that you will encounter in advanced coursework.

How Hardy-Weinberg extends into advanced population genetics frameworks
ConceptHardy-Weinberg (Basic)Advanced Extension
Number of AllelesTwo alleles (A, a) — binomial expansion (p + q)² = 1k alleles — multinomial expansion (p₁ + p₂ + ... + pₖ)² = 1; produces k(k+1)/2 genotype classes
SelectionNo selection (all genotypes have equal fitness w = 1)Selection coefficients (s) assigned to genotypes; Δp = pqs[ph + q(1−2h)] / w̄ where h = dominance coefficient
Population SizeInfinite population — no sampling errorEffective population size (Nₑ) governs drift magnitude; variance in allele freq ≈ p(1−p)/(2Nₑ) per generation
InbreedingRandom mating — genotype frequencies follow p², 2pq, q²Wright's F-statistic: heterozygosity reduced by factor (1−F); genotype freq of Aa = 2pq(1−F)
Population StructureSingle panmictic populationF-statistics (Fᵢₛ, Fₛₜ, Fᵢₜ) partition genetic variation within and between subpopulations; Wahlund effect predicts excess homozygosity when subpopulations are pooled

A particularly important extension involves the chi-square goodness-of-fit test for Hardy-Weinberg equilibrium. In practice, researchers genotype a sample of individuals, calculate expected genotype counts under HWE from the observed allele frequencies, and compare observed versus expected counts using χ² = Σ(O − E)² / E with one degree of freedom (for a two-allele system). A significant result (p < 0.05) indicates departure from equilibrium and prompts investigation into which evolutionary force may be responsible. This statistical framework connects Hardy-Weinberg directly to modern genome-wide association studies (GWAS), where HWE testing at each SNP is a standard quality-control step — markers that deviate strongly from HWE may indicate genotyping errors rather than genuine biological departures.

Practice Problems

PROBLEM 1CONCEPTUAL
A population of 10,000 organisms is in Hardy-Weinberg equilibrium at a locus with two alleles. If the population experiences strong inbreeding over several generations but no other evolutionary force operates, what will happen to the allele frequencies and genotype frequencies? Explain the distinction.
PROBLEM 2BASIC CALCULATION
In a population in Hardy-Weinberg equilibrium, 16% of individuals show the recessive phenotype (aa). Calculate the frequencies of alleles A and a, and determine the percentage of heterozygous carriers (Aa) in the population.
PROBLEM 3INTERMEDIATE
A geneticist surveys 500 individuals at the MN blood group locus (codominant alleles M and N). The observed genotype counts are: MM = 180, MN = 240, NN = 80. Calculate the allele frequencies, determine the expected genotype counts under HWE, and perform a chi-square test (α = 0.05, df = 1) to assess whether the population is in Hardy-Weinberg equilibrium.
PROBLEM 4APPLIED
Phenylketonuria (PKU) is an autosomal recessive metabolic disorder with a prevalence of approximately 1 in 10,000 among individuals of European descent. A genetic counselor is meeting with a couple — neither has PKU, and neither has a family history of the disorder. Using Hardy-Weinberg assumptions, estimate: (a) the probability that each partner is a carrier, and (b) the probability that their first child will have PKU.
PROBLEM 5CRITICAL THINKING
A researcher genotypes 1,000 individuals at a single locus and observes: AA = 400, Aa = 200, aa = 400. The researcher performs a chi-square test and finds a highly significant deviation from Hardy-Weinberg expectations. (a) Calculate the expected genotype frequencies under HWE and confirm the deviation. (b) Which assumption(s) of Hardy-Weinberg equilibrium are most likely being violated? (c) Propose a biological scenario that could explain these observations. (d) Explain why natural selection alone is unlikely to account for this pattern.

Summary

The Hardy-Weinberg equilibrium is the foundational null model of population genetics, independently derived in 1908 by G.H. Hardy and Wilhelm Weinberg. It states that in the absence of natural selection, genetic drift, mutation, gene flow, and non-random mating, allele frequencies remain constant across generations, and genotype frequencies are predicted by the equation p² + 2pq + q² = 1. Equilibrium genotype frequencies are achieved after just one generation of random mating and maintained indefinitely, provided all five assumptions hold.

The model's greatest utility lies in its role as a diagnostic baseline: deviations from HWE expectations reveal the action of evolutionary forces. Clinically, the model enables estimation of carrier frequencies for autosomal recessive disorders from disease prevalence data alone. Advanced extensions — including selection coefficients, Wright's F-statistics, effective population size, and the chi-square goodness-of-fit test — build directly on the HWE framework, making it an indispensable starting point for any quantitative study of evolution at the population level.

Varsity Tutors • College Biology • Hardy-Weinberg Equilibrium