How to use the hardy–weinberg equilibrium calculator
Compute genotype frequencies from allele frequency. Enter recessive allele frequency q in the field above; the dominant allele frequency p, homozygous dominant p², heterozygous 2pq (carriers), homozygous recessive q² are computed instantly and plotted on the chart so you can see how the answer changes.
Formula
Variables
- q — Recessive allele frequency q
Worked example
With recessive allele frequency q = 0.2, the calculator gives dominant allele frequency p ≈ 0.8; homozygous dominant p² ≈ 64 %; heterozygous 2pq (carriers) ≈ 32 %; homozygous recessive q² ≈ 4 %.
Frequently asked questions
What is the formula for the hardy–weinberg equilibrium calculation?
Dominant allele frequency p = 1-q. Homozygous dominant p² (%) = 100 × [Dominant allele frequency p] × [Dominant allele frequency p]. Heterozygous 2pq (carriers) (%) = 200 × [Dominant allele frequency p] × q. Homozygous recessive q² (%) = 100 × q × q. Here q is recessive allele frequency q.
What inputs do I need for the hardy–weinberg equilibrium calculator?
You need recessive allele frequency q. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.
How do I use this calculator?
Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.
Is the result exact?
Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.