Hardy Weinberg Calculator

Enter allele frequencies or observed genotype counts to calculate Hardy-Weinberg equilibrium allele and genotype frequencies.

Input Mode

Leave blank to auto-compute q = 1 - p

Enter allele frequencies or genotype counts and click Calculate.

Summary

Enter allele frequencies or observed genotype counts to calculate Hardy-Weinberg equilibrium allele and genotype frequencies.

How it works

  1. Choose input mode: enter allele frequencies directly, or provide observed genotype counts.
  2. If entering genotype counts, allele frequencies p and q are derived automatically.
  3. Expected genotype frequencies are calculated as p², 2pq, and q².
  4. Expected genotype counts (if sample size is known) are compared to observed counts via chi-square test.
  5. The chi-square statistic and p-value indicate whether the population deviates from equilibrium.
  6. Results update instantly as you type.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-28 · Reviewed by Nham Vu