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
- Enter the observed counts for each genotype (AA, Aa, and aa).
- The tool calculates the frequency of allele A (p) and allele a (q) from the genotype counts.
- Using p and q, expected HWE genotype frequencies are computed: p² (AA), 2pq (Aa), q² (aa).
- Expected genotype counts are derived by multiplying frequencies by the total sample size.
- A chi-square test compares observed vs. expected counts to determine if the population is in HWE.
- Results show whether to accept or reject the HWE hypothesis at the 0.05 significance level.
Use cases
- Determine whether a population is in Hardy-Weinberg equilibrium.
- Calculate carrier frequency for recessive genetic disorders.
- Estimate disease allele prevalence from known genotype data.
- Analyze SNP genotyping data in association studies.
- Support population genetics homework and exam problems.
- Evaluate evolutionary forces such as selection or genetic drift.
- Validate genotyping quality control in genome-wide studies.
- Teach and demonstrate population genetics concepts interactively.
Frequently Asked Questions
Related tools
Last updated: 2026-05-23 ·
Reviewed by Nham Vu