Hardy-Weinberg Equilibrium Calculator
BiologyCalculate genotype frequencies from allele frequency using the Hardy-Weinberg equation p² + 2pq + q² = 1. Get AA, Aa, and aa frequencies instantly.
Heterozygous (Aa) — 2pq
What is a Hardy-Weinberg?
The Hardy-Weinberg Equilibrium Calculator computes expected genotype frequencies from a given dominant allele frequency, using the classic population genetics equation p² + 2pq + q² = 1. Enter the dominant allele frequency (p), and the calculator instantly returns the recessive allele frequency (q) along with the homozygous dominant (p²), heterozygous (2pq), and homozygous recessive (q²) genotype frequencies.
This equation, developed independently by G.H. Hardy and Wilhelm Weinberg in 1908, is a cornerstone of population genetics — used both to predict genotype distributions in an idealized population and as a baseline to detect real evolutionary change. For predicting the outcome of a specific cross between two known parents, see the Punnett Square Calculator.
How to use this Hardy-Weinberg calculator
Enter the dominant allele frequency (p) — as a percentage, representing the proportion of dominant alleles in the population's gene pool.
Read the recessive allele frequency (q) — automatically computed as 1 − p.
Read the genotype frequencies — homozygous dominant (p²), heterozygous (2pq), and homozygous recessive (q²), all expressed as percentages.
Check the step-by-step breakdown — expand the calculation steps to see exactly how each frequency was derived from p.
Formula & Methodology
Hardy-Weinberg equation: p² + 2pq + q² = 1, where p + q = 1 Variable definitions: - p — frequency of the dominant allele (0 to 1) - q — frequency of the recessive allele (1 − p) - p² — expected frequency of homozygous dominant genotype (AA) - 2pq — expected frequency of heterozygous genotype (Aa) - q² — expected frequency of homozygous recessive genotype (aa) Worked example: If the dominant allele frequency p = 0.6 (60%): q = 1 − 0.6 = 0.4 (40%) p² = 0.6² = 0.36 (36% homozygous dominant) 2pq = 2 × 0.6 × 0.4 = 0.48 (48% heterozygous) q² = 0.4² = 0.16 (16% homozygous recessive) Note: This calculator assumes the five core Hardy-Weinberg conditions hold (no mutation, no migration, random mating, infinite population size, no natural selection). Real populations rarely satisfy all of these perfectly, so these results represent a theoretical equilibrium baseline rather than a guaranteed real-world outcome.
Frequently Asked Questions