Active experiment

Hardy-Weinberg Equilibrium Calculator

Calculate hardy-weinberg equilibrium with validated inputs, formula substitution, and worked steps.

Step 01 · Set up

Fill in the mathematics

Replace the highlighted values below. Tab moves naturally through the equation.

Step 03 · Answer

Ready when you are

Substitution & process

Enter the known values, then select Calculate. Your working steps will appear here.

Understand the method

What does the hardy-weinberg equilibrium calculation mean?

The Hardy–Weinberg principle describes the genotype frequencies expected in a large, randomly mating population with no selection, mutation, or migration. Departures from those proportions indicate that one of those assumptions is being violated.

When to use it

Use it as a null model in population genetics and to estimate allele frequencies from observed genotype counts.

Formula

Use the relationship shown in the interactive formula panel.

In plain text: Use the relationship shown in the interactive formula panel.

Variables and units

SymbolMeaning
pfrequency of one allele
qfrequency of the other, p + q = 1
p², 2pq, q²expected genotype frequencies

How to use the calculator

  1. Enter each known value in its labeled field.
  2. Select the answer precision you want.
  3. Choose Calculate answer to see the result and working.
Educational use only: These population, genetics, dilution, decay, and microscopy calculations are not medical advice and must not be used to diagnose or treat a person.

Worked example

With p = 0.70 and q = 0.30, expected genotype frequencies are 0.49, 0.42, and 0.09, which sum to one.

Common mistakes

  • Allele frequencies must sum to one, and genotype frequencies must also sum to one.
  • The model does not describe small populations or assortative mating.
  • Observed deviation does not identify which assumption failed.

Interpret the result

A strong mismatch between observed and expected frequencies is evidence that selection, drift, or non-random mating is acting.