Allele Frequency Calculator

Calculate allele frequencies from genotype counts with the Allele Frequency Calculator. Enter AA, Aa, and aa counts to get p, q values and verify Hardy-Weinberg equilibrium.

832.1K usesUpdated · 2026-04-26Runs locally · zero upload

How to Use Allele Frequency Calculator

The Allele Frequency Calculator turns raw genotype count data into population-level allele frequencies in seconds. Here is how to use it:

  1. Enter Genotype AA Count — Input the number of homozygous dominant individuals (two copies of allele A) in your sample.
  2. Enter Genotype Aa Count — Input the number of heterozygous individuals (one copy of each allele).
  3. Enter Genotype aa Count — Input the number of homozygous recessive individuals (two copies of allele a). The Allele Frequency Calculator then computes N, p, q, and confirms that p + q = 1.

All inputs must be non-negative integers, and the total sample size must be greater than zero.

Formula & Theory — Allele Frequency Calculator

The Allele Frequency Calculator is based on the fundamental allele counting principle used in population genetics:

N = AA + Aa + aa
p = (2 × AA + Aa) / (2N)
q = (2 × aa + Aa) / (2N)
p + q = 1
Symbol Meaning
AA Count of homozygous dominant individuals
Aa Count of heterozygous individuals
aa Count of homozygous recessive individuals
N Total sample size
p Frequency of dominant allele A
q Frequency of recessive allele a

Because each individual in a diploid population carries two alleles, the total allele count at a locus is 2N. Homozygous AA individuals contribute 2 copies of allele A; heterozygotes contribute 1. The Allele Frequency Calculator applies this logic directly to convert genotype observations into allele frequencies.

Relationship to Hardy-Weinberg Equilibrium

Once p and q are known, you can test whether the population is in Hardy-Weinberg equilibrium by comparing the observed genotype frequencies to the expected values p², 2pq, and q². The Allele Frequency Calculator provides p and q as the starting point for this analysis.

Use Cases for Allele Frequency Calculator

The Allele Frequency Calculator is useful in a variety of situations:

  • Genetics Research — Quickly determine allele frequencies from survey data on natural populations to assess genetic diversity or selection pressure.
  • Population Genetics Studies — Use the Allele Frequency Calculator as the first step in Hardy-Weinberg equilibrium testing or Fst calculations between subpopulations.
  • Medical Genetics — Estimate carrier frequency for autosomal recessive conditions; p and q values feed directly into risk calculations.
  • Biostatistics Education — Teach students the relationship between genotype counts and allele frequencies through hands-on use of the Allele Frequency Calculator.
  • Evolutionary Biology — Track allele frequency changes across generations in longitudinal studies or simulation verification.

The Allele Frequency Calculator is an indispensable tool for anyone working with population-level genetic data.

Frequently asked questions about Allele Frequency Calculator

What does the Allele Frequency Calculator calculate?

The Allele Frequency Calculator computes allele frequencies p (for dominant allele A) and q (for recessive allele a) from the observed counts of three genotypes: AA, Aa, and aa.

What is the formula used by the Allele Frequency Calculator?

The Allele Frequency Calculator uses: p = (2×AA + Aa) / (2N) and q = (2×aa + Aa) / (2N), where N = AA + Aa + aa is the total population size.

Why should p + q equal 1?

In a diploid organism with two alleles at a locus, every individual carries exactly two alleles. Therefore all allele frequencies must sum to 1. The Allele Frequency Calculator verifies this as a validation check.

Can I use the Allele Frequency Calculator for more than two alleles?

No. The current Allele Frequency Calculator handles biallelic loci only (two alleles, three genotypes). For multiallelic loci, you would need to extend the calculation manually.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.