Evolution is often described as a change in the traits of a population over generations. In population genetics, however, evolution has a more precise definition: evolution is a change in the frequencies of alleles—the different versions of genes—in a population over time.
The Hardy-Weinberg equilibrium provides a useful baseline for understanding that change. It describes what a population’s genetic makeup would look like if certain evolutionary forces were absent. When a population does not meet the conditions required for Hardy-Weinberg equilibrium, its allele frequencies—or the distribution of genotypes—can change from one generation to the next.
That makes the principle less a description of how real populations usually behave than a null model for evolution: a mathematical expectation against which real populations can be compared.
What is Hardy-Weinberg equilibrium?
Hardy-Weinberg equilibrium is the idea that, under a specific set of conditions, allele and genotype frequencies remain constant from generation to generation.
For a gene with two alleles, commonly labeled A and a, let:
- p = frequency of allele A
- q = frequency of allele a
Because these are the only two alleles in this simplified example:
p + q = 1
The expected genotype frequencies are then:
p² + 2pq + q² = 1
These three terms represent the three possible genotypes:
- p² = frequency of AA
- 2pq = frequency of Aa
- q² = frequency of aa
The principle says that if the required conditions are met, these frequencies will remain stable across generations. Alleles are still being passed from parents to offspring, but there is no evolutionary change in their frequencies.
The equations are not simply formulas for calculating genotype frequencies. They express an important biological idea: if nothing systematically changes the genetic composition of a population, its allele frequencies can remain stable even as individuals reproduce and die.
Why does Hardy-Weinberg equilibrium matter for evolution?
The principle is important because it gives scientists something to compare a real population against.
Imagine that a population has an allele frequency of 0.7 for A and 0.3 for a. If the population satisfies Hardy-Weinberg conditions, the expected genotype frequencies are:
- AA: 0.7² = 0.49
- Aa: 2(0.7)(0.3) = 0.42
- aa: 0.3² = 0.09
If the population continues to meet the necessary conditions, these frequencies are expected to persist across generations.
If, instead, allele frequencies change—for example, the frequency of A rises from 0.7 to 0.8—that is evidence of evolution at that gene in that population.
This distinction is fundamental. Individual organisms do not evolve during their lifetimes in the population-genetic sense. Populations evolve when the frequencies of their alleles change across generations.
Hardy-Weinberg equilibrium therefore helps answer a basic evolutionary question: Is there evidence that the genetic composition of this population is changing?
The five conditions required for Hardy-Weinberg equilibrium
A population remains in Hardy-Weinberg equilibrium only under a set of idealized conditions. These conditions remove the major mechanisms that can alter allele frequencies.
No natural selection
All genotypes must have equal reproductive success. In other words, possessing one genotype rather than another cannot systematically affect an organism’s ability to survive and reproduce.
When natural selection favors some inherited variants over others, allele frequencies can change.
For example, if individuals carrying a particular allele consistently leave more surviving offspring, that allele can become more common over generations. The population has then departed from the Hardy-Weinberg model.
No mutation
New alleles must not be introduced through mutation.
Mutation is one source of genetic variation because changes in DNA can create new versions of genes. Although individual mutations may have little or no effect on allele frequencies in a particular generation, mutation is ultimately a source of new genetic variation on which evolutionary processes can act.
No migration
There must be no movement of individuals or their genes into or out of the population. This condition is often called no gene flow.
When individuals migrate between populations and reproduce, they can introduce alleles that were previously rare or absent. This can change the genetic composition of both populations.
Random mating
Individuals must choose mates without regard to the genotype or phenotype being considered.
Real organisms frequently do not mate randomly. They may prefer certain mates, avoid others, or be more likely to mate with individuals that resemble themselves.
Importantly, nonrandom mating does not necessarily change allele frequencies directly. It can, however, change genotype frequencies. This distinction matters when interpreting deviations from Hardy-Weinberg expectations.
An infinitely large population
The population must be effectively infinite, so that chance has no meaningful effect on allele frequencies.
Real populations are finite, and random events can cause allele frequencies to fluctuate. This process is called genetic drift.
Genetic drift is particularly important in small populations, where chance changes in which individuals reproduce can have a substantial effect on the next generation’s genetic composition.
What causes a population to depart from equilibrium?
The five Hardy-Weinberg conditions correspond closely to major evolutionary mechanisms.
| Condition required | What happens when it is violated? |
|---|---|
| No natural selection | Natural selection can change allele frequencies |
| No mutation | Mutation can introduce new alleles |
| No migration | Gene flow can move alleles between populations |
| Random mating | Nonrandom mating can alter genotype frequencies |
| Very large population | Genetic drift can cause chance changes in allele frequencies |
These mechanisms do not all affect populations in exactly the same way. Natural selection, mutation, gene flow, and genetic drift can change allele frequencies; nonrandom mating primarily changes how alleles are combined into genotypes.
That is why simply finding genotype frequencies that do not match Hardy-Weinberg expectations does not, by itself, identify which evolutionary mechanism is responsible.
Hardy-Weinberg equilibrium is a null model, not a claim that evolution has stopped
It is tempting to think of Hardy-Weinberg equilibrium as describing a “normal” population. It does not.
The conditions are deliberately restrictive. Real populations experience mutation, selection, migration, finite population size, and mating patterns that may not be random. The value of the principle lies precisely in its simplicity.
A null model tells us what we would expect if a particular set of evolutionary forces were not operating. If observations differ from that expectation, researchers can investigate what processes might explain the difference.
This is similar to using a baseline in an experiment. The baseline is not necessarily a realistic description of nature; it gives us a reference point that makes departures easier to detect and interpret.
How the Hardy-Weinberg equation is used
Suppose researchers know the frequency of an allele in a population. If there are two alleles, they can calculate the expected genotype frequencies using the Hardy-Weinberg equations.
If the frequency of A is p = 0.6, then the frequency of a is:
q = 1 − 0.6 = 0.4
The expected genotype frequencies are:
AA = p² = 0.36
Aa = 2pq = 0.48
aa = q² = 0.16
These values describe what would be expected under Hardy-Weinberg conditions.
Researchers can then compare the expected frequencies with observed frequencies. A substantial discrepancy may indicate that one or more assumptions of the model are not satisfied.
In practice, statistical tests are often used to determine whether differences between observed and expected genotype frequencies are larger than would reasonably be expected from sampling variation alone.
What if you know only the recessive phenotype?
Hardy-Weinberg calculations can also work in the other direction.
If a trait is caused by a recessive allele and the population is assumed to be in Hardy-Weinberg equilibrium, individuals showing the recessive phenotype have the homozygous recessive genotype aa. Its frequency is therefore q².
If, for example, 9% of the population has the recessive phenotype:
q² = 0.09
Taking the square root gives:
q = 0.3
Then:
p = 1 − q = 0.7
From there, the expected frequency of heterozygotes is:
2pq = 2(0.7)(0.3) = 0.42
So 42% of the population would be expected to carry one copy of each allele under the model’s assumptions.
This calculation is useful, but it comes with an important warning: the Hardy-Weinberg assumptions must be appropriate for the population and gene being analyzed. Real populations do not automatically satisfy them.
What Hardy-Weinberg equilibrium does—and does not—tell us
Finding Hardy-Weinberg equilibrium means that the observed genotype distribution is consistent with the model’s expectations. It does not prove that evolution is impossible or that every Hardy-Weinberg assumption is perfectly satisfied.
Likewise, a departure from Hardy-Weinberg equilibrium does not automatically prove that natural selection is occurring.
For example, an excess or shortage of particular genotypes could result from nonrandom mating, population structure, migration, genetic drift, selection, or other factors. Sampling issues and violations of the model’s assumptions can also matter.
The principle therefore works best as a starting point for investigation:
If the population matches Hardy-Weinberg expectations, there is no detected departure that requires an evolutionary explanation under the model. If it does not, researchers ask which assumptions have been violated and why.
Hardy-Weinberg equilibrium and genetic variation
The principle also clarifies an important point about evolution: evolution does not require that individuals change their genes during their lifetimes.
A population can contain multiple alleles while remaining in Hardy-Weinberg equilibrium. Variation is present, but its frequencies are stable.
Evolution begins, in the population-genetic sense, when those allele frequencies change.
For instance, a population might initially contain an allele at a frequency of 0.2. If environmental conditions favor individuals carrying that allele, natural selection may cause its frequency to increase over subsequent generations. The genetic composition of the population has changed, so evolution has occurred.
Hardy-Weinberg equilibrium provides the contrasting scenario: the allele could remain at 0.2 from generation to generation if the conditions required for equilibrium were maintained.
Why real populations rarely fit the model perfectly
Nature is more complicated than the assumptions of a mathematical model.
Populations are finite. Individuals move between populations. Mutations occur. Organisms may choose mates nonrandomly. Different genotypes can have different survival or reproductive success. Populations can also be subdivided, meaning that allele frequencies may differ substantially among local groups.
None of this makes Hardy-Weinberg equilibrium useless. Quite the opposite: its simplicity makes it valuable.
By establishing a clear expectation for a population unaffected by evolutionary forces, the model helps scientists identify patterns that deserve further explanation. It is a foundation for understanding population genetics because it separates the baseline expectation from the mechanisms that cause genetic change.
The central lesson
Hardy-Weinberg equilibrium tells us what a population’s genotype frequencies should look like when allele frequencies are stable and the major forces of evolutionary change are absent.
Its deeper importance is conceptual. It gives evolution a measurable definition and provides a baseline against which genetic change can be detected.
When allele frequencies change over generations, the population is evolving. When genotype frequencies depart from Hardy-Weinberg expectations, researchers have a clue that one or more of the model’s assumptions may not hold. Understanding why they do not hold leads directly to the major mechanisms of evolution: natural selection, mutation, gene flow, genetic drift, and patterns of mating.
Hardy-Weinberg equilibrium does not describe an ideal world that real populations are expected to resemble perfectly. It gives us something more useful: a simple genetic baseline that makes evolutionary change easier to see.
