Hardy-Weinberg Equilibrium Calculator

Calculate expected genotype proportions for a two-allele population and optional expected individual counts.

Enter your valuesResults update instantly
%
individuals

On this pageCalculatorHow to useFormula & methodWorked exampleA baseline for population geneticsThe conditions behind the modelExpected counts are not observed countsFrequently asked questionsRelated calculatorsSources

How to use this calculator

  1. Enter the frequency of allele A as a percentage.
  2. Enter the number of individuals for optional expected genotype counts.
  3. Compare the calculated expectations with the assumptions of the population model.

Formula and method

p + q = 1; expected genotype proportions: AA = p², Aa = 2pq, aa = q².

For the assumptions behind these results, read the explanation below. You can also explore Allele Frequency and Punnett Square.

A worked example

With allele A at 60%, q is 40%. Expected genotype proportions are 36% AA, 48% Aa, and 16% aa. In 1,000 individuals, the expected counts are 360, 480, and 160.

A baseline for population genetics

Hardy–Weinberg equilibrium supplies a simple reference distribution for genotypes. If the frequency of one allele is p and the other is q, their sum is one. Randomly pairing alleles gives p² for two A copies, q² for two a copies, and 2pq for one of each.

The heterozygote term has a factor of two because A can come from the first parent and a from the second, or the reverse. Adding the three genotype terms expands (p + q)², which equals one.

The conditions behind the model

The familiar equilibrium model assumes a large population, random mating, and no effective selection, migration, or mutation changing allele frequencies. The two-allele calculation also assumes the locus and population have been defined consistently.

Departures between observed and expected genotype frequencies can have many explanations. Population structure, nonrandom mating, selection, sampling variation, and data-quality problems are possibilities. The calculator does not test those explanations or perform a statistical equilibrium test.

Expected counts are not observed counts

Multiplying a proportion by population size gives an expected count. It can be fractional even though actual individuals are counted in whole numbers. Keep the unrounded expectations when performing a separate statistical analysis; rounding all categories independently can distort the total.

This tool handles two alleles. A locus with additional alleles requires a fuller set of allele frequencies and pairwise genotype terms. Do not merge several biologically different alleles into one category unless that grouping is justified for the question being asked.

Frequently asked questions

Is a dominant allele necessarily common?

No. Dominance concerns expression in a heterozygote, not how frequent an allele is in a population.

Why does the tool accept 0% and 100%?

They represent a population containing only one of the two alleles, giving one homozygous genotype with probability one.

Can these proportions predict a particular family?

A family prediction needs the parental genotypes. Use a Punnett-square calculator for that different question.

Sources and further reading

Our explanations are written for BiologyCalc. Read how we build and check our tools. These calculations are educational estimates where the underlying model requires assumptions.