Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Allele Frequency Calculator

Number of AA individuals (homozygous dominant): enter 0 or more. Prefilled example: 36.

Number of Aa individuals (heterozygous): enter 0 or more. Prefilled example: 48.

Number of aa individuals (homozygous recessive): enter 0 or more. Prefilled example: 16.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Number of AA individuals (homozygous dominant): enter 0 or more.
  2. Number of Aa individuals (heterozygous): enter 0 or more.
  3. Number of aa individuals (homozygous recessive): enter 0 or more.
  4. 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

  1. N=aa2+aa1+aa0
  2. Ca=2×aa2+aa1
  3. P=Ca2×N
Symbols used in the formula
SymbolMeaning
aa2Number of AA individuals (homozygous dominant)
aa1Number of Aa individuals (heterozygous)
aa0Number of aa individuals (homozygous recessive)
NIndividuals (N)
CaCopies of allele A
PFrequency 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 A120
Frequency of a (q)0.4
Observed heterozygosity0.48
  1. N=36+48+16=100
  2. Ca=2×36+48=120
  3. P=1202×100=0.6

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.

Related calculators