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.
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
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
| Homozygous dominant (AA) | Dominant allele frequency (p) |
|---|---|
| 20 | 0.5313 |
| 32 | 0.5924 |
| 40 | 0.6250 |
| 50 | 0.6591 |
| 60 | 0.6875 |
| 80 | 0.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.