Allele Frequency Calculator

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

Observed Genotype Counts

Enter the number of individuals for each genotype.

Allele Frequencies

Frequency of A (p)
Frequency of a (q)

HWE Genotype Frequencies & Counts

Genotype Observed Expected freq. Expected count
Enter counts and click Calculate

Chi-Square Test for HWE

Chi-square (χ²)
Degrees of freedom
1

Summary

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

How it works

  1. Enter the observed counts for each genotype (AA, Aa, and aa).
  2. The tool calculates the frequency of allele A (p) and allele a (q) from the genotype counts.
  3. Using p and q, expected HWE genotype frequencies are computed: p² (AA), 2pq (Aa), q² (aa).
  4. Expected genotype counts are derived by multiplying frequencies by the total sample size.
  5. A chi-square test compares observed vs. expected counts to determine if the population is in HWE.
  6. Results show whether to accept or reject the HWE hypothesis at the 0.05 significance level.

Use cases

Frequently Asked Questions

Related tools

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