Allele Frequency Calculator
BiologyCalculate allele frequencies p and q from genotype counts (AA, Aa, aa) in a population. Get exact allele proportions instantly for genetics coursework.
Reviewed by the thecalcu.com team Ā· Last updated July 20, 2026
Dominant Allele Frequency (p)
What is a Allele Frequency?
The Allele Frequency Calculator computes the frequency of the dominant allele (p) and recessive allele (q) in a population directly from genotype counts. Enter the number of homozygous dominant (AA), heterozygous (Aa), and homozygous recessive (aa) individuals, and the calculator returns the exact allele proportions.
This is the reverse direction of the Hardy-Weinberg Calculator, which starts from an allele frequency and predicts genotype frequencies, here, you start from real observed genotype counts and work backward to the underlying allele frequencies.
Why Use an Allele Frequency Calculator?
Manually tallying allele copies across three genotype categories is easy to get wrong, especially remembering that heterozygous individuals contribute only one copy of each allele while homozygous individuals contribute two of the same.
This calculator handles the counting and division automatically and shows the total alleles counted, making it simple to verify your genotype counts add up correctly before drawing conclusions about the population.
Who Should Use This Calculator?
Biology and genetics students completing population genetics problem sets that start from genotype survey data.
Population geneticists and ecologists processing genotype counts from field or lab samples.
Genetic counseling students estimating allele frequencies as a precursor to carrier frequency calculations.
Teachers demonstrating the relationship between genotype counts and allele frequency in a classroom setting.
What Insights Does This Calculator Give You?
Dominant allele frequency (p), the primary result, showing what proportion of all gene copies in the sampled population carry the dominant allele.
Recessive allele frequency (q), automatically computed alongside p, since the two must sum to 100% in a two-allele system.
Total alleles counted, a useful sanity check, since it should always equal exactly twice your total individual count.
How to use this Allele Frequency calculator
Enter the homozygous dominant (AA) count, the number of individuals in your sample or population carrying two dominant alleles.
Enter the heterozygous (Aa) count, the number of individuals carrying one dominant and one recessive allele.
Enter the homozygous recessive (aa) count, the number of individuals carrying two recessive alleles.
Read the allele frequencies, p (dominant) and q (recessive), expressed as percentages, along with total individuals and total alleles counted.
Show formula & methodology āShow less ā
Formula & Methodology
Allele frequency formulas: p = (2 Ć AA count + Aa count) Ć· (2 Ć total individuals) q = (2 Ć aa count + Aa count) Ć· (2 Ć total individuals) Variable definitions: - AA, Aa, aa, counts of each genotype observed in the population - Total individuals, AA + Aa + aa - Total alleles, 2 Ć total individuals (each individual carries 2 alleles for this gene) - p, frequency of the dominant allele - q, frequency of the recessive allele (always 1 ā p) Worked example: Given AA = 320, Aa = 480, aa = 200 (1,000 individuals total): Total alleles = 1,000 Ć 2 = 2,000 Dominant allele count = (320 Ć 2) + 480 = 1,120 p = 1,120 Ć· 2,000 = 56% q = 1 ā 0.56 = 44% Note: This calculator assumes a single gene locus with exactly two alleles (dominant/recessive). For genes with more than two alleles, or for X-linked genes with different counting rules by sex, the underlying counting logic needs to be adapted accordingly.
Frequently Asked Questions