Hardy-Weinberg: Allele Frequencies, p² + 2pq + q² = 1, Solved Problems

Population genetics looks at evolution as a change in the frequencies of alleles in a population. This chapter explains how to calculate allele and genotype frequencies, the Hardy-Weinberg equation p² + 2pq + q² = 1 and the conditions under which it holds, and the forces such as drift, gene flow and selection that disturb it. Entry tests set short numerical problems, so each method is shown with worked calculations.

Asked in: MDCAT, NUMS, NEET, FSc and Class 11-12 boards

Populations, gene pools and allele frequencies

Population genetics studies how alleles are distributed in a population and how their proportions change over generations. A population is a group of interbreeding individuals of the same species living in the same area. The gene pool is the total of all the alleles of all the genes present in that population.

For a gene with two alleles, A and a, each diploid individual carries two copies, so a population of N individuals carries 2N alleles of that gene. The frequency of an allele is the proportion of all copies that are that allele. By convention p is the frequency of the dominant allele A and q is the frequency of the recessive allele a. Because these are the only two alleles, p + q = 1.

Allele frequencies can be counted directly from genotypes. Every AA individual contributes two A alleles and every Aa individual contributes one A and one a. So p = (2 × number of AA + number of Aa) ÷ 2N. For example, in 500 people with 180 AA, 240 Aa and 80 aa, p = (360 + 240) ÷ 1000 = 0.6 and q = 0.4.

Evolution, at the level of populations, is a change in allele frequencies in the gene pool from one generation to the next. This small-scale change is called microevolution.

The Hardy-Weinberg equation

In 1908, G. H. Hardy and Wilhelm Weinberg independently showed that allele and genotype frequencies in a population remain constant from generation to generation if no evolutionary force acts on it. Such a population is said to be in Hardy-Weinberg (genetic) equilibrium.

With random mating, the chance that an offspring receives A from both parents is p × p, a from both parents is q × q, and A from one parent and a from the other is 2pq, because this can happen in two ways. The genotype frequencies are therefore AA = p², Aa = 2pq and aa = q², and they add up to 1. This is simply the expansion of (p + q)² = 1.

Under random mating, a population reaches these equilibrium genotype frequencies in a single generation, whatever its starting genotype proportions, as long as the allele frequencies are unchanged. For example, a population of 80% AA and 20% aa has p = 0.8 and q = 0.2, so after one generation of random mating it will contain 64% AA, 32% Aa and 4% aa.

The heterozygote frequency 2pq is largest, 0.5, when p = q = 0.5. As a recessive allele becomes rare, most copies of it are hidden in heterozygous carriers rather than in affected homozygotes.

Solving Hardy-Weinberg problems

The only genotype that can be recognised directly from the phenotype is the homozygous recessive, because AA and Aa look alike. So most problems start from the frequency of the recessive phenotype: q² = frequency of affected individuals, q = √q², then p = 1 − q, and the other genotypes follow.

Example: albinism affects 1 in 10,000 people. Then q² = 0.0001, q = 0.01 and p = 0.99. The carrier frequency is 2pq = 2 × 0.99 × 0.01 = 0.0198, about 1 in 50. A trait that is very rare in its affected form can therefore be fairly common in carriers.

To test whether a population is in equilibrium, calculate p and q from the observed genotype counts, work out the expected counts p² N, 2pq N and q² N, and compare. A large difference, such as far fewer heterozygotes than expected, shows that some force such as inbreeding or selection is acting.

For an X-linked recessive trait such as colour blindness, males have only one X chromosome, so the frequency of affected males equals q. Affected females need two copies, so their frequency is q². If 8% of men are colour-blind, q = 0.08 and the expected frequency of colour-blind women is 0.08² = 0.0064, or 0.64%.

Conditions for equilibrium

Hardy-Weinberg equilibrium holds only under five conditions. The population must be very large, so that chance events do not change allele frequencies. Mating must be random, with no preference for particular genotypes. There must be no mutation creating or changing alleles. There must be no migration, so no alleles enter or leave with individuals (no gene flow). And there must be no natural selection, so all genotypes survive and reproduce equally well.

No natural population meets all these conditions perfectly, so real populations are always evolving to some degree. The value of the principle is that it gives a baseline: when observed frequencies differ from the expected ones, at least one condition is being violated, and the nature of the difference hints at which force is acting.

Factors that change allele frequencies

Mutation is the ultimate source of new alleles. Mutation rates are low, so mutation alone changes allele frequencies very slowly, but it supplies the variation on which other forces act.

Gene flow is the movement of alleles between populations when individuals or their gametes, such as pollen, migrate. It adds new alleles to a population and tends to make neighbouring populations more alike.

Genetic drift is a random change in allele frequencies caused by chance, for example which individuals happen to reproduce. Its effect is strongest in small populations, where an allele can be lost or become fixed by chance alone. The founder effect occurs when a few individuals start a new, isolated population whose allele frequencies differ by chance from those of the parent population. The bottleneck effect occurs when a population is drastically reduced by a disaster or overhunting; the survivors carry only a small, random sample of the original alleles, so genetic variation stays low even after the population grows again, as in cheetahs and northern elephant seals.

Non-random mating, such as inbreeding between relatives, increases the proportion of homozygotes and reduces heterozygotes, but by itself it does not change allele frequencies. Natural selection changes allele frequencies by allowing individuals with certain genotypes to survive and reproduce more than others.

Types of natural selection

Stabilising selection favours individuals with intermediate phenotypes and acts against both extremes, so it reduces variation and keeps the population mean steady. Human birth weight is the classic example.

Directional selection favours one extreme phenotype, so the population mean shifts in that direction over generations. Industrial melanism in the peppered moth is the standard example: in polluted areas of England the dark form increased because it was better camouflaged on soot-darkened tree trunks. The spread of antibiotic resistance in bacteria and pesticide resistance in insects are other examples.

Disruptive selection favours both extremes over the intermediate forms, which can split a population into two distinct types and may lead to speciation.

Balancing selection keeps two or more alleles in a population. In regions where malaria is common, people heterozygous for the sickle-cell allele (HbA HbS) are more resistant to malaria than normal homozygotes and do not suffer the severe anaemia of HbS homozygotes. This heterozygote advantage keeps the sickle-cell allele at a high frequency there.

Solved examples

  1. In a population of 500 individuals, 180 are AA, 240 are Aa and 80 are aa. The frequency of allele a is: (A) 0.16 (B) 0.32 (C) 0.4 (D) 0.6
    1. The population carries 2 × 500 = 1000 alleles of this gene.
    2. Each aa individual has two a alleles and each Aa has one: 2 × 80 + 240 = 400 copies of a.
    3. q = 400 ÷ 1000 = 0.4, and p = 0.6. The value 0.16 is the aa genotype frequency (80 ÷ 500), not the allele frequency.
    Answer: (C) 0.4
  2. Albinism, a recessive trait, affects 1 in 10,000 people in a population in equilibrium. About what proportion of people are carriers? (A) About 1 in 100 (B) About 1 in 50 (C) About 1 in 10,000 (D) About 1 in 5,000
    1. Affected people are aa, so q² = 1 ÷ 10,000 = 0.0001 and q = 0.01.
    2. p = 1 − 0.01 = 0.99.
    3. Carriers = 2pq = 2 × 0.99 × 0.01 = 0.0198, which is about 1 in 50.5, or roughly 1 in 50.
    Answer: (B) About 1 in 50
  3. In a population in Hardy-Weinberg equilibrium, 16% of people are Rh-negative (dd). The frequency of heterozygous (Dd) people is: (A) 0.16 (B) 0.24 (C) 0.36 (D) 0.48
    1. q² = 0.16, so q = 0.4 and p = 0.6.
    2. Heterozygotes = 2pq = 2 × 0.6 × 0.4 = 0.48.
    3. Check: DD = 0.36, Dd = 0.48, dd = 0.16, and 0.36 + 0.48 + 0.16 = 1. The value 0.36 is DD, not Dd.
    Answer: (D) 0.48
  4. Red-green colour blindness is X-linked recessive. If 8% of the men in a population are colour-blind, the expected percentage of colour-blind women is: (A) 0.64% (B) 4% (C) 8% (D) 16%
    1. A man has one X chromosome, so the frequency of colour-blind men equals q = 0.08.
    2. A woman must inherit the allele on both X chromosomes, so her chance is q² = 0.08 × 0.08 = 0.0064.
    3. 0.0064 = 0.64%. Taking 8% for women ignores that they need two copies, and 4% or 16% come from halving or doubling q.
    Answer: (A) 0.64%
  5. A sample of 100 individuals contains 50 AA, 20 Aa and 30 aa. Which statement is correct? (A) The population is in Hardy-Weinberg equilibrium (B) It is not in equilibrium; there are fewer heterozygotes than expected (C) It is not in equilibrium; there are more heterozygotes than expected (D) Equilibrium cannot be judged without the mutation rate
    1. p = (2 × 50 + 20) ÷ 200 = 120 ÷ 200 = 0.6, so q = 0.4.
    2. Expected counts are p² × 100 = 36 AA, 2pq × 100 = 48 Aa and q² × 100 = 16 aa.
    3. Only 20 heterozygotes are observed against 48 expected, so the population is not in equilibrium; a heterozygote deficit like this often points to inbreeding. The mutation rate is not needed to make this comparison.
    Answer: (B) It is not in equilibrium; there are fewer heterozygotes than expected
  6. A population consists of 80% AA and 20% aa individuals, with no heterozygotes. After one generation of random mating with no other forces acting, the frequency of Aa will be: (A) 0 (B) 0.16 (C) 0.32 (D) 0.64
    1. Allele frequencies come straight from the genotypes: p = 0.8 and q = 0.2.
    2. Random mating produces Hardy-Weinberg proportions in a single generation, so Aa = 2pq = 2 × 0.8 × 0.2 = 0.32.
    3. The new generation is 0.64 AA, 0.32 Aa and 0.04 aa; the allele frequencies have not changed, only the genotype frequencies.
    Answer: (C) 0.32

Exam shortcuts

Common mistakes

Practice MCQs

  1. In a population, the frequency of the recessive allele a is 0.25. The frequency of the dominant allele A is:
    A) 0.25
    B) 0.5
    C) 0.0625
    D) 0.75
    Answer: D) 0.75 — Since p + q = 1, p = 1 − 0.25 = 0.75. The value 0.25 is q itself, 0.5 assumes equal frequencies, and 0.0625 is q², the aa genotype frequency.
  2. In the Hardy-Weinberg equation p² + 2pq + q² = 1, the term q² represents the frequency of:
    A) The recessive allele
    B) Homozygous recessive individuals
    C) Heterozygous carriers
    D) Individuals with the dominant phenotype
    Answer: B) Homozygous recessive individuals — q² is the proportion of aa individuals. The recessive allele frequency is q, carriers are 2pq, and the dominant phenotype includes both p² and 2pq.
  3. The total of all alleles of all genes in a population is called its:
    A) Genome
    B) Genotype
    C) Gene pool
    D) Karyotype
    Answer: C) Gene pool — The gene pool belongs to a whole population. A genome is the complete genetic material of one organism or one chromosome set, a genotype is the allele combination of an individual, and a karyotype is its chromosome set as seen under the microscope.
  4. Which of the following is a condition for Hardy-Weinberg equilibrium?
    A) Random mating
    B) Small population size
    C) Frequent mutation
    D) Strong natural selection
    Answer: A) Random mating — Equilibrium requires random mating along with a very large population, no mutation, no migration and no selection. A small population causes drift, and mutation and selection change allele frequencies.
  5. The movement of alleles from one population into another through migration of individuals is called:
    A) Genetic drift
    B) Mutation
    C) Inbreeding
    D) Gene flow
    Answer: D) Gene flow — Gene flow carries alleles between populations with migrating individuals or gametes. Genetic drift is a chance change within a population, mutation creates new alleles, and inbreeding is mating between relatives.
  6. If the frequency of the dominant allele in a population in equilibrium is 0.8, the frequency of homozygous recessive individuals is:
    A) 0.2
    B) 0.04
    C) 0.16
    D) 0.64
    Answer: B) 0.04 — q = 1 − 0.8 = 0.2, so aa = q² = 0.04. The value 0.2 is q, 0.16 is p × q without the factor 2, and 0.64 is p², the AA frequency.
  7. A population of 250 individuals has 160 AA, 80 Aa and 10 aa. The frequency of allele a is:
    A) 0.2
    B) 0.04
    C) 0.16
    D) 0.8
    Answer: A) 0.2 — Copies of a = 2 × 10 + 80 = 100 out of 500 alleles, so q = 0.2. The value 0.04 is the aa genotype frequency, 0.16 is p × q, and 0.8 is the frequency of A.
  8. In a population in equilibrium, 1% of individuals show a recessive trait. The frequency of heterozygotes is:
    A) 0.01
    B) 0.09
    C) 0.18
    D) 0.81
    Answer: C) 0.18 — q² = 0.01 gives q = 0.1 and p = 0.9, so 2pq = 2 × 0.9 × 0.1 = 0.18. The value 0.01 is q², 0.09 is p × q without the factor 2, and 0.81 is p².
  9. For a gene with two alleles, the frequency of heterozygotes in a population in equilibrium can never be greater than:
    A) 0.25
    B) 0.75
    C) 1.0
    D) 0.5
    Answer: D) 0.5 — 2pq is largest when p = q = 0.5, giving 2 × 0.5 × 0.5 = 0.5. The value 0.25 is p² or q² at that point, and 0.75 or 1.0 are impossible because p² + q² can never fall below 0.5.
  10. Hunting reduced a seal population to about 20 animals. The population later recovered to thousands but shows very little genetic variation. This is an example of the:
    A) Bottleneck effect
    B) Founder effect
    C) Gene flow
    D) Stabilising selection
    Answer: A) Bottleneck effect — A drastic fall in numbers left only a small random sample of alleles, which a bottleneck describes. The founder effect involves a few individuals starting a new population elsewhere, gene flow would add variation, and stabilising selection acts on phenotypes rather than causing such a loss.
  11. The increase of dark-coloured peppered moths in polluted industrial areas of England is an example of:
    A) Stabilising selection
    B) Directional selection
    C) Disruptive selection
    D) Genetic drift
    Answer: B) Directional selection — Selection favoured one extreme, the dark form, so the population shifted towards it. Stabilising selection favours the average, disruptive selection favours both extremes, and the change was caused by predation on visible moths rather than by chance.
  12. If a large population practises continued inbreeding and no other force acts on it, the main effect will be:
    A) An increase in the proportion of heterozygotes
    B) The appearance of new alleles
    C) An increase in the proportion of homozygotes
    D) A change in allele frequencies so that p + q exceeds 1
    Answer: C) An increase in the proportion of homozygotes — Inbreeding raises homozygosity and lowers heterozygosity while allele frequencies stay the same. It does not increase heterozygotes, cannot create new alleles, and p + q always equals 1.
  13. The sickle-cell allele remains common in regions where malaria is widespread because:
    A) The allele is dominant over the normal allele
    B) Mutation produces the allele at a very high rate
    C) Homozygotes for the allele survive best
    D) Heterozygotes are more resistant to malaria
    Answer: D) Heterozygotes are more resistant to malaria — Heterozygotes resist malaria without suffering severe sickle-cell anaemia, so they leave more offspring and keep both alleles in the population. The allele is not simply dominant, its mutation rate is not unusually high, and HbS homozygotes suffer severe anaemia.
  14. Colour blindness is X-linked recessive. If 5% of the men in a population are colour-blind, the expected percentage of colour-blind women is:
    A) 0.25%
    B) 2.5%
    C) 5%
    D) 10%
    Answer: A) 0.25% — Colour-blind men give q = 0.05, and women need two copies, so q² = 0.0025 = 0.25%. A value of 5% treats women like men, 2.5% halves q, and 10% doubles it.
  15. In a town of 2000 people in equilibrium, 1 in 400 people has a recessive disorder. The expected number of carriers is:
    A) 5
    B) 190
    C) 95
    D) 380
    Answer: B) 190 — q² = 1 ÷ 400 gives q = 0.05 and p = 0.95, so 2pq = 0.095 and carriers = 0.095 × 2000 = 190. The value 5 is the number of affected people, 95 forgets the factor 2, and 380 doubles the correct value.

Questions

Why do Hardy-Weinberg problems start from the recessive phenotype?

Because AA and Aa individuals look the same, only aa individuals can be identified by their phenotype. Their frequency is q², which gives q by taking the square root; everything else follows from p = 1 − q.

What are the five conditions for Hardy-Weinberg equilibrium?

A very large population, random mating, no mutation, no migration (gene flow) and no natural selection. When any of these is violated, allele frequencies can change and the population evolves.

Does inbreeding change allele frequencies?

Not by itself. Inbreeding increases the proportion of homozygotes and reduces heterozygotes, but the overall frequencies p and q remain the same unless selection or another force also acts.

How are X-linked traits handled?

Males have one X chromosome, so the frequency of affected males equals q. Females need two copies, so their frequency is q², which is why X-linked recessive conditions are much rarer in women.