Biology · Introductory biology · Concept
Hardy–Weinberg equilibrium: p² + 2pq + q²
Hardy–Weinberg equilibrium is the baseline model of population genetics. For one gene with two alleles at frequencies
A concrete case
Counting one gene in people
Most adults lose the ability to digest the milk sugar lactose, but many people of European ancestry keep it. One DNA variant near the lactase gene is strongly linked to keeping it. The
Of the
Suppose people paired up with no regard to this gene, and each child took one copy at random from each parent. Two persistence copies would then turn up in a fraction
The rule
Two alleles, two frequencies
Take one gene with two alleles, A and a. Let
Count gene copies to find
A diploid individual carries two copies of the gene, so
Random mating predicts the genotypes
If gametes combine at random, an offspring receives A from each parent with probability
The five conditions
The prediction assumes random mating with respect to this gene, no mutation, no migration, which is also called gene flow, and no natural selection. It also assumes a population large enough that genetic drift, the chance change of allele frequencies, is negligible. No real population meets all five exactly. Hardy–Weinberg equilibrium is a null model. A clear departure from it shows that at least one condition fails, but not which one.
From a recessive trait to carriers
With complete dominance only aa individuals show the recessive phenotype, so their frequency estimates
Testing a sample with chi-square
When all three genotypes can be counted, compare the observed counts with the expected counts
Why it works
Why one generation of random mating is enough
Random mating of individuals is the same as drawing gametes at random from one shared pool. A fraction
The next generation’s gametes come from those genotypes. AA individuals give only A, and half the copies in Aa individuals are A. The share of A is
That is why the proportions are reached after a single generation of random mating from any starting mix of genotypes. This holds for a gene that is not on a sex chromosome, with the same allele frequencies in both sexes. When the sexes start with different frequencies, the proportions take a second generation. A rare allele stays rare. Nothing in the model pulls frequencies toward one half.
The method
Test a sample against Hardy–Weinberg
The table follows the first two worked examples, starting from the genotype counts of
| Step | What to do | For |
|---|---|---|
| 1 | Count the copies of A, twice each AA plus each Aa. | |
| 2 | Divide by | |
| 3 | Find | |
| 4 | Multiply each by | |
| 5 | Add |
Where it breaks
Where it breaks
Inbreeding breaks random mating. Relatives share alleles, so their children are more often homozygous, and a sample shows fewer heterozygotes than
Pooling separate groups does the same. Two groups can each be in equilibrium with different allele frequencies, but a sample that mixes them shows a heterozygote deficit, because few matings cross between the groups.
A good fit in one sample does not show that a gene is free of selection. Selection acts on survival and reproduction over many generations, and one round of random mating restores the proportions. The lactase persistence allele fits the proportions almost exactly in the
The square-root route to carriers only works for a recessive trait in a population assumed to be in equilibrium. It cannot test that assumption, because AA and Aa individuals look alike. Genes on the X chromosome follow different proportions in males, who carry one copy.
Check your answer
Check your answer
A Hardy–Weinberg answer can be tested against itself in several ways.
Add the frequencies.
Recount the copies. With
Check the heterozygotes. Under the model
Every frequency here is arithmetic that Chalk checks. Put each step on its own row of a Math box with the numbers in, such as
Two harmful alleles each have a frequency of . One is dominant and the other recessive, and everyone who shows either trait has no children. Which allele falls faster?
The dominant one. Every carrier of a dominant allele shows the trait, so one generation of selection removes nearly all its copies. The recessive allele hides in carriers,
Hardy’s letter, and inbreeding measured
In 1908 the mathematician G. H. Hardy answered a puzzle in a one-page letter. Some biologists expected a dominant trait to spread until three people in four showed it, the
Inbreeding can be measured by how far heterozygotes fall short. The inbreeding coefficient
With three alleles at frequencies
Common mistakes
- Taking the frequency of aa individuals as
. It estimates , so is its square root, and aa means . - Counting individuals instead of gene copies when finding
. Each heterozygote carries one copy of each allele, and each homozygote two copies of one. - Using
degrees of freedom in a three-genotype test when comes from the same counts. Estimating uses up one, so the answer is . - Reading a good fit as proof that every condition holds. A test can only fail to detect a departure, and selection over many generations can leave one sample in the proportions.
- Writing the heterozygote frequency as
. A heterozygote forms two ways, A from either parent, so its frequency is . - Rounding
hard before computing expected counts. Keep at full precision, because while the exact expected count is about .
Key terms
- Hardy–Weinberg equilibrium
- The pattern of genotypes expected in a population that isn’t evolving: random mating, and no selection, mutation, migration or drift. With two alleles A and a at frequencies
and , the genotype frequencies are for AA, for Aa and for aa. - Allele frequency
- The share of all copies of a gene in a population that are one particular allele:
. Count allele copies, two per diploid individual, not individuals. - Genotype frequency
- The share of individuals in a population with a particular genotype, such as AA:
. It differs from allele frequency, because each individual carries two allele copies. - Heterozygous
- Having two different alleles at a locus in a diploid organism, as in Aa. What the organism looks like depends on how the two alleles interact: dominance, incomplete dominance or codominance.
- Homozygous
- Having two identical alleles at a locus in a diploid organism, as in AA or aa. It describes one gene only, not the whole genome.
- Genetic carrier
- Someone with one copy of the allele for a recessive condition who does not have the condition, such as Aa. A carrier can pass the allele to their children.
- Inbreeding
- Mating between relatives. It does not change allele frequencies by itself, but it raises the share of homozygotes, so rare recessive conditions appear more often.
- Inbreeding coefficient
, the probability that the two alleles a person carries at a gene are identical by descent, both copied from one allele in a shared ancestor. for unrelated parents. - Genetic drift
- Random changes in allele frequencies from one generation to the next, purely by chance in which individuals reproduce. Its effect is strongest in small populations.
- Gene flow
- Movement of alleles between populations when individuals or their gametes migrate. It changes allele frequencies whether or not selection favors those alleles, and it makes populations more alike.
- Natural selection
- Individuals with heritable traits that suit their environment tend to survive and reproduce more, so those traits become more common. Which traits help depends on the environment, and evolution has no goal.
- Chi-square goodness-of-fit test
- A test of whether observed counts in categories match the counts a model expects, using
. It needs expected counts that aren’t too small, usually at least each.
Work through an example
A DNA test of
Sources and scope
Authored study material. Tool results depend on the stated inputs and model assumptions.
- Hardy (1908), Mendelian proportions in a mixed population, Science 28: 49
- Ensembl — rs4988235 population genetics (1000 Genomes Project, phase 3)
- Bersaglieri et al. (2004), Genetic signatures of strong recent positive selection at the lactase gene, Am J Hum Genet 74: 1111
- MedlinePlus Genetics — Cystic fibrosis
- OpenStax Biology 2e — Population evolution
Try it, then study it
Open the example in its tool to check steps or change values, then review the key terms as flashcards.
Open the Hardy–Weinberg tool Check the counts in Math Study the 12 key terms Open worked example on a board Hardy–Weinberg equation in Biology ReferenceYour existing work stays on this device. Examples open as editable copies.