• Practice
  • About 15 min
  • 5 practice questions

Hardy–Weinberg calculations: practice and traps

Calculate allele and genotype frequencies from phenotype or genotype data, test for equilibrium and avoid the square-root trap.

If something looks wrong, please tell us.

The Hardy–Weinberg principle is the one part of evolution that gives numerical questions, and they are quick marks once you know where to start. The single most common mistake is taking a square root of the wrong number. This lesson fixes the starting point, shows how to get allele frequencies from genotype counts, and shows how to decide whether a population is in equilibrium.

The equations

For a gene with two alleles, A with frequency p and a with frequency q, p + q = 1. In a large population with random mating and no disturbing forces, the genotype frequencies are AA = p², Aa = 2pq and aa = q², and p² + 2pq + q² = 1. These frequencies then stay constant from generation to generation. Gene flow, genetic drift, mutation, genetic recombination and natural selection disturb the equilibrium; any of them can change the frequencies, which is evolution.

The starting rule

Start from the homozygous recessive class, because it is the only class you can recognise from its phenotype alone. People showing the dominant phenotype are a mixture of AA and Aa, so their fraction is p² + 2pq, and its square root is meaningless. Trap: if 36% show the dominant phenotype, do not write p = 0.6. Instead, aa = 1 − 0.36 = 0.64, so q = 0.8 and p = 0.2. Then AA = 0.04 and Aa = 2 × 0.2 × 0.8 = 0.32. Check: 0.04 + 0.32 = 0.36, the dominant fraction we started with.

Worked example 1: carriers of a recessive trait

In a population, 4% of people have a recessive condition. Step 1: q² = 0.04, so q = 0.2. Step 2: p = 0.8. Step 3: carriers = 2pq = 2 × 0.8 × 0.2 = 0.32, that is 32%. Step 4: homozygous dominant = p² = 0.64. Check: 0.64 + 0.32 + 0.04 = 1. A useful fact for checking options: 2pq can never be more than 0.5, which happens when p = q = 0.5.

Allele frequency from genotype counts

When the counts of all three genotypes are given, you do not need square roots. Every individual has two alleles. AA individuals carry two A, Aa carry one A. So p = (2 × number of AA + number of Aa) ÷ (2 × total). This works whether or not the population is in equilibrium.

Worked example 2: is the population in equilibrium?

Population 1: AA 360, Aa 480, aa 160, total 1000. p = (720 + 480) ÷ 2000 = 0.6, q = 0.4. Expected: AA 0.36 × 1000 = 360, Aa 0.48 × 1000 = 480, aa 0.16 × 1000 = 160. Observed equals expected, so it is in equilibrium. Population 2: AA 500, Aa 200, aa 300, total 1000. p = (1000 + 200) ÷ 2000 = 0.6, q = 0.4. Expected Aa = 480, but only 200 are observed. Too few heterozygotes, so the population is not in Hardy–Weinberg equilibrium; something such as non-random mating is acting.

Speed methods

  • Recessive phenotype fraction given: q = its square root.
  • Dominant phenotype fraction given: subtract from 1 first, then take the root.
  • Genotype counts given: p = (2AA + Aa) ÷ 2N, no roots.
  • Check every answer by adding p² + 2pq + q² to get 1.

When a question gives a percentage of carriers and asks for the recessive class, reverse the steps carefully. For example, if p and q are equal, carriers are 50% and each homozygous class is 25%. In most other cases it is quicker to test each option: square the proposed q, find 2pq and see which option gives the stated carrier fraction.

Always start from q², the recessive class. Never take the square root of the dominant phenotype fraction. From counts, p = (2AA + Aa) ÷ 2N.

Key takeaways

  • p + q = 1 and p² + 2pq + q² = 1 for a population in equilibrium.
  • Only the recessive class can be read directly from phenotype.
  • Heterozygote frequency is at most 0.5.
  • Compare observed and expected genotype numbers to test equilibrium.

Check your understanding

  1. 1. In a population in Hardy–Weinberg equilibrium, 25% of individuals show a recessive phenotype. What percentage are heterozygous?

    1. 50%
    2. 25%
    3. 75%
    4. 5%
    Show answer

    Answer: A. q² = 0.25, so q = 0.5 and p = 0.5. 2pq = 2 × 0.5 × 0.5 = 0.5, that is 50%.

  2. 2. In a population in equilibrium, 51% show the dominant phenotype. What percentage are homozygous dominant?

    1. 51%
    2. 49%
    3. 42%
    4. 9%
    Show answer

    Answer: D. Recessive = 1 − 0.51 = 0.49, so q = 0.7 and p = 0.3. AA = p² = 0.09 = 9%. Check: Aa = 2 × 0.3 × 0.7 = 0.42, and 0.09 + 0.42 = 0.51.

  3. 3. A population has 640 AA, 320 Aa and 40 aa individuals. What is the frequency of allele A?

    1. 0.8
    2. 0.64
    3. 0.2
    4. 0.96
    Show answer

    Answer: A. p = (2 × 640 + 320) ÷ (2 × 1000) = 1600 ÷ 2000 = 0.8.

  4. 4. Which condition is required for a population to stay in Hardy–Weinberg equilibrium?

    1. Strong natural selection
    2. Random mating in a large population
    3. Frequent gene flow
    4. A very small population
    Show answer

    Answer: B. Equilibrium needs a large, randomly mating population with no selection, gene flow, mutation or drift. Selection, gene flow and small size all disturb it.

  5. 5. A population of 100 has 50 AA, 0 Aa and 50 aa individuals. Is it in Hardy–Weinberg equilibrium?

    1. Yes, because p equals q
    2. Yes, because the homozygote classes are equal
    3. No; with p = 0.5 about 50 heterozygotes are expected but none are present
    4. It cannot be decided without knowing the mutation rate
    Show answer

    Answer: C. p = (100 + 0) ÷ 200 = 0.5. Expected Aa = 2pq × 100 = 50, AA = 25, aa = 25. Observed 0 heterozygotes, so it is not in equilibrium.

Privacy · Terms · Refunds · Delivery