Skip to main content
Examonaut

Topic 8C · Lesson 2 of 4

Using the Hardy–Weinberg equations

The Hardy–Weinberg principle

Counting alleles directly is easy when you can see every genotype, as with codominant alleles. But when one allele is dominant, you cannot tell RR from Rr by looking. The Hardy–Weinberg principle solves this.

It states that, in a large population where certain conditions are met, allele frequencies and genotype frequencies stay the same from generation to generation. The conditions are:

  • the population is very large (so chance has little effect);
  • mating is random (any individual is equally likely to mate with any other);
  • there is no mutation creating or changing alleles;
  • there is no migration of individuals into or out of the population;
  • there is no natural selection (all genotypes survive and reproduce equally well).

Let pp be the frequency of the dominant allele and qq the frequency of the recessive allele. Since these are the only two alleles:

p+q=1p + q = 1

Now imagine every gamete in the population thrown into one pool and paired at random. The chance that a gamete carries the dominant allele is pp, and the recessive allele qq. The diagram below is a Punnett square for the whole population, with each side divided in the ratio p:qp : q, so the area of each region is the frequency of that genotype.

AA: p²Aa: pqAa: pqaa: q²A (p)a (q)A (p)a (q)gametes from the whole populationp² + 2pq + q² = 1 (here p = 0.7, q = 0.3)

So the genotype frequencies are p2p^2 (homozygous dominant), 2pq2pq (heterozygous: it appears twice, once each way round) and q2q^2 (homozygous recessive), and together they make up the whole population:

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

How to use the Hardy–Weinberg equations

  1. Find a frequency you can be sure of. With a dominant allele, this is almost always the homozygous recessive frequency, q2q^2, because only those individuals show the recessive phenotype. Convert it to a decimal (for example 1 in 400 = 0.0025).
  2. Take the square root to find qq.
  3. Use p=1−qp = 1 - q to find pp.
  4. Use p2p^2, 2pq2pq and q2q^2 to find whichever genotype frequency is asked for.
  5. Multiply by the population size if a number of individuals is wanted.

Try it: set p, or work back from how common the recessive phenotype is, and check each step of the calculation. Then break the conditions and watch the population leave equilibrium.

Try it: simulation

Hardy–Weinberg

Loading the simulation…

Worked example

Carriers of cystic fibrosis

Cystic fibrosis is caused by a recessive allele. In one population, about 1 baby in 2500 is born with the condition. Calculate the proportion of the population who are carriers.

Show solution
  1. People with cystic fibrosis are homozygous recessive, so q2=1÷2500=0.0004q^2 = 1 \div 2500 = 0.0004.
  2. q=0.0004=0.02q = \sqrt{0.0004} = 0.02.
  3. p=1−0.02=0.98p = 1 - 0.02 = 0.98.
  4. Carriers are heterozygous: 2pq=2×0.98×0.02=0.03922pq = 2 \times 0.98 \times 0.02 = 0.0392.
  5. So about 3.9% of people, roughly 1 in 25, are carriers. Notice how much more common carriers are than affected people (1 in 2500): most copies of a harmful recessive allele are hidden in heterozygotes, where selection cannot act on them.

Worked example

Is the population changing?top grade

In 1990, 16% of a population of moths were pale (recessive, genotype dd). By 2020, after the moths' habitat changed, 36% were pale. (a) Calculate the frequency of the dark allele D in 1990 and in 2020. (b) What does the change show? (c) In 2020, a population of 5000 moths was sampled. How many would you expect to be heterozygous?

Show solution
  1. (a) 1990: q2=0.16q^2 = 0.16, so q=0.4q = 0.4 and p=1−0.4=0.6p = 1 - 0.4 = 0.6.
  2. 2020: q2=0.36q^2 = 0.36, so q=0.6q = 0.6 and p=0.4p = 0.4.
  3. (b) The frequency of D fell from 0.6 to 0.4. If the population were in Hardy–Weinberg equilibrium, allele frequencies would stay the same. A change means at least one of the conditions is not being met. The likeliest explanation, given the habitat change, is natural selection in favour of pale moths (for example, pale moths are better camouflaged and fewer are eaten by birds). Migration or genetic drift could also contribute.
  4. (c) Heterozygotes: 2pq=2×0.4×0.6=0.482pq = 2 \times 0.4 \times 0.6 = 0.48. Expected number =0.48×5000=2400= 0.48 \times 5000 = 2400 moths. (This assumes the population is in equilibrium in 2020, which we can only treat as an approximation.)

Practise this topic

Both are part of Premium.