The Hardy-Weinberg principle describes what happens to allele and genotype frequencies in a population when evolution is not occurring. It provides a mathematical baseline for understanding population genetics: if a population meets a specific set of conditions, its allele frequencies remain constant from one generation to the next, and genotype frequencies can be predicted from those allele frequencies.
The principle is important because real populations rarely meet all of its assumptions perfectly. Rather than making it irrelevant, that limitation is what makes the principle useful. When observed genetic frequencies differ from Hardy-Weinberg expectations, biologists can investigate what evolutionary forces might be responsible.
What the Hardy-Weinberg principle means
An allele is one version of a gene. For a gene with two alleles, conventionally labeled A and a, individuals can have three possible genotypes:
- AA
- Aa
- aa
The Hardy-Weinberg principle says that, under certain conditions, the frequencies of these genotypes remain predictable across generations.
If the frequency of allele A is represented by p, and the frequency of allele a by q, then:
The expected genotype frequencies are:
Here:
- p² is the expected frequency of AA
- 2pq is the expected frequency of Aa
- q² is the expected frequency of aa
Because every allele must be either A or a in this simplified example, p and q must add up to 1. Likewise, all three possible genotypes account for the entire population, so their frequencies add up to 1.
Why the principle matters
The Hardy-Weinberg principle gives population geneticists a null model—a prediction for what genetic variation would look like if evolutionary forces were absent.
That makes it possible to ask a more useful question than simply, “Are the genotype frequencies changing?”
Suppose researchers know the allele frequencies in a population. They can calculate the genotype frequencies expected under Hardy-Weinberg equilibrium and compare those predictions with what they actually observe.
If the observed and expected frequencies differ substantially, one or more assumptions of the model may not hold. Possible explanations include natural selection, genetic drift, mutation, migration, or nonrandom mating.
Importantly, a deviation from Hardy-Weinberg expectations does not automatically identify which evolutionary force is operating. Additional evidence is needed.
The assumptions behind Hardy-Weinberg equilibrium
Hardy-Weinberg equilibrium requires several conditions.
No natural selection
All genotypes must have the same reproductive success. If one genotype consistently produces more surviving offspring than another, allele frequencies can change over generations.
No mutation
The alleles cannot be altered into new forms. Mutation introduces new genetic variation and can change allele frequencies.
No migration
Individuals cannot enter or leave the population in a way that changes its gene pool. Movement of individuals or their genes between populations is called gene flow.
Very large population
The population must be sufficiently large that random changes in allele frequencies are negligible. In small populations, genetic drift can cause allele frequencies to fluctuate simply by chance.
Random mating
Individuals must choose mates without regard to the genotype or phenotype being studied. If individuals preferentially mate with certain types, genotype frequencies can differ from Hardy-Weinberg expectations.
These assumptions are idealized. Natural populations can violate several of them at the same time.
How to use the Hardy-Weinberg equation
Consider a population in which the frequency of allele A is 0.7 and the frequency of allele a is 0.3.
First, check that the allele frequencies add to 1:
Then calculate the expected genotype frequencies.
For AA:
For Aa:
For aa:
So the Hardy-Weinberg expectation is:
| Genotype | Expected frequency |
|---|---|
| AA | 0.49, or 49% |
| Aa | 0.42, or 42% |
| aa | 0.09, or 9% |
Together, these equal 100%.
If the population contains 1,000 individuals, the expected numbers would be approximately 490 AA, 420 Aa, and 90 aa.
These are expected values under the model, not necessarily the numbers that must occur in an actual population.
The important relationship between allele and genotype frequencies
One of the most useful features of Hardy-Weinberg analysis is that allele frequencies and genotype frequencies are related but are not interchangeable.
For example, if a population has an A allele frequency of 0.8, that does not mean 80% of individuals are AA. Under Hardy-Weinberg equilibrium:
The expected frequency of heterozygotes is:
And:
Thus, an allele present at 80% frequency produces an expected AA genotype frequency of 64%, not 80%.
This distinction becomes particularly important when a recessive phenotype is used to estimate allele frequencies.
Working backward from a recessive phenotype
Sometimes researchers know the frequency of a recessive phenotype rather than the allele frequency.
Assume that a recessive phenotype occurs only in individuals with genotype aa. Under Hardy-Weinberg equilibrium:
If 9% of the population has the recessive phenotype:
Taking the square root gives:
Because p + q = 1:
The expected genotype frequencies can then be calculated as before:
This approach works only when the phenotype reliably identifies the recessive genotype and the population is reasonably described by Hardy-Weinberg assumptions.
What does “equilibrium” actually mean?
Hardy-Weinberg equilibrium does not mean that individuals stop reproducing, genes stop being expressed, or a population becomes genetically identical.
It means that allele frequencies and the corresponding expected genotype frequencies remain stable across generations under the model’s assumptions.
A population at Hardy-Weinberg equilibrium can still contain substantial genetic variation. In fact, the model explicitly describes populations containing different alleles and genotypes.
Equilibrium is therefore a statement about the statistical behavior of a population, not about whether anything is happening biologically to individual organisms.
Why random mating matters
Random mating is often misunderstood.
It does not mean that every individual has an equal chance of mating with every other individual in the population. Real populations are rarely that simple.
For Hardy-Weinberg purposes, random mating means that mating is independent of the genotype being considered. If individuals with similar phenotypes preferentially mate with one another, for example, genotype frequencies can change even if the allele frequencies initially remain the same.
This illustrates an important distinction: genotype frequencies can change without allele frequencies changing immediately.
Nonrandom mating therefore violates a Hardy-Weinberg assumption, although its effects differ from those of forces such as natural selection or genetic drift.
Hardy-Weinberg equilibrium and evolution
In population genetics, evolution is commonly described as a change in allele frequencies in a population over generations.
Under the Hardy-Weinberg model, allele frequencies remain constant. That is why Hardy-Weinberg equilibrium represents a useful baseline for a population in which evolutionary forces are not changing the allele frequencies.
When allele frequencies do change, the population is no longer in Hardy-Weinberg equilibrium.
The major forces that can alter allele frequencies are:
Natural selection changes allele frequencies when inherited differences affect reproductive success.
Genetic drift changes allele frequencies through random sampling, with effects that are especially important in small populations.
Mutation creates new genetic variants and can introduce new alleles.
Gene flow moves alleles between populations when individuals or reproductive material move between them.
These forces can operate simultaneously, and real populations are often shaped by several of them.
What Hardy-Weinberg equilibrium can—and cannot—tell you
A Hardy-Weinberg calculation can tell you what genotype frequencies are expected under a particular model.
It cannot, by itself, tell you why an observed population differs from those expectations.
For example, an excess of homozygotes could arise for several reasons, including nonrandom mating or population subdivision. Similarly, an unusual genotype distribution does not automatically demonstrate natural selection.
Population subdivision is especially important. If a population actually consists of several genetically distinct subpopulations, combining them into one dataset can produce genotype frequencies that depart from Hardy-Weinberg expectations even when each subpopulation individually follows the model.
Therefore, Hardy-Weinberg analysis is best understood as a starting point for investigating population structure and evolutionary processes, not as a standalone explanation of them.
The central idea
The Hardy-Weinberg principle connects a simple observation—how common different alleles are—to a mathematical prediction about genotypes.
For a two-allele system:
and, under Hardy-Weinberg equilibrium:
The equations are straightforward. The deeper value of the principle is the reasoning behind them: if allele frequencies are not being changed by evolutionary forces and mating is sufficiently random in a large population, genotype frequencies follow predictable proportions.
Real populations rarely satisfy every assumption perfectly. That is precisely why the Hardy-Weinberg principle remains useful: it gives scientists a clear reference point against which real genetic populations can be measured.




