Skip to main content
Calcimator

Hardy-Weinberg Calculator

Calculate genotype frequencies (p², 2pq, q²) from allele frequencies using the Hardy-Weinberg equilibrium equation.

Inputs

Results

Dominant Allele Freq (p)

0.6

Recessive Allele Freq (q)

0.4

AA Genotype Freq (p²)

0.36

Aa Genotype Freq (2pq)

0.48

aa Genotype Freq (q²)

0.16

Expected AA Individuals360
Expected Aa Individuals480
Expected aa Individuals160
How to Use This Calculator
  1. Enter Dominant Allele Frequency (p) and Population Size.
  2. Review Dominant Allele Freq (p), Recessive Allele Freq (q), and AA Genotype Freq (p²).
  3. Use Aa Genotype Freq (2pq) and aa Genotype Freq (q²) to inform your decision.
  4. Use the chart to visualize the results and explore different scenarios by adjusting inputs.

How the result changes with Dominant Allele Frequency (p)

Dominant Allele Frequency (p)Dominant Allele Freq (p)Recessive Allele Freq (q)AA Genotype Freq (p²)
0.10.10.90.01
0.350.350.650.1225
0.650.650.350.4225
0.90.90.10.81

What each input means

Dominant Allele Frequency (p)
Frequency of the dominant allele in the population (0 to 1). The recessive allele frequency q is calculated as 1 - p.
Population Size
Total number of individuals in the population for expected count calculations.

How this is calculated

Formula

p² + 2pq + q² = 1, where p + q = 1

Worked example, using the default values

  1. Identify Input Parameters
    Dominant Allele Frequency (p) = 0.6, Population Size = 1000 = 2 input(s) provided
  2. Calculate Dominant Allele Freq
    Dominant Allele Freq
    0.6 = 0.6
  3. Calculate Recessive Allele Freq
    Recessive Allele Freq
    0.4 = 0.4
  4. Calculate AA Genotype Freq
    AA Genotype Freq
    0.36 = 0.36
  5. Calculate Expected AA Individuals
    Expected AA Individuals
    360 = 360
  6. Calculate Expected Aa Individuals
    Expected Aa Individuals
    480 = 480

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Science & Physics.