Hardy-Weinberg Calculator

Calculate hardy-weinberg instantly in your browser — the published formula, worked locally with no data sent anywhere.

Loading calculator…

What this tool does

Calculate hardy-weinberg instantly in your browser — the published formula, worked locally with no data sent anywhere. Equilibrium assumes no selection, mutation, migration or drift, plus random mating in a large population. Real populations deviate — measuring that deviation is exactly how the equation is used to detect evolution or genotyping problems.

How to use the Hardy-Weinberg Calculator

  1. Enter or select given.
  2. Enter or select value (%).
  3. Read the calculated result; change any measurement to compare alternatives.

Formula

Hardy–Weinberg equilibrium: p + q = 1 and p² + 2pq + q² = 1 — p² homozygous dominant, 2pq heterozygous carriers, q² homozygous recessive.
mode
Given
value
Value (%)

Equilibrium assumes no selection, mutation, migration or drift, plus random mating in a large population. Real populations deviate — measuring that deviation is exactly how the equation is used to detect evolution or genotyping problems.

Worked example

For hardy-weinberg calculator, the following measurements illustrate the exact method: Given: rec; Value (%): 16.

Inputs

  • GivenRecessive phenotype frequency (q²)
  • Value (%)16

Result

  • Homozygous dominant p² (%)36
  • Heterozygous carriers 2pq (%)48
  • Homozygous recessive q² (%)16
  • Dominant allele frequency p0.6
  • Recessive allele frequency q0.4
  • Dominant phenotype overall (%)84

Results explained

Homozygous dominant p² (%)
Homozygous dominant p² (%) from the formula above. Equilibrium assumes no selection, mutation, migration or drift, plus random mating in a large population. Real populations deviate — measuring that deviation is exactly how the equation is used to detect evolution or genotyping problems.
Heterozygous carriers 2pq (%)
Heterozygous carriers 2pq (%) from the formula above. Equilibrium assumes no selection, mutation, migration or drift, plus random mating in a large population. Real populations deviate — measuring that deviation is exactly how the equation is used to detect evolution or genotyping problems.
Homozygous recessive q² (%)
Homozygous recessive q² (%) from the formula above. Equilibrium assumes no selection, mutation, migration or drift, plus random mating in a large population. Real populations deviate — measuring that deviation is exactly how the equation is used to detect evolution or genotyping problems.
Dominant allele frequency p
Dominant allele frequency p from the formula above. Equilibrium assumes no selection, mutation, migration or drift, plus random mating in a large population. Real populations deviate — measuring that deviation is exactly how the equation is used to detect evolution or genotyping problems.
Recessive allele frequency q
Recessive allele frequency q from the formula above. Equilibrium assumes no selection, mutation, migration or drift, plus random mating in a large population. Real populations deviate — measuring that deviation is exactly how the equation is used to detect evolution or genotyping problems.
Dominant phenotype overall (%)
Dominant phenotype overall (%) from the formula above. Equilibrium assumes no selection, mutation, migration or drift, plus random mating in a large population. Real populations deviate — measuring that deviation is exactly how the equation is used to detect evolution or genotyping problems.

Frequently asked questions

Hardy–Weinberg equilibrium: p + q = 1 and p² + 2pq + q² = 1 — p² homozygous dominant, 2pq heterozygous carriers, q² homozygous recessive.

Equilibrium assumes no selection, mutation, migration or drift, plus random mating in a large population. Real populations deviate — measuring that deviation is exactly how the equation is used to detect evolution or genotyping problems.

Every field is labelled with its unit — enter values in exactly the labelled unit and read the result in the labelled output unit. Fields with a unit symbol also support the site-wide imperial/metric switch, which converts before the formula runs.

It uses double-precision arithmetic and the published constants and formulas named on this page. The last displayed digit may be rounded, and real conditions can differ from the idealized model described in the assumptions.

Yes. Every calculation runs entirely in your browser; nothing you enter is uploaded, stored or shared.