Allele Frequency Calculator

Enter genotype counts to calculate p, q, and expected heterozygosity for a two-allele population.

Allele Frequency Formula

p = (2AA + Aa) / 2N; q = (2aa + Aa) / 2N

Allele frequency counts how often each allele appears in the population's gene copies. Homozygotes contribute two copies of the same allele, while heterozygotes contribute one copy of each allele.

SymbolVariableDescription
AADominant homozygotesIndividuals with two dominant alleles.
AaHeterozygotesIndividuals with one dominant and one recessive allele.
aaRecessive homozygotesIndividuals with two recessive alleles.
NTotal individualsAA + Aa + aa.

How to Calculate Allele Frequency

  1. 1

    Enter genotype counts

    Count individuals in each genotype class: AA, Aa, and aa.

  2. 2

    Calculate p and q

    The calculator converts genotype counts into allele frequencies for the dominant and recessive alleles.

  3. 3

    Review heterozygosity

    Expected heterozygosity, 2pq, is useful for Hardy-Weinberg checks and population-genetics interpretation.

Allele Frequency Example

Suppose a sample has 49 AA, 42 Aa, and 9 aa individuals. There are 100 individuals and 200 total allele copies. The dominant allele count is 2×49 + 42 = 140, so p = 0.70. The recessive allele frequency is q = 0.30.

  • Each AA individual contributes two A alleles.
  • Each Aa individual contributes one A and one a allele.
  • Each aa individual contributes two a alleles.
  • For a two-allele system, p + q should equal 1.

Allele Frequency vs Genotype Frequency

Allele frequency describes copies of alleles in the population, while genotype frequency describes individuals with each genotype. The two are related, but they are not the same measurement.

  • Use allele frequency for p and q.
  • Use genotype frequency for observed AA, Aa, and aa proportions.
  • Use Hardy-Weinberg calculations when you need expected genotype frequencies from p and q.

Allele Frequency FAQ

Related Genetics Calculators

More tools

Browse more calculator categories

All calculators