Allele Frequency Calculator

Calculate allele and genotype frequencies using the Hardy-Weinberg equilibrium. Supports 2-allele and 4-allele models with flexible input options.

Results
Parameter Value Percentage

What is Allele Frequency?

Allele frequency, also called gene frequency, describes how common an allele is in a population. It is defined as the proportion of all copies of a gene in a population that are of a particular allele type. For example, if there are 100 copies of a gene in a population, and 40 of them are allele "A", then the frequency of A is 0.40 or 40%.

Allele frequencies are fundamental to population genetics and evolutionary biology. They help scientists understand genetic diversity, track evolutionary changes, and predict the distribution of genetic traits in future generations.

The Hardy-Weinberg Equilibrium

The Hardy-Weinberg principle states that allele and genotype frequencies in a population will remain constant from generation to generation in the absence of other evolutionary influences. These influences include:

The mathematical framework consists of two equations:

  1. Allele frequency equation: p + q = 1
  2. Genotype frequency equation: p² + 2pq + q² = 1

Where p = frequency of dominant allele (A), q = frequency of recessive allele (a).

The three genotype frequencies represent:

How to Calculate Allele Frequency

Step-by-step method:

  1. Count the number of each allele type in the population
  2. Divide each count by the total number of alleles
  3. Verify: all frequencies should sum to 1

Alternative: Using disease prevalence

  1. If a recessive disease affects 1% of the population, q² = 0.01
  2. q = √0.01 = 0.1
  3. p = 1 − 0.1 = 0.9
  4. Carrier frequency (2pq) = 2 × 0.9 × 0.1 = 0.18 = 18%

Extending to Multiple Alleles

For genes with more than two alleles (like ABO blood types with 3 alleles), the Hardy-Weinberg equation expands:

Real-World Applications

Example Calculations

Example 1: Cystic fibrosis affects 1 in 2,500 people

Example 2: Given 500 individuals — 320 AA, 160 Aa, 20 aa

Frequently Asked Questions

Q: How do you calculate P and Q allele frequency?
Count each allele type and divide by total alleles. Or use p + q = 1 if you know one frequency. For example, if you know the frequency of the dominant allele p = 0.7, then q = 1 - 0.7 = 0.3.
Q: What do P and Q mean in allele frequency?
p represents the dominant allele frequency (A), and q represents the recessive allele frequency (a). Together they always sum to 1 in a two-allele system.
Q: How to calculate minor allele frequency?
The minor allele frequency (MAF) is the frequency of the second most common allele. Use the same Hardy-Weinberg calculation. The minor allele is whichever of p or q is smaller.
Q: What are the allele frequencies if 1% of people have a disease?
If a recessive disease affects 1% of the population, then q² = 0.01, so q = 0.1 and p = 0.9. About 18% of the population are carriers (2pq = 0.18).
Q: What does Hardy-Weinberg equilibrium mean?
It describes a theoretical population where allele frequencies don't change over generations, serving as a null model to detect evolution. When observed genotype frequencies deviate from expected Hardy-Weinberg frequencies, it suggests evolutionary forces are at work.