Introduction to the
Hardy-Weinberg Equation
A complete interactive learning module on genetic equilibrium, allele frequencies, and evolutionary forces in populations.
The Hardy-Weinberg principle (also called Hardy-Weinberg equilibrium or HWE) is the foundational null model of population genetics. It was independently formulated in 1908 by the British mathematician Godfrey Harold Hardy and the German physician Wilhelm Weinberg. It states that in a large, randomly mating population free from evolutionary forces, allele and genotype frequencies will remain constant from generation to generation.
1.1 The Hardy-Weinberg Equation
Consider a gene locus with two alleles: A (dominant) with frequency p, and a (recessive) with frequency q. Since these are the only two alleles at the locus:
For a locus with exactly two alleles, the sum of their frequencies must equal 1 (100% of all alleles at that locus).
With random mating, the genotype frequencies in the next generation are predicted by the binomial expansion of (p + q)²:
p² — Homozygous Dominant
Expected frequency of genotype AA. These individuals carry two copies of the dominant allele.
2pq — Heterozygous
Expected frequency of genotype Aa. These individuals are carriers of the recessive allele but phenotypically dominant.
q² — Homozygous Recessive
Expected frequency of genotype aa. These individuals express the recessive phenotype and are detectable in the population.
1.2 The Five Conditions for Hardy-Weinberg Equilibrium
Hardy-Weinberg equilibrium is maintained only when all five conditions below are met simultaneously. In natural populations, these conditions are rarely — if ever — fully satisfied, making HWE a theoretical baseline rather than a description of reality.
- 1Large Population Size: Genetic drift (random fluctuations in allele frequency) is negligible only in very large populations. In small populations, chance events can significantly alter allele frequencies.
- 2Random Mating (Panmixia): Every individual must have an equal probability of mating with any other individual. Non-random mating, such as assortative mating or inbreeding, distorts genotype frequencies.
- 3No Mutation: The rate of mutation must be negligible so that no new alleles are introduced into the gene pool and existing alleles are not converted into other forms.
- 4No Gene Flow (Migration): There must be no immigration or emigration that would bring in or remove alleles from the population.
- 5No Natural Selection: All genotypes must have equal fitness — that is, equal survival and reproductive success. Selection for or against any genotype will shift allele frequencies over time.
1.3 Significance of Hardy-Weinberg Equilibrium
The HWE principle is fundamental to population genetics and evolutionary biology for several reasons. First, it provides the null hypothesis for population studies — if observed genotype frequencies deviate significantly from expected HWE frequencies (tested by chi-square analysis), researchers infer that one or more evolutionary forces are acting. Second, it allows estimation of carrier frequencies for recessive genetic disorders in human populations — a critical tool in genetic counselling. Third, it confirms that Mendelian inheritance in itself does not change allele frequencies, refuting early misconceptions that dominant alleles would automatically increase in frequency over generations.
1.4 Population Stability vs. Genetic Equilibrium
Population stability refers to maintenance of relatively constant population size and genetic diversity. It is governed by birth rates, death rates, immigration, emigration, mutation, and selection. Genetic equilibrium (HWE) is a more specific concept — constancy of allele and genotype frequencies — and requires the five conditions listed above. A population can be numerically stable but genetically evolving, or vice versa.
Deviations from HWE may indicate genetic drift (random allele frequency changes), gene flow (migration of individuals), mutation pressure, natural selection, or non-random mating. Each deviation is itself a potential evolutionary mechanism worth investigating.
Click any term to reveal its definition.
🔢 Allele Frequency Calculator & Genotype Bar Chart
Set allele frequencies p and q (must sum to 1.0) to see predicted HWE genotype frequencies.
The table below summarises the five evolutionary forces, the H-W condition each violates, and the direction of their effect on allele frequencies.
| Evolutionary Force | H-W Condition Violated | Effect on Allele Frequencies | Example |
|---|---|---|---|
| Natural Selection | No selection; equal fitness | Increases frequency of favoured allele; decreases deleterious allele | Sickle-cell allele maintained in malaria-endemic regions |
| Genetic Drift | Large population size | Random increase or decrease; fixation or loss possible | Founder effect in isolated human populations |
| Gene Flow (Migration) | No migration | Introduces new alleles; homogenises frequencies between populations | Colour morphs in bird populations across continents |
| Mutation | No mutation | Introduces new alleles; generally very slow rate per generation | De novo mutations in germ cells |
| Non-random Mating | Random mating (panmixia) | Alters genotype frequencies without changing allele frequencies | Inbreeding — increases homozygosity |
In a population, albinism (autosomal recessive) affects 1 in 10,000 individuals. Assuming Hardy-Weinberg equilibrium, calculate: (a) the frequency of the recessive allele q, (b) the frequency of the dominant allele p, and (c) the frequency of carriers.
Identify the frequency of homozygous recessives (q²) from the problem statement.
Calculate q by taking the square root of q².
Calculate p using the fundamental relationship p + q = 1.
Calculate the carrier frequency (heterozygotes, Aa) using the HWE formula.
Test your understanding of the Hardy-Weinberg principle. Answer each question to see immediate feedback with explanation.
Complete each statement using your knowledge of the Hardy-Weinberg principle.
1. In a population at HWE, if p = 0.6, the frequency of homozygous dominant genotype (AA) is .
2. The sum of allele frequencies at a two-allele locus is always .
3. The evolutionary force that involves random changes in allele frequency in small populations is called .
4. Non-random mating violates the HWE condition of .
5. The genotype frequency of heterozygotes (Aa) in a HWE population is given by the expression .
Drag each item into the correct category: conditions required for HWE, or factors that disrupt HWE.
Simulate how allele frequencies change over generations when HWE conditions are violated. Adjust the settings and observe how frequency of allele a (q) evolves.
Solve these problems and click to reveal the answer and explanation.
After completing this module, you should be able to: (1) state and explain the Hardy-Weinberg equation; (2) list and explain all five conditions of HWE; (3) calculate allele and genotype frequencies given observed data; (4) identify and explain the evolutionary forces that disrupt HWE; and (5) apply HWE to estimate carrier frequencies in human genetics problems.
0 Comments