ThisCalculator

Biology

Allele Frequency Calculator: Formula and Examples

Updated · Standard formula, shown below

Allele frequency 0.2000 proportion
Allele frequency
20.00 %
Result
Copies of allele of interest
20
You entered
Total allele copies
100
You entered

Allele Frequency Calculator: Formula and Examples

An allele frequency calculator estimates how common a particular allele is in a population from counts of alleles or genotypes. Enter the number of copies of the allele and the total number of allele copies; the calculator returns the frequency as a proportion, with an optional percentage conversion.

Formula

The allele frequency is the number of copies of the allele of interest divided by the total number of copies of that gene in the sample.

p = x / N

  • p is the allele frequency, a proportion from 0 to 1.
  • x is the count of copies of the allele of interest; it has no physical unit.
  • N is the total count of allele copies at the same genetic location; it has no physical unit.

To express the answer as a percentage, multiply the proportion by 100: percentage = 100p. The calculator’s first result is the proportion; the second is the percentage. For a biallelic locus, the two allele frequencies add to 1, assuming every allele copy is accounted for.

Worked Example

Using the calculator’s default values, the allele of interest has 20 copies out of 100 total copies.

  1. Divide the copies of the allele by the total: p = 20 / 100 = 0.2.
  2. Convert the proportion to a percentage: 0.2 × 100 = 20%.

The results are an allele frequency of 0.2000 and a percentage of 20.00%. These are two ways of expressing the same estimate.

Counting Alleles from Genotypes

When genotype counts are available rather than direct allele counts, first count the allele copies represented by each genotype. For a diploid organism with two alleles, A and a:

  • Each AA individual contributes two A copies.
  • Each Aa individual contributes one A copy and one a copy.
  • Each aa individual contributes two a copies.

Thus the frequency of A is (2 × number of AA individuals + number of Aa individuals) / (2 × number of individuals). For example, among 100 diploid individuals with 36 AA, 48 Aa, and 16 aa genotypes, there are 120 A copies out of 200 total copies. The A frequency is 120 / 200 = 0.60, or 60%; the a frequency is 40%.

This counting rule assumes each individual has two copies of the locus. For organisms or genomic regions with different ploidy, use the actual number of allele copies represented by the sample. A missing or uncalled genotype should not be treated as a known allele; calculate the denominator from successfully observed copies.

When to Use an Allele Frequency

Allele frequencies summarize the genetic composition of a population or sample at a specified locus. They are used in population genetics, biodiversity studies, and descriptions of genetic variation. Comparing samples can show that an allele is more common in one sample than another, but the calculation alone does not establish why the difference exists or whether it is statistically meaningful.

Be precise about what your sample represents. A frequency computed from a small group is an estimate for that group, not automatically a reliable estimate for a wider population. Sampling method, population definition, relatedness among sampled individuals, and genotyping quality can all affect interpretation. Report the sample size and how the allele count was obtained when presenting a result.

Common Mistakes and Limits

  • Mixing up individuals and allele copies: In a diploid sample of 100 fully genotyped individuals, there are normally 200 copies at an autosomal locus, not 100.
  • Using the wrong denominator: The denominator must count all observed copies at the same locus, including copies of other alleles. It is not just the count of the allele being measured.
  • Confusing frequency with genotype frequency: The proportion of individuals with genotype AA is not the same quantity as the frequency of allele A.
  • Forgetting other alleles: At a multiallelic locus, calculate each allele’s count separately. Frequencies across all alleles should sum to 1, apart from rounding or missing data.
  • Overinterpreting a rounded result: The displayed decimal is rounded for readability. Keep the unrounded count ratio for further calculations when possible.

The calculator performs a count ratio; it does not assess uncertainty, correct genotyping errors, infer ancestry, or test evolutionary explanations. A frequency of 0 means no copies were observed in this sample, not proof that the allele is absent from every member of the broader population. Likewise, a frequency of 1 means all counted copies in the sample were that allele.

Frequently Asked Questions

How do you calculate allele frequency from genotype counts?
For a diploid, biallelic locus, multiply the number of homozygous individuals for the allele by two, add the number of heterozygotes, then divide by twice the total number of individuals with valid genotypes.

Can allele frequency be a percentage?
Yes. The proportion is between 0 and 1; multiply it by 100 to express it as a percentage. For example, 0.2 is 20%.

Do allele frequencies always add up to 1?
They should when frequencies for every allele at one locus are calculated from the same complete set of allele copies. Small discrepancies can arise from rounding, and missing data can affect the denominator.

What is the difference between allele frequency and genotype frequency?
Allele frequency measures the share of gene copies that are a given allele. Genotype frequency measures the share of individuals with a particular combination of alleles, such as AA or Aa.

Does a frequency of zero mean an allele does not exist?
No. It means the allele was not observed among the copies included in the calculation. It may still occur in the larger population or in individuals outside the sample.

Related

Formula used
in copies | Copies of allele of interest | - | 20 | 0
in total | Total allele copies | - | 100 | 0
out frequency | Allele frequency | proportion | copies / total | 4
out percent | Allele frequency | % | frequency * 100 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.