Hardy-Weinberg Equilibrium Calculator
Analyze genotype distributions. Enter either allele frequencies or observed genotype counts to determine expected distributions and test for equilibrium using a Chi-Square test.
Input Mode Selection
Select how you want to input your data.
Allele Frequencies
Equilibrium Distribution
Expert Tip
If the Chi-Square statistic exceeds the critical value of 3.841 (df = 1, α = 0.05), the population deviates significantly from equilibrium. This suggests evolutionary forces like selection, mutation, or non-random mating are at play.
Methodology & Equations
Hardy-Weinberg Formulas
For a single gene locus with two alleles (dominant A and recessive a) at frequencies p and q respectively:
Equilibrium Assumptions
Hardy-Weinberg equilibrium relies on five major assumptions:
1. No mutation occurs.
2. Mating is completely random.
3. No natural selection occurs.
4. The population size is infinitely large.
5. No gene flow (migration) occurs.
How to Check for Hardy-Weinberg Equilibrium: Step-by-Step
Below is a step-by-step example using observed counts of 36 AA, 48 Aa, and 16 aa individuals:
Calculate Allele Frequencies (p & q)
Find total population: N = 36 + 48 + 16 = 100.
Allele A count = (2 × 36) + 48 = 120. Frequency p = 120 / 200 = 0.60.
Allele a frequency q = 1 - 0.60 = 0.40.
Compute Expected Genotype Counts
Expected AA = p2 × N = 0.36 × 100 = 36.
Expected Aa = 2pq × N = 0.48 × 100 = 48.
Expected aa = q2 × N = 0.16 × 100 = 16.
Apply the Chi-Square Test
Evaluate differences between observed and expected counts:
χ2 = (36-36)2/36 + (48-48)2/48 + (16-16)2/16 = 0.
Since 0 ≤ 3.841, observed counts match expectations perfectly. The population is in equilibrium.
Related Calculators
View All Biology Tools →Allele Frequency Calculator
Determine dominant and recessive allele frequencies from observed genotype counts.
Chi-Square Goodness-of-Fit Test
Perform a Chi-Square test to evaluate observed vs. expected counts.
Monohybrid Cross
Predict genotypic and phenotypic ratios of offspring for a single gene.