Tested tool guide
Tested browser tools
Checked August 16, 2026
What Hardy-Weinberg Equilibrium Calculator does, with a checked example
For a diploid population with two alleles, this calculator converts allele frequencies into the Hardy-Weinberg genotype proportions p^2, 2pq, and q^2. It can also compare observed genotype counts with the counts expected from their estimated allele frequencies. The most common mistake is using pq for the heterozygote frequency; because either allele can come from either parent, the expected frequency is 2pq. Expected proportions describe an equilibrium model, not a guarantee about the genotypes observed in a sample.
Worked example
A concrete input and expected output from the current implementation.
Input
Allele A frequency (p): 0.60
Allele a frequency (q): 0.40
->
Expected output
Expected AA frequency: 0.36 (36%)
Expected Aa frequency: 0.48 (48%)
Expected aa frequency: 0.16 (16%)
The three frequencies are p^2 = 0.60^2 = 0.36, 2pq = 2 x 0.60 x 0.40 = 0.48, and q^2 = 0.40^2 = 0.16. They sum to 1.00.