Report

Help us improve this tool

Allele Frequency Calculator

Calculate allele frequencies and carrier probability using the Hardy-Weinberg equilibrium equation. Determine your chances of carrying a recessive genetic trait.

O M T

What is the Allele Frequency Calculator?

The Allele Frequency Calculator helps you compute the frequency of gene variants in a population using the Hardy-Weinberg equilibrium equation. This tool is useful for genetic counselors, biology students, and anyone interested in understanding how common a recessive genetic trait is in a population. By entering the frequency of a recessive disease, you can calculate carrier frequency, mutant allele frequency, and healthy allele frequency.

How to Use the Calculator

Start by selecting a disease preset from the dropdown menu, which includes common recessive disorders like cystic fibrosis, sickle cell anemia, and Tay-Sachs disease with their known population frequencies. For a custom calculation, choose "Custom" and enter the disease frequency either as a ratio (e.g., 1 in 10,000 people) or as a percentage (e.g., 0.01%). The results update automatically, showing the carrier frequency, healthy and mutant allele frequencies, and a detailed breakdown of all Hardy-Weinberg parameters.

The Hardy-Weinberg Equation

The Hardy-Weinberg equilibrium is a fundamental principle in population genetics that describes how allele frequencies remain constant from generation to generation in the absence of evolutionary influences. The equation is:

p² + 2pq + q² = 1

Where:

  • p = frequency of the healthy (dominant) allele
  • q = frequency of the mutant (recessive) allele
  • = frequency of homozygous dominant individuals (two healthy alleles)
  • 2pq = frequency of heterozygous individuals (carriers - one healthy, one mutant allele)
  • = frequency of homozygous recessive individuals (two mutant alleles - those with the disease)

Since every person has two copies of each gene, the sum of all genotype frequencies must equal 1 (100% of the population).

How Allele Frequency Is Calculated

Given the disease frequency (q²), the calculator works through the following steps:

  1. q = √q² - Take the square root of the disease frequency to find the mutant allele frequency.
  2. p = 1 - q - Subtract q from 1 to find the healthy allele frequency (since p + q = 1).
  3. p² = p × p - Square p to find the frequency of people with two healthy alleles.
  4. 2pq = 2 × p × q - Multiply to find the carrier frequency.
  5. 1 / 2pq - Invert the carrier frequency to express it as "1 in X people."

Common Recessive Disorders

Here are the prevalence rates for some well-known autosomal recessive disorders that the calculator includes as presets:

Disorder Population Prevalence Carrier Frequency
Cystic Fibrosis 1 in 2,500 (Caucasian) ~1 in 25
Sickle Cell Anemia 1 in 600 (African-American) ~1 in 12
Tay-Sachs Disease 1 in 3,600 (Ashkenazi Jewish) ~1 in 30
Phenylketonuria (PKU) 1 in 15,000 (Caucasian) ~1 in 61
Albinism 1 in 10,000 (general) ~1 in 50

Related Calculators

If you are studying genetics, you may also find these tools useful:

Frequently Asked Questions

What does allele frequency tell us?

Allele frequency tells us how common a particular gene variant is in a population. It helps geneticists understand the genetic diversity of populations, track evolutionary changes, and predict the prevalence of genetic disorders. For recessive diseases, knowing the allele frequency allows us to calculate the carrier rate in the population.

What is a carrier in genetics?

A carrier is a person who has one copy of a mutated (recessive) allele and one copy of the healthy (dominant) allele for a particular gene. Carriers typically do not show symptoms of the disease, but they can pass the mutated allele to their children. If both parents are carriers of the same recessive disease, each child has a 25% chance of inheriting two mutated copies and developing the disease.

How is the Hardy-Weinberg equation used in genetic counseling?

Genetic counselors use the Hardy-Weinberg equation to estimate the probability that an individual is a carrier of a recessive genetic disorder. By knowing the population frequency of the disease, they can calculate the carrier frequency and provide patients with risk estimates for having affected children. This is especially valuable for couples from populations with higher carrier rates for specific diseases.

What are the assumptions of Hardy-Weinberg equilibrium?

The Hardy-Weinberg equilibrium assumes: (1) a very large population size, (2) random mating, (3) no mutation, (4) no migration (gene flow), and (5) no natural selection. In reality, these conditions are rarely met perfectly, so the equation provides a theoretical baseline rather than an exact prediction. Real populations may deviate from equilibrium due to evolutionary forces.

What does p + q = 1 mean in allele frequency?

Since every gene in a population has exactly two possible variants (alleles) at a given locus, the frequencies of both alleles must add up to 100% of the gene pool. If p is the frequency of the dominant allele and q is the frequency of the recessive allele, then p + q = 1 (or 100%). This is the foundation of the Hardy-Weinberg equation.

Can allele frequency change over time?

Yes. Allele frequencies can change due to natural selection, genetic drift (random changes in small populations), gene flow (migration of individuals between populations), and mutation. These are the four fundamental forces of evolution that cause populations to deviate from Hardy-Weinberg equilibrium. Measuring changes in allele frequency over time is how scientists track evolution in action.