AP Syllabus focus:
‘Allele and genotype frequencies in a nonevolving population can be calculated using the Hardy–Weinberg equations.’
In population genetics, frequencies describe how common alleles and genotypes are in a gene pool. Hardy–Weinberg calculations convert between allele and genotype frequencies, letting you predict expected genotype distributions in a nonevolving population.
Core frequency concepts
Allele frequency (gene pool level)
Allele frequency: the proportion of all copies of a gene in a population that are a particular allele.
For a diploid population, each individual contributes two alleles per gene to the gene pool, so allele counts are out of total gene copies (where is the number of individuals sampled).
Key ideas:
Allele frequencies are typically symbolized as and for a two-allele system.
For two alleles (e.g., A and a), the frequencies must sum to 1 because they represent all alleles at that locus in the population.
Genotype frequency (individuals level)
Genotype frequency: the proportion of individuals in a population that have a particular genotype.
Genotype frequencies are based on counting individuals (not alleles), so they sum to 1 across all possible genotypes at that locus.
Hardy–Weinberg equations (how to calculate expected frequencies)
Hardy–Weinberg provides the mathematical relationship between allele frequencies and genotype frequencies in a nonevolving population.

This figure shows the three Hardy–Weinberg genotype frequency functions (, , and ) plotted against allele frequency. Reading the curves makes it easy to see how changing automatically determines all three expected genotype proportions under a nonevolving model. Source
For a gene with two alleles, once you know and , you can calculate expected genotype frequencies.
= frequency of one allele (e.g., A) in the population (unitless proportion)
= frequency of the other allele (e.g., a) in the population (unitless proportion)
= expected frequency of homozygous dominant genotype (e.g., AA) (unitless proportion)
= expected frequency of heterozygous genotype (e.g., Aa) (unitless proportion)
= expected frequency of homozygous recessive genotype (e.g., aa) (unitless proportion)
These expressions let you move between:

This graph plots the Hardy–Weinberg expected genotype frequencies , , and across the full range of allele frequencies ( from 0 to 1, with ). It visually emphasizes that heterozygotes () peak when , while homozygotes dominate when one allele is rare. Source
Allele frequencies (, ) and
Expected genotype frequencies (, , )
How to obtain allele frequencies from genotype frequencies (and vice versa)
From genotype counts to genotype frequencies
You first convert raw counts into frequencies:
Divide each genotype count by the total number of individuals, .
Check that genotype frequencies sum to 1 (allowing for rounding).
From genotype frequencies to allele frequencies
To calculate allele frequencies, count allele copies contributed by each genotype:
Each homozygote contributes two copies of its allele.
Each heterozygote contributes one copy of each allele.
Conceptual relationships for alleles A and a:
increases with AA and Aa individuals (because both carry A).
increases with aa and Aa individuals (because both carry a).
From allele frequencies to expected genotype frequencies
Once and are known:
Square to get expected AA frequency ().
Multiply to get expected Aa frequency ().
Square to get expected aa frequency ().
What “nonevolving population” implies for calculations
Hardy–Weinberg calculations are used to generate expected genotype frequencies under a stable allele-frequency model. In this context:
and are treated as constant from one generation to the next.
Deviations between observed genotype frequencies and expectations suggest the population may not match the nonevolving model.
Common constraints and checks (good calculation habits)
Ensure allele frequencies remain within bounds: , .
For two alleles, verify after computing allele frequencies.
Verify expected genotype frequencies sum to 1: (rounding may cause slight differences).
Distinguish clearly between:
Allele frequency (counts alleles; denominator ), and
Genotype frequency (counts individuals; denominator ).
FAQ
Because there are two ways to form a heterozygote when combining alleles: B from one parent with b from the other, or b with B. These are distinct pairings but the same genotype, so probabilities add.
In diploid organisms, each of the $N$ individuals carries two alleles at the locus, so the total number of allele copies in the sample is $2N$. Allele frequency is the fraction of those copies.
You must account for different allele copy numbers by sex: males are typically hemizygous (one X allele), females have two. Allele frequencies are calculated using total X chromosomes, not $2N$ individuals.
Observed frequencies come from measured data (counts in a sample). Expected frequencies are predictions from $p$ and $q$ using $p^2$, $2pq$, and $q^2$ under the Hardy–Weinberg model.
Rounded $p$ and $q$ values can make $p+q$ slightly different from 1 and cause $p^2+2pq+q^2$ to deviate slightly from 1. Carry extra decimal places during intermediate steps to minimise error.
Practice Questions
In a population with two alleles, A and a, allele A has frequency . State the value of and the expected heterozygote genotype frequency under Hardy–Weinberg. (2 marks)
(1)
Expected heterozygote frequency (1)
A gene has two alleles, B and b. In a sample, the genotype frequencies are: , , .
(a) Calculate the allele frequencies (for B) and (for b). (3 marks)
(b) Using Hardy–Weinberg, state the expected genotype frequencies from your and . (2 marks)
(5 marks)
Correct method: (1)
(1)
(or ) (1) (b)
, , stated (award 1 for two correct, 2 for all three) (2)
