Genotype Frequencies
Hardy-Weinberg Formula:
p² + 2pq + q² = 1
Note: p + q must equal 1.
Enter an allele frequency to calculate the distribution of genotypes in a population under Hardy-Weinberg equilibrium.
β What This Calculates + Why It Matters
The Allele Frequency Calculator is a fundamental tool in population genetics, used to predict how genetic traits are distributed across a group of individuals. Based on the Hardy-Weinberg Principle, this calculator takes the frequency of individual alleles (p and q) and determines the percentage of the population that will be Homozygous Dominant, Heterozygous (carriers), and Homozygous Recessive. It serves as the mathematical foundation for understanding evolution, genetic diversity, and the inheritance of hereditary diseases.
Why is allele frequency so critical? In conservation biology, scientists use these frequencies to monitor the "genetic health" of endangered species; a sudden loss of allele diversity (genetic drift) can signal that a population is at risk of extinction. In medicine, allele frequencies help public health experts estimate the number of silent "carriers" of recessive conditions like Cystic Fibrosis or Sickle Cell Anemia within a specific ethnic group or geographical region. If we know how often an allele appears, we can predict how often the associated trait will manifest in future generations.
This calculator allows students and researchers to visualize the relationship between genotype and phenotype. It demonstrates a counter-intuitive biological truth: even if a recessive trait is extremely rare (visible in only 1 in 10,000 people), the allele for that trait is often carried by a much larger percentage of the population (1 in 50 people). Understanding this "hidden" genetic reservoir is the key to mastering modern genetics.
The Hardy-Weinberg Equilibrium (HWE)
The Hardy-Weinberg Equilibrium is a theoretical state where allele frequencies remain constant over time. For a population to be in HWE, five conditions must be met: No mutation, no migration, a large population size, random mating, and no natural selection. While "perfect" equilibrium rarely exists in nature, it provides a vital baseline. By comparing real-world data to the results of this calculator, scientists can identify which evolutionary forces are currently acting on a species.
β The Formula Explained Simply
The math of population genetics revolves around two simple equations. If we assume a gene has only two allelesβA (dominant) and a (recessive)βthen:
p + q = 1 (Allele Frequency Equation)
p² + 2pq + q² = 1 (Genotype Frequency Equation)
Variable Breakdown:
- p: The frequency of the dominant allele (A).
- q: The frequency of the recessive allele (a).
- p²: The percentage of the population that is Homozygous Dominant (AA).
- 2pq: The percentage of the population that is Heterozygous (Aa).
- q²: The percentage of the population that is Homozygous Recessive (aa).
β 3-5 Real-World Examples
Example 1: Blue Eyes in a Population
Blue eyes are generally recessive (q). In a certain town, the frequency of the blue-eye allele (q) is 0.3.
Calculation: p = 0.7. p² = 49%, 2pq = 42%, q² = 9%.
Only 9% of people have blue eyes, but 42% are carriers for the trait.
Example 2: Carrier Frequency of Cystic Fibrosis
If 1 in 2,500 infants is born with CF (q² = 0.0004), we can find the carrier frequency.
Calculation: q = √0.0004 = 0.02. p = 0.98. 2pq = 2 × 0.98 × 0.02 = 0.0392.
Roughly 4% of the population are "hidden" carriers of the CF allele.
Example 3: Blood Type Genetics (Simplified)
In a population where a rare blood marker has an allele frequency of 0.1 (p).
Calculation: p = 0.1, q = 0.9. p² = 1%, 2pq = 18%, q² = 81%.
Despite the dominant allele being present, 81% of the population still shows the recessive phenotype.
β FAQ Section (Google PAA Targeted)
Can allele frequencies change over time?
Yes. This process is called evolution. Frequencies change due to natural selection (survival of the fittest), genetic drift (random chance in small populations), or gene flow (migration between groups).
What does it mean if p + q does not equal 1?
In a simple two-allele system, p and q must always equal 1 (100% of the alleles). If they don't, it usually means there is a third allele involved (like the A, B, and O alleles in human blood types), which requires a more complex multi-allele formula.
Is the dominant allele always the most common?
No. This is a common misconception. "Dominant" refers to how the gene is expressed in an individual, not how common it is in a population. For example, polydactyly (having extra fingers) is a dominant trait but is extremely rare.
What is Heterozygote Advantage?
Sometimes, being a carrier (2pq) is better than being homozygous (p² or q²). The classic example is Sickle Cell Anemia: carriers are resistant to Malaria, while homozygotes either have the disease or are susceptible to Malaria.
β Forces that Disrupt Genetic Equilibrium
While this calculator assumes equilibrium, real populations are constantly shifting. Here are the "HWE Violators":
- Natural Selection: If one genotype (e.g., q²) is less likely to survive or reproduce, the frequency of the 'q' allele will decrease over generations.
- Sexual Selection: If individuals choose mates based on specific traits (non-random mating), the genotype frequencies will shift away from the 2pq predicted values.
- The Founder Effect: When a small group starts a new population, their specific (and perhaps rare) allele frequencies become the new "norm" for all future generations.
- Mutations: The ultimate source of new alleles. Though rare, mutations introduce new 'p' or 'q' variants into the gene pool.
β Related Calculators
β AI Explanation of Results
Our AI Genetics Engine provides a "Population Health Snapshot." It analyzes the carrier frequency (2pq) relative to the visible trait frequency (q²). This is particularly useful for rare traits, where the AI can highlight the "invisible" prevalence of recessive alleles. By comparing your inputs to known biological benchmarks (like high-diversity vs. skewed populations), the AI helps you interpret the evolutionary stability of your genetic model.
Hardy-Weinberg Equilibrium
In population genetics, 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.
Applying the Formula
p² + 2pq + q² = 1. Where p is the frequency of the dominant allele and q is the frequency of the recessive allele.