Hardy-Weinberg Equations- Solving Genetic Problems

Hardy-Weinberg Equations: The Only Thing Standing Between You and a Genetics Test

If you're staring at genetics problems and feeling lost, here's the deal: the Hardy-Weinberg equation is just algebra dressed up in biology terms. Once you see through the disguise, these problems become straightforward. This guide cuts through the confusion and shows you exactly how to solve them.

What Is Hardy-Weinberg Equilibrium?

Hardy-Weinberg equilibrium describes what happens to allele and genotype frequencies in a population when nothing is changing them. No mutations, no natural selection, no migration, random mating only, and a large population size. Scientists call this the "null model" — it's what we'd see if evolution weren't happening.

The equations let you predict genotype frequencies if you know allele frequencies, and vice versa. That's it. That's the whole point.

The Two Equations You Must Know

There are two equations. Memorize both. Seriously, write them on your hand if you have to.

Equation 1: Allele Frequencies

p + q = 1

This says the frequencies of the two alleles in a population add up to 100%. p is the frequency of the dominant allele. q is the frequency of the recessive allele.

Equation 2: Genotype Frequencies

p² + 2pq + q² = 1

This breaks down the population into genotypes:

Quick Reference Table

Symbol Meaning Example
p Dominant allele frequency Frequency of "A" allele
q Recessive allele frequency Frequency of "a" allele
Homozygous dominant genotype AA individuals
2pq Heterozygous genotype Aa individuals
Homozygous recessive genotype aa individuals

How to Solve Hardy-Weinberg Problems: Step by Step

Here's the process. Follow it every time.

Step 1: Identify What You're Given

Read the problem carefully. Are you given:

Step 2: Convert to Frequencies

Divide counts by the total population. A frequency is just a proportion — a number between 0 and 1.

Example: If 16 out of 100 individuals show the recessive phenotype, q² = 0.16

Step 3: Take Square Roots When Needed

If you know q² and need q, take the square root. If you know q and need q², square it.

q = √q² = √0.16 = 0.4

Step 4: Solve for the Other Variable

Once you have p or q, use p + q = 1 to find the other.

p = 1 - q = 1 - 0.4 = 0.6

Step 5: Calculate Genotype Frequencies

Use p², 2pq, and q² to find expected numbers of each genotype.

Practice Problem #1: Finding Allele Frequencies from Phenotype Data

Problem: In a population of 500 moths, 45 show the recessive white phenotype. What are the allele frequencies?

Solution:

The white phenotype means the individual is homozygous recessive (aa). So q² = 45/500 = 0.09.

Take the square root: q = √0.09 = 0.3

Find p: p = 1 - 0.3 = 0.7

Answer: p = 0.7, q = 0.3

Practice Problem #2: Calculating Expected Genotype Numbers

Problem: In the same moth population, how many individuals would you expect to be heterozygous?

Solution:

We already have p = 0.7 and q = 0.3.

2pq = 2(0.7)(0.3) = 0.42

Expected heterozygous individuals = 0.42 × 500 = 210

Answer: 210 heterozygous moths expected

Practice Problem #3: Starting with Genotype Counts

Problem: You sample 200 people and find: 98 AA, 84 Aa, and 18 aa. What are p and q?

Solution:

Count the alleles. Each AA person has 2 A alleles. Each Aa person has 1 A allele. Each aa person has 0 A alleles.

Total A alleles = (98 × 2) + (84 × 1) + (18 × 0) = 196 + 84 = 280

Total a alleles = (98 × 0) + (84 × 1) + (18 × 2) = 0 + 84 + 36 = 120

Total alleles = 200 × 2 = 400

p = 280/400 = 0.7

q = 120/400 = 0.3

Answer: p = 0.7, q = 0.3

When to Use Each Equation

Getting confused about which equation to use? Here's a simple rule:

Most problems require both. You use p + q = 1 to find p or q, then plug those into p² + 2pq + q² = 1 to get genotype frequencies.

Common Mistakes That Cost You Points

These errors show up constantly. Don't make them.

The Chi-Square Test: Checking If a Population Is in Equilibrium

Teachers often ask whether a population is in Hardy-Weinberg equilibrium. This requires a chi-square test.

Calculate expected genotype counts using the equations, then compare to observed counts:

Chi-square = Σ((observed - expected)² / expected)

Compare your chi-square value to a critical value at your degrees of freedom (df = 1 for this test). If your calculated value is less than the critical value, the population is in equilibrium. If it's greater, something is causing evolution.

Why This Actually Matters

Hardy-Weinberg gives you a baseline. If real populations deviate from these predictions, something is happening — natural selection, genetic drift, migration, or non-random mating. The equation is a tool for detecting evolution, not just solving homework problems.

Understanding this connection makes the math meaningful. You're not just plugging numbers — you're testing whether evolution is occurring in a population.