Allele Frequency: How It’s Calculated
- Frequency of allele b
- Result
- Count of aa genotype
- 50 individuals
- You entered
- Count of ab genotype
- 30 individuals
- You entered
Allele frequency is calculated by dividing the number of copies of a specific allele by the total number of all alleles for that gene in a population. You count every copy of the allele in your sample, count every copy of every allele at that locus, and divide the first number by the second. The result is a proportion between 0 and 1, often expressed as a percentage.
Formula
For a gene with two alleles, a and b, the frequency of allele a is:
p = (2 × Naa + Nab) / (2 × Ntotal)
where:
- Naa = number of individuals with genotype aa (homozygous for a)
- Nab = number of individuals with genotype ab (heterozygous)
- Ntotal = total number of individuals in the sample
For allele b, the formula is symmetric: q = (2 × Nbb + Nab) / (2 × Ntotal). Note that p + q = 1 when only two alleles exist. If there are more than two alleles (e.g., a, b, and c), each allele’s frequency uses the same logic: count the allele copies, divide by the total copies.
Worked Example
Using the calculator’s default values: 50 aa, 30 ab, and 20 bb individuals.
- Total individuals = 50 + 30 + 20 = 100
- Total allele copies = 2 × 100 = 200
- Copies of allele a = 2 × 50 (from aa) + 30 (from ab) = 130
- Frequency of a = 130 / 200 = 0.65
- Copies of allele b = 2 × 20 (from bb) + 30 (from ab) = 70
- Frequency of b = 70 / 200 = 0.35
Check: 0.65 + 0.35 = 1.0. The calculator’s first output shows 0.650 for a and 0.350 for b.
Why Allele Frequency Matters
Allele frequency is the raw material of evolution. When frequencies change over generations, the population is evolving. This measure is used in:
- Population genetics – to track genetic diversity and structure.
- Conservation biology – to assess the health of endangered species.
- Medicine – to study the prevalence of disease-causing alleles.
- Agriculture – to select for desirable traits in breeding programs.
It also forms the basis of the Hardy–Weinberg equilibrium, a model that predicts genotype frequencies from allele frequencies under ideal conditions (no mutation, migration, selection, or drift).
How to Choose the Right Data
To calculate allele frequency, you need genotype counts, not just phenotype counts. For example, if you know that 70% of a population shows a dominant trait, you cannot directly compute allele frequency unless you also know the proportion of heterozygotes. The Hardy–Weinberg formula (p² + 2pq + q² = 1) can estimate it only if the population is in equilibrium—a big assumption.
When collecting data:
- Use a random sample that represents the population.
- Ensure genotypes are scored accurately (e.g., via DNA sequencing or gel electrophoresis).
- Record counts for each genotype, not just totals.
Common Mistakes and Misconceptions
One frequent error is dividing by the number of individuals instead of the number of allele copies. Remember: each diploid individual has two alleles, so the denominator is 2 × Ntotal. Another mistake is forgetting to double the homozygous count when adding allele copies.
A common misconception: allele frequency is the same as genotype frequency. They are different. For instance, if a population has 50% aa and 50% bb, the allele frequencies are 0.5 for a and 0.5 for b, but the genotype frequencies are 0.5, 0, and 0.5 for aa, ab, and bb respectively.
Also, allele frequencies can be expressed as decimals (0.65) or percentages (65%). Both are correct, but keep units consistent in your reports.
Limitations and Assumptions
The calculation assumes you have complete genotype data. If some individuals are not genotyped, the sample may be biased. The method also assumes diploid inheritance (two alleles per individual); for polyploid organisms (e.g., wheat), the denominator changes accordingly.
Allele frequency alone does not tell you about natural selection, migration, or drift. It is a snapshot, not a full explanation. To infer evolutionary forces, you need to compare frequencies across time or populations.
For sex-linked genes or mitochondrial DNA, the calculation differs because males have one X chromosome and females have two, or because mitochondria are inherited maternally. In such cases, adjust the denominator based on the number of copies per individual.
Frequently Asked Questions
What is the difference between allele frequency and gene frequency?
They are often used interchangeably, but “gene frequency� can sometimes refer to the frequency of a genotype. In modern usage, allele frequency is preferred because it is unambiguous—it refers to a specific variant of a gene, not the whole gene.
Can allele frequency be greater than 1?
No. Allele frequency is a proportion, so it ranges from 0 to 1. If you get a number above 1, you likely made a calculation error, such as not dividing by the total allele copies.
How do you calculate allele frequency from phenotype data?
If the trait is dominant/recessive, you can use the Hardy–Weinberg equation: if q² is the frequency of the recessive phenotype, then q = √q², and p = 1 – q. This only works if the population is in Hardy–Weinberg equilibrium, which is rarely guaranteed.
What does a low allele frequency mean?
A low frequency (e.g., 0.01) means the allele is rare in the population. This could be due to recent mutation, negative selection, or genetic drift. It does not necessarily mean the allele is harmful—it could be neutral.
Why do allele frequencies change over time?
Changes are caused by natural selection, mutation, gene flow (migration), genetic drift (random fluctuations), and non-random mating. These are the five forces of evolution.
Is allele frequency the same as the probability of inheriting that allele?
Under random mating and no selection, yes—the allele frequency in the gene pool equals the probability that a randomly chosen gamete carries that allele. But in real populations, deviations occur due to selection and drift.
Related
Formula used
in n_aa | Count of aa genotype | individuals | 50 | 0 in n_ab | Count of ab genotype | individuals | 30 | 0 in n_bb | Count of bb genotype | individuals | 20 | 0 out p_a | Frequency of allele a | - | (2 * n_aa + n_ab) / (2 * (n_aa + n_ab + n_bb)) | 3 out p_b | Frequency of allele b | - | (2 * n_bb + n_ab) / (2 * (n_aa + n_ab + n_bb)) | 3
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.