Allele Frequency Calculator
Find allele frequencies from observed genotype counts.
Enter the number of individuals of each genotype.
1000 individuals = 2000 alleles · 1200 dominant, 800 recessive
To find an allele frequency, count alleles and divide by 2N. Use p = (2·AA + Aa) ÷ 2N. For 360 AA, 480 Aa, and 160 aa (N = 1,000, so 2N = 2,000): p = (720 + 480) ÷ 2,000 = 0.6, and q = (320 + 480) ÷ 2,000 = 0.4.
How allele frequency is counted
Allele frequency counts alleles, not individuals. Each diploid individual carries two alleles, so a population of N individuals holds 2N alleles in total. A homozygote (AA or aa) contributes two copies of one allele; a heterozygote (Aa) contributes one of each. Tally those copies and divide by 2N to get each allele’s frequency.
and q = (2·aa + Aa) ÷ 2N, where N = total individuals; p + q = 1
Worked example
A population of 1,000 individuals: 360 AA, 480 Aa, and 160 aa.
- 1 Find the total allele count. N = 360 + 480 + 160 = 1,000 individuals, so 2N = 2,000 alleles in the gene pool.
- 2 Count the dominant (A) alleles. 2·AA + Aa = 2 × 360 + 480 = 1,200 copies of A.
- 3 Divide to get p. p = 1,200 ÷ 2,000 = 0.6.
- 4 Get q and check. q = (2 × 160 + 480) ÷ 2,000 = 800 ÷ 2,000 = 0.4. Check: p + q = 0.6 + 0.4 = 1.00.
Reading the result, and what to watch for
What it tells you. Once you have p and q, you can compute the genotype counts you would expect if the population were in Hardy-Weinberg equilibrium and compare them to what you actually counted. The bar chart above shows both side by side.
Real-world example. In a wildflower field you score 1,000 plants for a flower-color gene and get the counts above; p = 0.6 says the dominant allele is the more common one in that gene pool that season.
Common mistakes. Don’t count a heterozygote only once — Aa adds one allele to both p and q. And don’t divide by N; the denominator is 2N because each individual carries two alleles.
How each genotype contributes alleles
For one individual of each genotype; multiply by the count you observe.
| Genotype | A alleles | a alleles |
|---|---|---|
| AA (homozygous dominant) | 2 | 0 |
| Aa (heterozygous) | 1 | 1 |
| aa (homozygous recessive) | 0 | 2 |