Punnett squares tell you what offspring to expect from two parents. Hardy-Weinberg equilibrium does the same trick for a whole population: it predicts genotype frequencies from allele frequencies, as long as the population behaves "ideally." It is the baseline you compare real data against.

The Equations And What Each Symbol Means

For a gene with two alleles, let pp be the frequency of one allele and qq the frequency of the other. The allele frequencies must account for everything:

p+q=1p + q = 1

The expected genotype frequencies then follow from squaring that sum:

p2+2pq+q2=1p^2 + 2pq + q^2 = 1

Here p2p^2 is the expected frequency of one homozygote, 2pq2pq is the expected frequency of the heterozygote, and q2q^2 is the expected frequency of the other homozygote.

Why Squaring The Allele Frequencies Works

The genotype equation is not a separate rule you memorize. It is just (p+q)2(p + q)^2 written out. If mating is random, the chance of pulling allele AA for the first copy is pp and again pp for the second copy, so an AAAA individual appears with probability p×p=p2p \times p = p^2. The heterozygote can form two ways (allele from either parent), which is where the factor of 22 in 2pq2pq comes from. Expanding (p+q)2=p2+2pq+q2(p+q)^2 = p^2 + 2pq + q^2 reproduces all three terms at once. Seeing it as a squared sum is what keeps allele frequency and genotype frequency from blurring together.

Worked Example: From Allele Frequency To Genotype Frequency

Suppose a gene has two alleles, AA and aa, with allele frequency p=0.7p = 0.7 for AA and q=0.3q = 0.3 for aa.

First confirm the allele frequencies sum to one:

0.7+0.3=10.7 + 0.3 = 1

Then compute the expected genotype frequencies:

AA=p2=(0.7)2=0.49AA = p^2 = (0.7)^2 = 0.49 Aa=2pq=2(0.7)(0.3)=0.42Aa = 2pq = 2(0.7)(0.3) = 0.42 aa=q2=(0.3)2=0.09aa = q^2 = (0.3)^2 = 0.09

These add to 11, as they must:

0.49+0.42+0.09=10.49 + 0.42 + 0.09 = 1

So under Hardy-Weinberg assumptions you expect about 49% AAAA, 42% AaAa, and 9% aaaa.

Now Try It With Different Numbers

Take p=0.8p = 0.8 and q=0.2q = 0.2 and work the same three steps: square pp, double the product pqpq, and square qq. You should land on 0.640.64, 0.320.32, and 0.040.04, which sum to 11. Then ask the harder question: if real genotype counts came out far from those values, which assumption would you suspect first?

Where Calculations Go Wrong

Confusing allele frequency with genotype frequency

pp and qq describe alleles, not the fraction of individuals. The genotype frequencies are p2p^2, 2pq2pq, and q2q^2. Mixing these up is the single most common error.

Treating the equation as proof of equilibrium

The identity p2+2pq+q2=1p^2 + 2pq + q^2 = 1 holds algebraically for any two-allele setup. A real population is only in equilibrium if the assumptions are reasonable and observed frequencies match the expected ones closely enough.

Forgetting the model is conditional

The classic model assumes random mating, no selection, no mutation introducing alleles, no migration, and a population large enough that drift is negligible. If any of these fail, the prediction may not hold, and a mismatch is a clue to investigate rather than a finished explanation.

When You Use This

You will meet Hardy-Weinberg in population genetics, evolution, and introductory biology, often when estimating carrier frequencies or checking whether genotype counts match a simple expectation before asking which evolutionary force is at work.

If you want another case to practice, try solving a similar population-genetics problem step by step with GPAI Solver.

Frequently Asked Questions

What does Hardy-Weinberg equilibrium mean?
Hardy-Weinberg equilibrium tells you what genotype frequencies to expect from allele frequencies in an ideal population. It says allele frequencies can stay constant across generations and genotype frequencies follow a predictable pattern if a population meets specific conditions. It does not mean the population is perfect or unchanged in every way.
What do the terms in the Hardy-Weinberg equation mean?
For a gene with two alleles with frequencies p and q, p plus q equals one. The expected genotype frequencies follow p squared plus 2pq plus q squared equals one. Here p squared is one homozygote's expected frequency, 2pq is the heterozygote's, and q squared is the other homozygote's expected frequency.
What conditions are required for Hardy-Weinberg equilibrium?
The classic model assumes random mating, no natural selection, no mutation, and additional idealized conditions. These assumptions rarely all hold exactly in real populations. That is why biologists use the equation as a baseline: if real genotype data differ a lot from the expected values, at least one assumption may not hold.
Why do biologists use Hardy-Weinberg equilibrium?
Biologists use it as a baseline for what genotype frequencies should look like under idealized conditions. If real genotype data differ a lot from the expected p squared, 2pq, and q squared values, that signals at least one model assumption may not hold. A common mistake is treating the equation itself as proof of equilibrium.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →