Study tips9 min read

Hardy-Weinberg equation in A-Level Biology: what p and q mean, how to use it, and exam questions with answers

Find what each term stands for, the conditions for equilibrium and the order to work in, then practise on exam questions with mark schemes.

Medly Team25 November 2026
On this page

The Hardy-Weinberg principle predicts that the allele frequencies in a population stay the same from one generation to the next, as long as certain conditions hold. Its equation, p² + 2pq + q² = 1, links the frequencies of two alleles, p and q, to the frequencies of the three genotypes. This page follows AQA A-Level Biology (7402): it covers what each term means, the conditions, the order to work in, and three exam questions with answers.

What is the Hardy-Weinberg principle?

The Hardy-Weinberg principle is a mathematical model of a population: allele frequencies stay constant from generation to generation when specific conditions apply, and a population that meets them is in Hardy-Weinberg equilibrium. The model is about frequencies, not about how many organisms there are.

A population's gene pool is the complete set of alleles present in it. An allele frequency is the proportion of all copies of a gene in the population that are one particular allele:

allele frequency = number of copies of a particular allele ÷ total number of copies of the gene in the population

If 60 out of 100 copies of a gene are allele A, the frequency of A is 60 ÷ 100 = 0.60.

The Hardy-Weinberg equation: what p, q, p², 2pq and q² mean

There are two equations: p + q = 1 for the two alleles, and p² + 2pq + q² = 1 for the three genotypes.

AQA's specification gives the equation as p² + 2pq + q² = 1, "where p is the frequency of one (usually the dominant) allele and q is the frequency of the other (usually recessive) allele of the gene". It also asks you to know "The conditions under which the principle applies", which are in the next section.

For a gene with a dominant allele A and a recessive allele a:

TermWhat it is the frequency ofGenotypePhenotype
pAllele A, usually the dominant alleleNot applicableNot applicable
qAllele a, usually the recessive alleleNot applicableNot applicable
p²Individuals with two copies of AAA, homozygous dominantDominant
2pqIndividuals with one copy of each alleleAa, heterozygousDominant
q²Individuals with two copies of aaa, homozygous recessiveRecessive

The 2 in 2pq is there because the two alleles can combine in either order, pq or qp. The equation is (p + q)² written out, and because p + q = 1, the three genotype frequencies add up to 1. The dominant phenotype frequency is p² + 2pq, and the recessive phenotype frequency is q². A dominant allele does not have to be the more frequent one.

The five conditions for Hardy-Weinberg equilibrium

The model applies only when every one of these conditions is met for the gene.

ConditionWhat it means for the population
Large populationChance effects on allele frequencies are negligible
Random matingIndividuals do not choose partners according to the relevant genotype
No mutation affecting the geneAlleles are not changed into other alleles by mutation
No migration into or out of the populationAlleles are not added or removed by organisms moving in or out
No selection among the relevant genotypesNo genotype has a greater chance of surviving and reproducing than another

If one or more of these conditions is not met, allele frequencies may change between generations.

How to use the Hardy-Weinberg equation

Start from the individuals with the recessive phenotype. Where the recessive phenotype is caused only by genotype aa, its frequency is q², so this is the one group whose genotype you know for certain.

  1. Find the frequency of the recessive phenotype and treat it as q². If you are given the dominant phenotype frequency instead, subtract it from 1 first.
  2. Find q by taking the square root.
  3. Find p from p = 1 − q.
  4. Calculate p² and 2pq, and check that p² + 2pq + q² comes to 1.

For example, in a population in Hardy-Weinberg equilibrium, 84% of individuals show the dominant phenotype. The dominant allele is A and the recessive allele is a.

  1. Dominant phenotype frequency = 0.84
  2. q² = 1 − 0.84 = 0.16
  3. q = √0.16 = 0.40
  4. p = 1 − 0.40 = 0.60
  5. p² = 0.60² = 0.36
  6. 2pq = 2 × 0.60 × 0.40 = 0.48
  7. Check: 0.36 + 0.48 + 0.16 = 1.00, and the dominant phenotype is 0.36 + 0.48 = 0.84, as given.

Note that q = 0.40 does not mean 40% of individuals show the recessive phenotype: that is q² = 0.16, so 16% do.

What a Hardy-Weinberg result tells you

The equation gives the frequencies you would expect if the conditions held. When a real population's frequencies differ from them, it may not be in equilibrium: there may be selection, migration, mutation or non-random mating, or the population may be too small. The calculation does not tell you which condition has failed, and a match does not prove that every condition applies.

Observed and expected numbers can be compared with a chi-squared (χ²) test, which decides whether the difference is likely to be due to chance. The calculated χ² value is compared with a critical value at a probability of 0.05: below it, the difference is not significant; equal to it or above it, the difference is significant.

Hardy-Weinberg exam questions with answers

Each question below is an exam-style question from Medly, marked with Medly's mark scheme.

Question 1: (2 marks)

DNA analysis of a single population of reed beetles found 38 copies of allele R and 62 copies of allele r for one gene.

Use the information provided to calculate the frequency of allele R.

Answer
  1. Divide the copies of R by all copies of the gene: 38 ÷ (38 + 62) (1 mark).
  2. Frequency of allele R = 0.38 (1 mark, needed for full marks). Medly's mark scheme also accepts 38%.

Question 2: (8 marks)

Freshwater snails in Lake Serein have shell colour controlled by a C/c locus. Allele C produces a dark shell and is dominant to allele c.

The genotype counts in a sample of 1000 snails are shown below.

GenotypeNumber of snails
CC340
Cc500
cc160

(a) Describe and explain two calculations used to determine p and q for this snail population. Do not include in your answer the calculation of expected genotype frequencies. [3 marks]

(b) The Hardy-Weinberg equation has a similar structure to the expansion of (p + q)². Explain how this is used to calculate the expected frequencies of CC, Cc and cc snails in the Lake Serein sample. [2 marks]

(c) A chi-squared value of 1.12 was calculated from the observed genotype numbers and the Hardy-Weinberg expected genotype numbers for the Lake Serein snails. A value of 3.84 is needed for P = 0.05. Explain how this shows whether the snail population is consistent with the Hardy-Weinberg model. [3 marks]

Answer

(a)

  1. Count the allele copies from the genotype totals: copies of C = 2 × 340 + 500 = 1180, and copies of c = 2 × 160 + 500 = 820, out of 2000 copies in total (1 mark).
  2. p, the frequency of allele C = 1180 ÷ 2000 = 0.590 (1 mark, needed for full marks). Medly's mark scheme also accepts 0.59.
  3. q, the frequency of allele c = 820 ÷ 2000 = 0.410, which is also 1 − p (1 mark, needed for full marks).

(b)

  1. Use p² + 2pq + q² = 1, with p² for CC, 2pq for Cc and q² for cc (1 mark).
  2. CC = 0.59² = 0.3481, Cc = 2 × 0.59 × 0.41 = 0.4838 and cc = 0.41² = 0.1681 (1 mark, needed for full marks).

(c) Medly's mark scheme gives a mark for any three of these four points, and the last one is needed for full marks.

  1. The observed genotype numbers are compared with the numbers expected under the Hardy-Weinberg hypothesis.
  2. The calculated value is less than the critical value: 1.12 < 3.84.
  3. So P > 0.05: the difference can reasonably be due to chance, and it is not significant.
  4. There is no significant difference between the observed and expected genotype numbers, so the results are consistent with the Hardy-Weinberg model.

Question 3: (4 marks)

Silver minnows are fish that live in a lagoon.

Scientists studied this population for ten years.

Paternity analysis is a test used to identify the father of offspring.

A sequence survey checks the DNA sequence of sampled fish.

The evidence collected is shown in the table.

EvidenceFinding
Breeding adults840 were counted each year
Paternity analysisAnalysis of 120 broods found mating frequencies close to those expected by chance
Sequence surveyNo new D or d allele was detected during the ten-year survey
Tagging96% of tagged adults remained in the lagoon, and no untagged adults were recorded
GenotypesDD, Dd and dd fish had similar survival to breeding and similar mean offspring number

A student concluded that the silver minnow population is in Hardy-Weinberg equilibrium.

Evaluate the student's conclusion using the information provided.

Answer

Medly's mark scheme gives a mark for each of any four of these points.

  1. The 840 breeding adults provide evidence of a sufficiently large population.
  2. Mating frequencies close to those expected by chance provide evidence of random mating.
  3. The absence of detected new D or d alleles is consistent with no mutation affecting the gene.
  4. Only 96% of tagged adults remained, so possible emigration means that the no-migration condition for Hardy-Weinberg equilibrium is not established, although no immigration was detected.
  5. Similar survival to breeding and mean offspring number for DD, Dd and dd fish provide evidence against selection among the genotypes.
  6. Ten years of observations cannot prove that the equilibrium conditions always hold.

In these questions, q is the frequency of an allele and q² the frequency of a genotype, and a question can ask for either. Medly marks written answers like Question 3 against the mark scheme, so you can see which point you missed. Medly's free plan includes 5 marked questions, 20 AI tutor messages and 1 uploaded paper a day, with no card needed, and Medly has an AQA A-Level Biology course.

Which paper tests Hardy-Weinberg?

AQA's A-Level Paper 2 and Paper 3 can examine the Hardy-Weinberg equation: our papers guide has what each paper covers. AQA heads this section of its specification "(A-Level only)", so the AS papers do not test it. Our specification guide lists every topic in the course.

Frequently asked questions

What do p and q stand for in Hardy-Weinberg?

p is the frequency of one allele of a gene, usually the dominant allele, and q is the frequency of the other, usually the recessive allele. Together they add up to 1.

What does 2pq represent?

The frequency of heterozygous individuals. The 2 is there because the two alleles can combine in either order.

Which do you work out first, p or q?

Usually q. The frequency of the recessive phenotype is q², so take its square root to find q, then work out p = 1 − q.

What are the conditions for Hardy-Weinberg equilibrium?

Five: a large population, random mating, no mutation, no migration and no selection, all for the gene being studied.

Is Hardy-Weinberg in AS Biology?

AQA heads section 3.7.2 Populations "(A-Level only)", and both AS papers test sections 1 to 4 of the specification.

Try Medly for free