Roboculator
Online CalculatorsCategoriesDate & EventsNews
Get Started
Online CalculatorsCategoriesDate & EventsNewsGet Started
Roboculator

Smart calculators for every challenge. Free, fast, and private.

Categories

  • Finance
  • Health
  • Math
  • Construction
  • Conversion
  • Everyday Life

Popular Tools

  • Date & Events
  • Loan Calculator
  • BMI Calculator
  • Percentage Calc
  • Latest News
  • Search All

Resources

  • Glossary
  • Topic Tags
  • News & Insights

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Editorial Policy
  • Disclaimer
© 2026 Roboculator. All rights reserved.
Roboculator

roboculator.com

  1. Home
  2. /Biology
  3. /Population Genetics
  4. /Hardy-Weinberg Equilibrium Calculator

Hardy-Weinberg Equilibrium Calculator

Last updated: February 24, 2026

Calculator

Results

Recessive Allele Frequency (q)

0.3

Dominant Allele Frequency (p)

0.7

Homozygous Dominant Frequency (p²)

0.49

Heterozygous Frequency (2pq)

0.42

Homozygous Recessive Frequency (q²)

0.09

Carrier Frequency (%)

42

%

Affected Individuals per 1,000

90

Results

Recessive Allele Frequency (q)

0.3

Dominant Allele Frequency (p)

0.7

Homozygous Dominant Frequency (p²)

0.49

Heterozygous Frequency (2pq)

0.42

Homozygous Recessive Frequency (q²)

0.09

Carrier Frequency (%)

42

%

Affected Individuals per 1,000

90

The Hardy-Weinberg Equilibrium Calculator determines allele and genotype frequencies in a population that is not evolving. The Hardy-Weinberg principle states that allele and genotype frequencies remain constant from generation to generation in the absence of evolutionary influences such as selection, mutation, migration, and genetic drift.

Given the frequency of the homozygous recessive phenotype in a population, this tool calculates all allele and genotype frequencies under Hardy-Weinberg assumptions.

Visual Analysis

How It Works

The Hardy-Weinberg equations are:

p + q = 1 (allele frequencies)

p² + 2pq + q² = 1 (genotype frequencies)

Where p = frequency of the dominant allele (A), q = frequency of the recessive allele (a), p² = frequency of AA genotype, 2pq = frequency of Aa genotype, and q² = frequency of aa genotype.

Given q² (observable as the recessive phenotype frequency): q = √q² and p = 1 − q.

Worked Examples

Cystic fibrosis carrier frequency

Inputs

q20.0004

Results

q0.02
p0.98
p20.9604
two pq0.0392
q2 out0.0004

If 1 in 2,500 people have cystic fibrosis (q²=0.0004), then q=0.02, and the carrier frequency (2pq) is approximately 3.92% or about 1 in 25 people.

PTC tasting ability

Inputs

q20.09

Results

q0.3
p0.7
p20.49
two pq0.42
q2 out0.09

If 9% of a population cannot taste PTC (recessive phenotype), then the recessive allele frequency is 0.3. About 42% are heterozygous carriers who can taste PTC.

Frequently Asked Questions

Five conditions must be met: (1) no natural selection, (2) no mutation, (3) no migration (gene flow), (4) infinitely large population (no genetic drift), and (5) random mating. In reality, no natural population perfectly meets all conditions, but the model provides a useful null hypothesis for detecting evolutionary forces.

Compare observed genotype frequencies to expected Hardy-Weinberg frequencies using a chi-square goodness-of-fit test. If the observed and expected values do not differ significantly (p > 0.05), the population is consistent with Hardy-Weinberg equilibrium. Significant deviations suggest evolutionary forces are acting.

The Hardy-Weinberg principle serves as a baseline for studying evolution. By comparing real populations to Hardy-Weinberg expectations, geneticists can identify which evolutionary forces are at work. It is also practically important in medical genetics for estimating carrier frequencies of recessive diseases in populations.

Sources & Methodology

Hartl, D.L. & Clark, A.G. Principles of Population Genetics, 4th ed. Sinauer Associates, 2007. Hardy, G.H. Mendelian Proportions in a Mixed Population. Science, 1908.
R

Roboculator Team

The Roboculator Team explains calculations, planning tools, and practical formulas in clear language for real-life situations.

How helpful was this calculator?

Be the first to rate!

Related Calculators

Genotype Frequency Calculator

Population Genetics

Fixation Index (Fst) Calculator

Population Genetics

Effective Population Size Calculator

Population Genetics

Genetic Drift Calculator

Population Genetics

Heterozygosity Calculator

Population Genetics

Allele Frequency Calculator

Population Genetics