SECTION 1
Historical Context & Motivation
After Charles Darwin published On the Origin of Species in 1859, scientists knew that populations change over time. But a big question remained: how can you actually prove a population is evolving? You need a way to compare what a non-evolving population looks like with what you actually observe in nature. That is exactly the problem the Hardy–Weinberg principle was designed to solve.
1859 • Darwin's Natural Selection
1866 • Mendel's Inheritance Laws
1908 • Hardy–Weinberg Principle
1930s–40s • Modern Synthesis
The central question Hardy and Weinberg answered is: If nothing is causing a population to evolve, what should we expect the gene pool to look like? Once you know the answer to that question, you can compare real populations to this expectation. If they don't match, something is causing evolution.
SECTION 2
Core Principles & Definitions
Before diving into the math, let's nail down a few key ideas. A population is a group of organisms of the same species living in the same area that can interbreed. The collection of all the alleles in that population is called the gene pool. Evolution, at its most basic level, is a change in allele frequencies (how common each version of a gene is) in a population over time.
Hardy–Weinberg Equilibrium
Allele Frequency
The Five Conditions
Null Hypothesis Tool
Genotype Frequency
KEY TAKEAWAY
SECTION 3
Visual Explanation
The diagram below shows what happens to allele and genotype frequencies under Hardy–Weinberg equilibrium versus when evolution is occurring. On the left, the population stays in equilibrium across generations. On the right, a force like natural selection pushes allele frequencies in one direction.
Notice that in the equilibrium panel, every generation has the exact same mix of A and a alleles. Nothing is pushing the alleles in one direction. In the evolution panel, something (perhaps natural selection favoring A) causes the A allele to become more and more common. By generation 3, allele a has vanished entirely. The Hardy–Weinberg model gives you the "expected" picture on the left, so you can spot the "unexpected" picture on the right.
SECTION 4
Mathematical Framework
The Hardy–Weinberg principle uses two simple equations. The first describes allele frequencies, and the second predicts genotype frequencies. Together, they let you calculate exactly what a non-evolving population should look like.
ALLELE FREQUENCY EQUATION
p = frequency of the dominant allele (e.g., A). q = frequency of the recessive allele (e.g., a). Since these are the only two alleles for this gene, their frequencies must add up to 1 (100%).
GENOTYPE FREQUENCY EQUATION
p² = frequency of homozygous dominant (AA). 2pq = frequency of heterozygous (Aa). q² = frequency of homozygous recessive (aa). These three genotypes account for every individual, so they must also add to 1.
Where does p² + 2pq + q² come from? It is simply the expansion of (p + q)². When organisms mate randomly, each parent donates one allele. The chance of getting two A alleles is p × p = p². The chance of getting one of each (Aa) can happen two ways (A from mom and a from dad, or a from mom and A from dad), giving 2 × p × q = 2pq. The chance of two a alleles is q × q = q².
CONNECTING THE EQUATIONS
This is just the FOIL expansion you may have learned in algebra. Since p + q = 1, squaring both sides gives 1² = 1. This is the heart of Hardy–Weinberg.
Why Only Two Alleles?
SECTION 5
The Five Conditions for Equilibrium
Hardy–Weinberg equilibrium is like an ideal scenario — it only holds when five strict conditions are met. In reality, these conditions are almost never perfectly satisfied. That's actually the point! When you check a real population and find it doesn't match Hardy–Weinberg predictions, you can figure out which condition was violated and therefore which evolutionary force is at work.
| Condition | What It Means | If Violated, This Happens |
|---|---|---|
| No Mutation | DNA copying is perfect — no new alleles appear | New alleles enter the gene pool, changing frequencies over time |
| Random Mating | Organisms choose mates without preference for or against any genotype | Genotype ratios shift (though allele frequencies may still stay the same) |
| No Natural Selection | All genotypes survive and reproduce equally well | Favorable alleles increase; harmful alleles decrease |
| Large Population | The population is so big that random chance can't significantly shift allele frequencies | Genetic drift causes random changes, especially in small groups |
| No Migration | No organisms enter or leave the population | Gene flow adds or removes alleles, altering frequencies |
The five conditions and their evolutionary consequences when violated
SECTION 6
Worked Example
Suppose you are studying a population of 500 flowers. The flower color gene has two alleles: R (red, dominant) and r (white, recessive). You count 80 white flowers (genotype rr). Is this population in Hardy–Weinberg equilibrium?
Detecting Evolution in a Flower Population
- 1
Step 1 — Find q² from the data
White flowers have the genotype rr, so they represent q². There are 80 white flowers out of 500 total, so q² = 80 ÷ 500 = 0.16.q² = 0.16 - 2
Step 2 — Find q by taking the square root
To get q, take the square root of 0.16. q = √0.16 = 0.4. This means the r allele makes up 40% of all alleles in the population.q = 0.4 - 3
Step 3 — Find p using p + q = 1
Since p + q = 1, we get p = 1 − 0.4 = 0.6. The R allele makes up 60% of the gene pool.p = 0.6 - 4
Step 4 — Predict expected genotype frequencies
Using the Hardy–Weinberg equation: p² = (0.6)² = 0.36, so 36% should be RR. 2pq = 2 × 0.6 × 0.4 = 0.48, so 48% should be Rr. q² = 0.16, so 16% should be rr. Out of 500 flowers, that predicts 180 RR, 240 Rr, and 80 rr.Expected: 180 RR, 240 Rr, 80 rr - 5
Step 5 — Compare expected vs. observed
Now you would compare these expected numbers to the actual counts you observe. If you counted 180 RR, 240 Rr, and 80 rr — they match! The population is likely in equilibrium. But suppose you actually observed 200 RR, 220 Rr, and 80 rr. The genotype ratios would not match the prediction, suggesting at least one of the five conditions is being violated and the population may be evolving.Match → equilibrium; Mismatch → evolution likely occurring
SECTION 7
Strengths & Limitations
Like any model in science, the Hardy–Weinberg principle has both powerful uses and important limitations. Understanding both helps you apply the model wisely.
| Strengths | Limitations |
|---|---|
| Provides a clear mathematical baseline — you know exactly what "no evolution" looks like | The five conditions are almost never perfectly met in real populations, so true equilibrium is rare |
| Easy to use — requires only basic algebra (squares and square roots) | Only works for a single gene with two alleles in its basic form |
| Tells you that evolution IS happening, which prompts you to investigate which force is responsible | Does not tell you WHICH evolutionary force is acting — further investigation is needed |
| Widely used in medicine, conservation biology, and forensic science | Assumes diploid organisms with sexual reproduction — doesn't apply to all life |
Strengths and limitations of the Hardy–Weinberg model
KEY TAKEAWAY
SECTION 8
Connection to Advanced Population Genetics
The basic Hardy–Weinberg model you've learned here is just the beginning. As you advance in genetics, you'll encounter more sophisticated tools that build directly on this foundation. The table below shows how the introductory ideas connect to more complex analyses.
| Introductory Concept | Advanced Extension |
|---|---|
| Two alleles (p and q) | Multiple alleles (p + q + r + ... = 1) for genes like blood type |
| Visual comparison of expected vs. observed | Chi-square (χ²) statistical test to formally measure deviation |
| Identifying that evolution is happening | Measuring selection coefficients, migration rates, and effective population size |
| One generation snapshot | Tracking allele frequency change across many generations using population models |
| Assuming simple dominance | Applying Hardy–Weinberg to codominance, incomplete dominance, and X-linked genes |
From introductory to advanced population genetics
In AP Biology and college-level genetics, you'll use a test called the chi-square test to mathematically determine whether the differences between observed and expected genotype counts are large enough to be meaningful. For now, the most important idea is that Hardy–Weinberg gives you the null hypothesis — the prediction of what happens when evolution is not occurring.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
The Hardy–Weinberg principle provides a mathematical model of a non-evolving population. Its two core equations — p + q = 1 for allele frequencies and p² + 2pq + q² = 1 for genotype frequencies — predict what a population should look like when five conditions are met: no mutation, random mating, no natural selection, large population size, and no migration.
Because real populations almost never satisfy all five conditions perfectly, the model serves as a powerful null hypothesis. When you compare observed genotype frequencies to expected Hardy–Weinberg frequencies and find a mismatch, you have evidence that evolution is occurring. The next step is to investigate which evolutionary force — natural selection, genetic drift, gene flow, mutation, or non-random mating — is responsible.