Home · Science · Biology · Hardy-Weinberg Equilibrium Calculator

Hardy-Weinberg Equilibrium Calculator

Expands one allele frequency into the genotype frequencies expected under Hardy-Weinberg equilibrium.

Your figures

Example result — edit the figures to make it yours

36

Homozygous dominant p²

Heterozygous 2pq48.00 %
Homozygous recessive q²16.00 %
Recessive allele frequency q40.00 %

What this calculator does

Expands one allele frequency into the genotype frequencies expected under Hardy-Weinberg equilibrium. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

q = 1 − p; genotypes: p², 2pq, q²

Enter p as a percentage. The calculator converts it to a fraction, sets q = 1 − p, and reports the equilibrium genotype frequencies p² (homozygous dominant), 2pq (heterozygous) and q² (homozygous recessive) as percentages.

These are the frequencies expected with random mating and no selection, mutation, migration or drift. A gap between these values and observed counts is what chi-square tests of equilibrium measure.

Worked example

With the example inputs this page opens with (dominant allele frequency p (%) 60), the result is 36.00 — homozygous dominant p². Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying dominant allele frequency p (%)
Dominant allele frequency p (%)Homozygous dominant p²
309.00
4823.04
6036.00
7556.25
9081.00
120144.00

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Hardy-Weinberg Equilibrium Calculator work?

Expands one allele frequency into the genotype frequencies expected under Hardy-Weinberg equilibrium. Dominant allele frequency p (%) → Genotype frequencies. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Hardy-Weinberg Equilibrium Calculator need?

Dominant allele frequency p (%) → Genotype frequencies. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Hardy-Weinberg Equilibrium Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.