GENETICS • POPULATION GENETICS & EVOLUTIONARY GENETICS

Hardy-Weinberg Equilibrium Conditions — Apply Hardy–Weinberg equilibrium conditions

Discover the mathematical baseline that reveals whether a population is evolving or standing still.

Historical Context & Motivation

In the early 1900s, scientists had a big problem. Charles Darwin had shown that species change over time, and Gregor Mendel had figured out the rules for how traits pass from parents to offspring. But nobody knew how to connect these two ideas. If a trait — like brown eyes — is dominant over blue eyes, wouldn't the dominant version eventually take over and wipe out the recessive one? Two scientists, working independently, proved that this worry was wrong.

1859
Darwin Publishes On the Origin of Species
Charles Darwin introduced the idea of natural selection, showing that organisms with helpful traits survive and reproduce more often. But Darwin didn't know exactly how traits were inherited.
1866
Mendel's Laws of Inheritance
Gregor Mendel discovered that traits are passed down in predictable patterns through units we now call genes. His work was largely ignored for decades.
1908
Hardy and Weinberg Solve the Puzzle
British mathematician G. H. Hardy and German physician Wilhelm Weinberg independently showed that allele frequencies (the proportions of different gene versions) stay constant from generation to generation — as long as certain conditions are met.
1920s–1940s
The Modern Synthesis
Scientists like Ronald Fisher, J. B. S. Haldane, and Sewall Wright combined Mendelian genetics with Darwin's natural selection, using the Hardy–Weinberg principle as a mathematical foundation for population genetics.

The key question the Hardy–Weinberg principle answers is simple but powerful: How can we tell if a population is evolving? By establishing what a non-evolving population looks like mathematically, scientists gained a baseline — a "null hypothesis" — against which real-world populations could be compared. If a population's numbers don't match the Hardy–Weinberg prediction, something interesting must be happening: evolution is at work.

Core Principles & Definitions

Before we dive into the math, let's define some important terms. A population is a group of organisms of the same species living in the same area that can breed with each other. Each organism carries alleles — different versions of a gene. For a gene with two alleles, we label the dominant allele A and the recessive allele a. The allele frequency is simply the fraction of all alleles in the population that are of a particular type.

1

No Mutations

The DNA doesn't change. No new alleles are created and no existing alleles are altered. This keeps the allele pool stable.
2

No Natural Selection

All genotypes survive and reproduce equally well. No allele gives an advantage or disadvantage for survival.
3

No Gene Flow (Migration)

No individuals move into or out of the population. New alleles aren't introduced from outside, and existing alleles don't leave.
4

Random Mating

Every individual is equally likely to mate with any other individual. Organisms don't choose partners based on genotype or appearance.
5

Very Large Population Size

The population is large enough that random chance (genetic drift) doesn't significantly change allele frequencies from one generation to the next.
KEY TAKEAWAY
Think of the Hardy–Weinberg conditions like a perfectly still swimming pool. If nobody jumps in (no gene flow), no waves form (no genetic drift), the water isn't heated or cooled (no selection), no chemicals are added (no mutation), and the water mixes evenly (random mating), the pool stays perfectly calm. In real life, something always disturbs the water — and that disturbance is evolution.

Visual Explanation

The diagram below shows how allele frequencies translate into genotype frequencies under Hardy–Weinberg equilibrium. Imagine a population where allele A has a frequency of p = 0.6 and allele a has a frequency of q = 0.4. When organisms mate randomly, we can predict exactly what fraction of the next generation will be AA, Aa, or aa.

This Punnett square shows random mating between alleles A (p = 0.6) and a (q = 0.4). The violet cell represents homozygous dominant (AA = p² = 0.36). The two cyan cells together represent heterozygotes (Aa = 2pq = 0.48). The pink cell represents homozygous recessive (aa = q² = 0.16). Notice that 0.36 + 0.48 + 0.16 = 1.00 — all individuals are accounted for.

In the diagram, each row and column represents one allele contributed by a parent. When you multiply the row frequency by the column frequency, you get the probability of that genotype appearing in the next generation. The two Aa cells (upper-right and lower-left) are combined because getting A from mom and a from dad produces the same heterozygote as getting a from mom and A from dad. That's why the heterozygote frequency is 2pq — you add both cells together.

Mathematical Framework

The Hardy–Weinberg principle uses two simple equations. The first tracks allele frequencies, and the second predicts genotype frequencies. Together, they give you a complete picture of a population's genetic makeup.

ALLELE FREQUENCY EQUATION
p + q = 1
p = frequency of the dominant allele (A) q = frequency of the recessive allele (a) Since there are only two alleles, their frequencies must add up to 1 (100% of all alleles).
GENOTYPE FREQUENCY EQUATION
p² + 2pq + q² = 1
= frequency of homozygous dominant (AA) 2pq = frequency of heterozygous (Aa) = frequency of homozygous recessive (aa) This is actually just (p + q)² expanded using algebra!
USEFUL REARRANGEMENT
q = √(q²) → then p = 1 − q
In real problems, you often start with q² because homozygous recessive individuals (aa) are the only genotype you can identify by phenotype alone. Take the square root to find q, then subtract from 1 to find p.
💡 Why Start with q²?
If a trait is recessive — like having attached earlobes — only aa individuals show the recessive phenotype. People with AA or Aa both look dominant. So the only genotype you can directly count from looking at a population is aa, which equals q². That's your entry point into the equations.

The Five Conditions in Detail

The Hardy–Weinberg equations only make accurate predictions when five conditions are met simultaneously. In the real world, these conditions are almost never perfectly satisfied — and that's actually the point. By understanding each condition, you can figure out which evolutionary force is causing a population to deviate from the expected equilibrium.

The central circle represents Hardy–Weinberg equilibrium. All five conditions (shown as colored boxes) must be met simultaneously. If even one condition is broken, the population may evolve — meaning allele frequencies will shift over generations.
Summary of Hardy–Weinberg Equilibrium Conditions
ConditionWhat It MeansWhat Happens If Violated
No MutationDNA replication is perfect — no new alleles are createdNew alleles enter the gene pool, changing allele frequencies over time
No Natural SelectionAll genotypes have equal fitness — same survival and reproduction rateFavorable alleles increase in frequency; harmful alleles decrease
No Gene FlowNo organisms enter (immigration) or leave (emigration) the populationIncoming organisms may bring new alleles; departing ones remove alleles
Random MatingMate choice is completely random — not based on phenotype or genotypeNon-random mating (like sexual selection) changes genotype ratios
Large PopulationPopulation is large enough that chance events don't shift allele frequenciesIn small populations, genetic drift causes random allele frequency changes

Worked Example

Let's work through a classic Hardy–Weinberg problem step by step. Imagine a population of 500 wildflowers. Some flowers are purple (the dominant phenotype) and some are white (the recessive phenotype). You count 80 white flowers. Assuming the population is in Hardy–Weinberg equilibrium, find the allele and genotype frequencies.

Wildflower Allele Frequencies
1
Step 1 — Identify the Recessive PhenotypeWhite flowers are recessive, so all white flowers must have the genotype aa. There are 80 white flowers out of 500 total. The frequency of the aa genotype is q² = 80 ÷ 500.
q² = 0.16
2
Step 2 — Find q (Recessive Allele Frequency)Take the square root of q² to find q. The square root of 0.16 is 0.4.
q = √0.16 = 0.4
3
Step 3 — Find p (Dominant Allele Frequency)Since p + q = 1, we can solve for p by subtracting: p = 1 − 0.4.
p = 1 − 0.4 = 0.6
4
Step 4 — Calculate All Genotype FrequenciesNow plug p and q into the genotype equation: • AA = p² = (0.6)² = 0.36 • Aa = 2pq = 2 × 0.6 × 0.4 = 0.48 • aa = q² = (0.4)² = 0.16 Check: 0.36 + 0.48 + 0.16 = 1.00 ✓
AA = 0.36, Aa = 0.48, aa = 0.16
5
Step 5 — Convert to Number of IndividualsMultiply each frequency by the total population (500): • AA: 0.36 × 500 = 180 flowers • Aa: 0.48 × 500 = 240 flowers • aa: 0.16 × 500 = 80 flowers Notice that 180 + 240 + 80 = 500, which matches our total.
180 AA, 240 Aa, 80 aa
🎯 Pro Tip
Always check your work by making sure p² + 2pq + q² = 1 and that the number of individuals adds up to the total population. If they don't, go back and look for a math error!

Strengths & Limitations

The Hardy–Weinberg principle is one of the most important tools in population genetics, but like any model, it has both strengths and limitations. Understanding these helps you know when to use it and when to be cautious about the results.

Strengths vs. Limitations of Hardy–Weinberg Equilibrium
StrengthsLimitations
Provides a clear mathematical null hypothesis — a baseline for detecting evolutionAssumes only two alleles at one gene locus; many real genes have multiple alleles
Allows you to estimate carrier (heterozygote) frequencies from observable dataAll five conditions are rarely met in nature, so perfect equilibrium is an idealization
Connects Mendelian genetics to population-level patternsCannot tell you which specific evolutionary force is acting — only that something is
Simple enough to calculate with basic algebraAssumes non-overlapping generations and diploid organisms
KEY TAKEAWAY
The Hardy–Weinberg model is like a perfectly balanced seesaw. In a physics class, you might assume no friction to understand the basic rules. In the real world, friction always exists — just like evolutionary forces always act on real populations. The "frictionless" model is still incredibly useful because it tells you what to expect when nothing unusual is happening, so you can immediately spot when something interesting is going on.

Connection to Advanced Evolutionary Theory

The Hardy–Weinberg principle is just the starting point for understanding how populations change. When real populations deviate from H-W expectations, scientists investigate which of the five conditions has been violated. Each violation corresponds to a major mechanism of evolution.

How H-W Violations Connect to Evolutionary Mechanisms
H-W Condition ViolatedEvolutionary MechanismAdvanced Topic
Mutation occursMutationMutation-selection balance, molecular clock analysis
Unequal fitnessNatural SelectionDirectional, stabilizing, and disruptive selection models
Migration presentGene FlowIsland biogeography, metapopulation dynamics
Non-random matingSexual Selection / Assortative MatingInbreeding depression, F-statistics
Small populationGenetic DriftBottleneck effect, founder effect, effective population size

As you continue studying biology, you'll learn that these evolutionary forces often act simultaneously. For example, a small island population of lizards might experience genetic drift (small population), natural selection (predators favor camouflaged individuals), and gene flow (occasional lizards arriving by raft). Population geneticists use sophisticated mathematical models — built on the Hardy–Weinberg foundation — to tease apart these interacting forces. Mastering the basics here gives you the toolkit to understand those advanced analyses later.

Practice Problems

PROBLEM 1CONCEPTUAL
A student claims that because brown eyes are dominant over blue eyes, eventually everyone in the world will have brown eyes. Using the Hardy–Weinberg principle, explain why this prediction is incorrect.
PROBLEM 2BASIC CALCULATION
In a population of 1,000 mice, 90 have white fur (a recessive trait). The rest have brown fur. Assuming Hardy–Weinberg equilibrium, calculate the frequencies of both alleles (p and q) and all three genotypes (BB, Bb, bb).
PROBLEM 3INTERMEDIATE
Cystic fibrosis is caused by a recessive allele. About 1 in 2,500 people in a certain population is born with cystic fibrosis. Assuming Hardy–Weinberg equilibrium, what fraction of the population are carriers (heterozygotes) of the cystic fibrosis allele?
PROBLEM 4APPLIED
A biologist studies a population of beetles on two sides of a river. On the north bank, 36% of beetles are green (recessive). On the south bank, only 9% are green. A new bridge allows beetles to cross freely. If the populations mix completely and mate randomly, what would you expect q to become in the combined population? (Assume both populations are equal in size.)
PROBLEM 5CRITICAL THINKING
A researcher collects data from a population of 400 snapdragons. Flower color shows incomplete dominance: RR = red, Rr = pink, rr = white. She counts 100 red, 200 pink, and 100 white. (a) Calculate the observed allele frequencies. (b) Calculate the expected genotype frequencies under H-W equilibrium. (c) Is this population in Hardy–Weinberg equilibrium? Explain your reasoning.

Lesson Summary

The Hardy–Weinberg principle states that allele frequencies and genotype frequencies remain constant from generation to generation when five conditions are met: no mutation, no natural selection, no gene flow, random mating, and a large population size. The two core equations are p + q = 1 for allele frequencies and p² + 2pq + q² = 1 for genotype frequencies.

In practice, you typically start by identifying the recessive phenotype frequency (q²), take the square root to find q, then calculate p = 1 − q. This model acts as a null hypothesis — a baseline prediction of what genetic variation looks like when evolution is NOT occurring. When real populations deviate from H-W expectations, scientists know that one or more evolutionary forces — mutation, selection, drift, gene flow, or non-random mating — are at work.

Varsity Tutors • Genetics • Hardy-Weinberg Equilibrium Conditions