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.
Reviewed by the thecalcu.com team · Last updated July 27, 2026
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.
Why Use a Hardy-Weinberg Calculator?
Manually computing q, p², 2pq, and q² from a single allele frequency involves several dependent calculations, and errors compound quickly if any intermediate value is mistyped.
This calculator computes all four values instantly and consistently from a single input, and the step-by-step breakdown shows exactly how each genotype frequency was derived, useful for checking population genetics homework or estimating carrier frequencies for recessive genetic conditions.
Because the heterozygous (carrier) frequency 2pq is often the least intuitive of the three genotype frequencies, having it computed automatically avoids common errors like forgetting the factor of 2 in the cross term.
Who Should Use This Calculator?
Biology and genetics students verifying Hardy-Weinberg homework problems and population genetics coursework.
Public health and genetic counseling students estimating carrier frequencies for recessive genetic conditions from observed disease prevalence.
Ecology and evolutionary biology researchers establishing a theoretical baseline before testing real population data for signs of selection or drift.
Teachers demonstrating how allele frequencies translate into genotype frequencies under idealized conditions.
Science writers needing accurate reference figures for population genetics content.
What Insights Does This Calculator Give You?
Heterozygous (carrier) frequency (2pq), the primary result, often the most practically important figure since carriers can pass a recessive allele to offspring without showing the trait themselves.
Recessive allele frequency (q), automatically derived from the dominant allele frequency, since p + q must equal 1 in a two-allele system.
Full genotype distribution, seeing p², 2pq, and q² together (which must sum to 100%) makes it easy to verify your inputs and understand how allele frequency translates into population-level genotype composition.
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.
Show formula & methodology ↓Show less ↑
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