StatGardenREF. DESK
Calculators/Biology/Hardy–Weinberg equilibrium
Biology

Hardy–Weinberg equilibrium calculator

Expected genotype frequencies in a non-evolving population from allele frequency.

What this calculator does

Hardy–Weinberg equilibrium works out expected genotype frequencies in a non-evolving population from allele frequency. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

Formulap + q = 1; p² + 2pq + q² = 1

The inputs explained

FieldWhat to enter
Frequency of the recessive allele (q)A number. Starts at 0.3.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the answer changes with frequency of the recessive allele (q)

Every other input is held at the calculator’s starting values while frequency of the recessive allele (q) varies. Select any row to load that scenario into the calculator.

How the answer changes with frequency of the recessive allele (q)
Frequency of the recessive allele (q)Homozygous dominant (AA)Heterozygous (Aa)Homozygous recessive (aa)
0.1572.2%25.5%2.25%
0.2260.8%34.3%4.84%
0.349.0%42.0%9.00%
0.4530.3%49.5%20.3%
0.616.0%48.0%36.0%
0.91.000%18.0%81.0%