Allele Frequency Calculator

Allele Frequency Calculator

Calculate allele frequencies, carrier frequencies, Hardy-Weinberg genotype frequencies, and recessive disease estimates from population or genotype data.

Estimate p, q, carriers, and genotype frequencies

An allele frequency calculator calculates the proportion of a specific allele within a population. Population genetics uses allele frequency to measure genetic variation and predict genotype distributions.

The calculation divides the number of copies of an allele by the total number of allele copies at that genetic locus. You can calculate allele frequency from recessive disease prevalence, observed genotype counts, or a known p or q value.

For two alleles, the calculator uses p + q = 1 and the Hardy-Weinberg relationship p^2 + 2pq + q^2 = 1. Results are population-level estimates, not a diagnosis or a substitute for genetic counseling.

Calculator mode

Choose the input you have. The result area will show allele frequencies and expected genotype frequencies.

Recessive disease prevalence

For an autosomal recessive condition in Hardy-Weinberg equilibrium, affected frequency is q^2.

Default: 1 in 2,500.

The calculator converts this value into q^2.

Allele equation

p + q = 1

Genotype equation

p^2 + 2pq + q^2 = 1

Carrier frequency

2pq

How to use the allele frequency calculator

  1. Choose the input type: Use disease prevalence for a recessive condition, genotype counts for observed data, or a known p or q allele frequency.
  2. Enter values carefully: Keep disease prevalence as 1 in N, percent, or proportion; genotype counts should describe the same population sample.
  3. Calculate allele frequencies: Review p, q, expected genotype frequencies, carrier frequency, and affected frequency.
  4. Check assumptions: Hardy-Weinberg expectations are most useful when the population is large, randomly mating, and not strongly affected by selection, migration, mutation, or genetic drift.
  5. Use clinical caution: For personal health, reproductive planning, or family risk questions, use a genetics professional rather than a calculator alone.

Allele frequency formulas

For a two-allele diploid locus, p is often used for the dominant or healthy allele and q for the recessive or mutant allele. If only two alleles are being modeled, the two allele frequencies add to 1.

p + q = 1

p^2 + 2pq + q^2 = 1

From genotype counts: p = (2AA + Aa) / (2N), q = (2aa + Aa) / (2N)

If q^2 is the affected frequency for a recessive disease, q is the square root of affected frequency, p is 1 - q, and carrier frequency is 2pq.

Hardy-Weinberg assumptions

Hardy-Weinberg calculations are a useful baseline, but they are not a guarantee that a real population exactly follows the model. Treat the results as expected frequencies under a set of simplifying assumptions.

Random mating

Assortative mating, ancestry structure, or family clustering can change genotype frequencies even when allele frequencies look stable.

Large population

Small samples and small populations are more affected by chance, so allele estimates can move noticeably from one generation to another.

No strong forces

Selection, migration, mutation, founder effects, and genetic drift can all shift allele frequencies away from simple expectations.

Population genetics reference: OpenStax Biology 2e - Population Genetics.

Worked examples

These examples help you check whether a result is in the right range before using it in a report, lesson, or planning note.

Input q p Carrier frequency Affected frequency
Disease prevalence 1 in 2,5000.020.983.92%, about 1 in 260.04%, 1 in 2,500
Disease prevalence 1 in 10,0000.010.991.98%, about 1 in 510.01%, 1 in 10,000
Known q = 0.100.100.9018%1%
Counts AA=49, Aa=42, aa=90.300.7042%9%

Calculator model reference: Omni Calculator - Allele Frequency Calculator.

Recessive inheritance and carrier estimates

Carrier estimates are most often discussed for autosomal recessive conditions, where affected individuals have variants in both copies of a gene. A carrier usually has one altered allele and one working allele.

One known carrier

If one parent is a known carrier, the affected-child estimate with a random partner is carrier frequency x 1/4, assuming the model fits the population.

Two known carriers

For a classic autosomal recessive condition, two carrier parents have a 25% chance of an affected child in each pregnancy.

Inheritance reference: MedlinePlus Genetics - Inheritance patterns.

Interesting Fact

Allele frequency work depends on large, diverse population data sets, not just classroom examples. In its final phase, the 1000 Genomes Project reconstructed genomes from 2,504 individuals across 26 populations and reported more than 88 million genetic variants. That scale helps explain why allele frequencies can differ by population and why a calculator result should always be tied to the source population. Source: Nature - A global reference for human genetic variation.

Allele terms to know

The same calculation can be described in several ways depending on the textbook, lab report, or clinical context. These definitions keep the result labels readable.

Allele

One version of a DNA sequence at a genomic location. A diploid individual usually has two alleles at an autosomal locus.

Homozygous

Two copies of the same allele, written here as AA or aa.

Heterozygous

Two different alleles at the same locus, written here as Aa. In a recessive model, this is a carrier genotype.

Gene pool

The collection of alleles found in a population. Allele frequencies describe how common each allele is in that pool.

Allele definition reference: NHGRI Talking Glossary - Allele.

Choose the right input for your allele frequency question

Allele frequency can be calculated from different starting points. Pick the input mode that matches the evidence you actually have, because disease prevalence, genotype counts, and published allele frequencies answer slightly different questions.

Starting information Use this mode Best answer it gives Check before using it
Recessive disease prevalence Disease prevalence Estimated q, p, carrier frequency, and affected frequency from q^2. Use population prevalence, not a family-only rate or a different condition definition.
Observed AA, Aa, and aa counts Genotype counts Direct p and q from allele copies, plus observed and expected genotype frequencies. Make sure the sample comes from one comparable population and includes heterozygotes.
A published p, q, or minor allele frequency Known allele frequency The complementary allele frequency and expected Hardy-Weinberg genotype split. Confirm whether the number is an allele frequency, carrier frequency, or genotype frequency.

Variation data reference: Ensembl Variation - population allele frequencies and genotypes.

Observed vs expected genotype frequencies

When you enter genotype counts, the calculator separates what was measured from what the Hardy-Weinberg model would predict. This distinction helps you avoid treating a model estimate as if it were the raw sample result.

Observed frequency

Observed values come from the actual AA, Aa, and aa counts. They are useful for reporting the sample exactly as collected.

Expected frequency

Expected values use p^2, 2pq, and q^2. They describe the genotype pattern predicted under Hardy-Weinberg assumptions.

Difference between them

A gap can reflect sampling error, population structure, inbreeding, selection, migration, genotyping error, or a small sample size.

Quick example

If p = 0.70 and q = 0.30 in a sample of 100 people, Hardy-Weinberg expectations are AA = 49, Aa = 42, and aa = 9. If the observed counts are very different, use a formal Hardy-Weinberg test before making a statistical conclusion.

Evolution mechanism reference: UC Berkeley Understanding Evolution - Genetic drift.

Population context and reporting checklist

An allele frequency is not a universal constant. It depends on the population sampled, the allele definition, the data source, and whether Hardy-Weinberg assumptions are reasonable for the question.

Population or ancestry

State the population used for the estimate, especially when comparing disease prevalence or published allele data.

Sample size and source

Report the number of individuals or chromosomes counted, plus where the data came from.

Allele label

Clarify whether p and q refer to dominant, recessive, reference, alternate, healthy, mutant, or minor alleles.

Model limits

Mention if the result assumes random mating, no selection, no migration, no mutation, and a large population.

Result wording you can reuse

"Using a two-allele Hardy-Weinberg model for this population, the estimated allele frequencies are p = 0.98 and q = 0.02, with an expected carrier frequency of 2pq = 0.0392. These values are population-level estimates and should be interpreted with the data source and sample assumptions in mind."

Population data reference: International Genome Sample Resource and the 1000 Genomes Project.

Frequently Asked Questions

What does an allele frequency calculator calculate?

It estimates how common each allele is in a population. This page can calculate p, q, carrier frequency, affected frequency, and expected Hardy-Weinberg genotype frequencies.

What do p and q mean in allele frequency?

In the two-allele Hardy-Weinberg model, p is one allele frequency and q is the other. This calculator labels p as the healthy or dominant allele and q as the recessive or mutant allele, but the labels can vary by context.

How do I calculate allele frequency from genotype counts?

Count two copies of A for every AA individual, one A and one a for every Aa individual, and two copies of a for every aa individual. Divide each allele copy total by twice the number of individuals sampled.

How is carrier frequency calculated from disease prevalence?

For a recessive disease, affected prevalence is modeled as q^2. Take the square root to find q, calculate p = 1 - q, and then calculate carrier frequency as 2pq.

Is minor allele frequency the same as q?

Not always. The minor allele is simply the less common allele in the population. In many recessive-disease examples q is the minor allele, but q can be larger than p in a different dataset.

Can I use this calculator for more than two alleles?

This page is designed for a two-allele model. For more alleles, each allele frequency is counted from its allele copies and all allele frequencies should sum to 1, but the genotype frequency table becomes larger.

Why can observed and expected genotype frequencies differ?

Observed data can differ from Hardy-Weinberg expectations because of sampling error, population structure, inbreeding, selection, migration, mutation, or genetic drift. A formal Hardy-Weinberg test is needed for statistical interpretation.

Can this estimate my personal genetic risk?

No. The calculator gives educational population-level estimates. Personal risk depends on family history, ancestry, genetic testing, variant interpretation, and medical context, so a genetics professional is the right source for health decisions.

Disclaimer: This allele frequency calculator is for education, population-genetics practice, and preliminary planning. It assumes a simplified two-allele model and, for Hardy-Weinberg outputs, assumes the model is appropriate for the population. It does not diagnose disease, validate a genetic test, replace a formal Hardy-Weinberg equilibrium test, or provide medical advice. For personal, reproductive, clinical, or family-risk questions, consult a qualified genetics professional.

Last updated: June 21, 2026