Home · Science · Biology · Allele Frequency Calculator

Allele Frequency Calculator

Counts the copies of each allele in a sample and reports the frequency of the dominant and recessive alleles.

Your figures

Example result — edit the figures to make it yours

0.625

Dominant allele frequency (p)

Recessive allele frequency (q)0.3750
Total individuals100

What this calculator does

Counts the copies of each allele in a sample and reports the frequency of the dominant and recessive alleles. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

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

Enter genotype counts from one sampled population, where N = AA + Aa + aa individuals and each individual carries two alleles.

The frequencies p and q are fractions of all allele copies in the sample and always sum to 1. They describe this sample only and say nothing about whether the population is in Hardy-Weinberg equilibrium.

Worked example

With the example inputs this page opens with (homozygous dominant (aa) 40, heterozygous (aa) 45, homozygous recessive (aa) 15), the result is 0.6250 — dominant allele frequency (p). Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying homozygous dominant (aa)
Homozygous dominant (AA)Dominant allele frequency (p)
200.5313
320.5924
400.6250
500.6591
600.6875
800.7321

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Allele Frequency Calculator work?

Counts the copies of each allele in a sample and reports the frequency of the dominant and recessive alleles. Homozygous dominant · Heterozygous · Homozygous recessive counts → Allele frequencies. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Allele Frequency Calculator need?

Homozygous dominant · Heterozygous · Homozygous recessive counts → Allele frequencies. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Allele Frequency Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.