Allele Frequency Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter how many individuals carry each genotype to get the frequency of each allele.
Result
Frequency of A (p)
Individuals (N)
- Copies of allele A
- Frequency of a (q)
- Observed heterozygosity
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number of AA individuals (homozygous dominant): enter 0 or more.
- Number of Aa individuals (heterozygous): enter 0 or more.
- Number of aa individuals (homozygous recessive): enter 0 or more.
- Read the result: Frequency of A (p); the panel also shows Individuals (N), Copies of allele A, Frequency of a (q) and Observed heterozygosity.
How this calculator works
Each diploid individual carries two copies of the gene. p = (2 × AA + Aa) ÷ 2N and q = (2 × aa + Aa) ÷ 2N = 1 − p, where N is the number of individuals. This is the gene-counting method found in every population genetics textbook.
Observed heterozygosity = Aa ÷ N. Compare it with 2pq in the Hardy-Weinberg calculator to see whether genotypes match random mating.
The formula
| Symbol | Meaning |
|---|---|
| Number of AA individuals (homozygous dominant) | |
| Number of Aa individuals (heterozygous) | |
| Number of aa individuals (homozygous recessive) | |
| Individuals (N) | |
| Copies of allele A | |
| Frequency of A (p) |
Worked example
| Number of AA individuals (homozygous dominant) | 36 |
|---|---|
| Number of Aa individuals (heterozygous) | 48 |
| Number of aa individuals (homozygous recessive) | 16 |
| Individuals (N) | 100 |
|---|---|
| Copies of allele A | 120 |
| Frequency of a (q) | 0.4 |
| Observed heterozygosity | 0.48 |
Frequency of A (p) 0.6
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What are p and q?
The shares of the two alleles in the gene pool. They always add up to 1.
With 36 AA, 48 Aa and 16 aa, what is p?
p = (72 + 48) ÷ 200 = 0.6 and q = 0.4.