Instructional videos are coming to Albert.Join the waitlist
AP® Biology
Practice
AP® Biology

Hardy-Weinberg Equation: AP® Biology Crash Course

Hardy-Weinberg Equation - AP® Biology Crash Course
✎ Study Mode — Highlight text and annotate as you read.

The Hardy-Weinberg equation is one of the most important mathematical tools you will encounter on the AP® Biology exam. It allows you to predict the frequency of specific genotypes within a population, connecting the concepts of Mendelian genetics to real-world population dynamics. Understanding how to set up and solve Hardy-Weinberg problems is essential, as this topic appears regularly in both multiple-choice and free-response questions.

This review covers the foundational genetics vocabulary you need, walks through the equation step by step, demonstrates a complete worked example, and explains the assumptions that underpin the Hardy-Weinberg model. By the end, you will be able to calculate allele and genotype frequencies confidently on exam day.

Phenotypes and Genotypes

Before working with the Hardy-Weinberg equation, you need a solid grasp of two key terms. A phenotype is any observable physical characteristic of an organism, such as freckles, flower color, or wing shape. A genotype is the underlying genetic makeup—the specific combination of alleles—that produces that phenotype.

For any given gene with two alleles, there are three possible genotype categories. The table below summarizes them using freckles as an example, where “F” represents the dominant freckle allele and “f” represents the recessive non-freckle allele.

Genotype Allele Combination Phenotype Description
Homozygous dominant FF Freckles Both alleles are dominant
Heterozygous Ff Freckles One dominant allele masks the recessive allele
Homozygous recessive ff No freckles Both alleles are recessive; only way the recessive phenotype appears

A critical concept for the AP exam is that you cannot distinguish between a homozygous dominant (FF) and a heterozygous (Ff) individual just by looking at the phenotype. Both display freckles. This is exactly why the Hardy-Weinberg equation is so powerful—it lets you calculate the hidden genotype frequencies mathematically.

An individual who is heterozygous for a recessive genetic disorder (carrying one copy of the disease allele without showing symptoms) is called a carrier. Carriers are phenotypically normal but can pass the recessive allele to their offspring. Cystic fibrosis, sickle cell trait, and Tay-Sachs disease all follow this carrier pattern.

Note: Many human traits are polygenic (influenced by multiple genes) or affected by environmental factors. For Hardy-Weinberg problems on the AP exam, you will work with simplified single-gene, two-allele scenarios.

Alleles AP Bio
Image Source: Wikimedia Commons

Representing Genotypes in Genetic Problems

In genetics notation, alleles are represented by letters. A capital letter stands for the dominant allele, and a lowercase letter stands for the recessive allele. The letter chosen typically relates to the trait being studied.

Using our freckles example with the letter “F,” the three genotypes are written as FF (homozygous dominant), Ff (heterozygous), and ff (homozygous recessive). On the AP exam, you may also see single-letter variables like “A” and “a” or “B” and “b” depending on the problem context.

When you encounter a Hardy-Weinberg problem, the first step is always to identify which phenotype corresponds to the homozygous recessive genotype. This is your entry point into the equation because the frequency of the recessive phenotype directly gives you \(q^2\). Remember: the recessive phenotype is the only genotype you can identify with certainty just from the phenotype, since both FF and Ff produce the dominant phenotype.

The Hardy-Weinberg Equation

The Hardy-Weinberg equation models how allele and genotype frequencies distribute across a population that is not evolving. It consists of two related expressions that you should memorize.

Genotype frequencies p², 2pq and q² across all allele frequencies under Hardy-Weinberg equilibrium.
Genotype frequencies p², 2pq and q² across all allele frequencies under Hardy-Weinberg equilibrium. Image: Johnuniq, CC BY-SA 3.0, via Wikimedia Commons

The allele frequency equation states:

\(p + q = 1\)

The genotype frequency equation states:

\(p^2 + 2pq + q^2 =1\)

Here is what each variable represents:

Variable Meaning What It Represents
\(p\) Frequency of the dominant allele Proportion of all alleles in the population that are dominant
\(q\) Frequency of the recessive allele Proportion of all alleles in the population that are recessive
\(p^2\) Frequency of homozygous dominant genotype Proportion of individuals with genotype AA (or FF, BB, etc.)
\(2pq\) Frequency of heterozygous genotype Proportion of individuals with genotype Aa (or Ff, Bb, etc.)
\(q^2\) Frequency of homozygous recessive genotype Proportion of individuals with genotype aa (or ff, bb, etc.)

Because \(p\) and \(q\) together account for all alleles in the population, they must sum to \(1\). Similarly, \(p^2 + 2pq + q^2\) accounts for all possible genotypes, so this expression also equals \(1\). The genotype equation is actually just the algebraic expansion of \((p + q)^2 = 1\).

Consider a concrete example: if a population has \(20\) total alleles for a gene (\(10\) diploid individuals, each contributing \(2\) alleles) and \(6\) of those alleles are dominant, then \(p = \frac{6}{20} = 0.3\). Since \(p + q = 1\), we know \(q = 1-0.3 = 0.7\). This means \(30\%\) of the alleles are dominant and \(70\%\) are recessive.

Important exam tip: Always express \(p\) and \(q\) values as decimals on the AP® Biology exam, not fractions or percentages.

phenotype genotype structure
Image Source: SchoolWorkHelper

Genotype Practice Problem

Let’s work through a complete Hardy-Weinberg problem using a systematic approach you can replicate on the exam. Follow this four-step method every time.

The Problem: In a population, \(60\%\) of individuals do not have freckles. Freckles are dominant. What is the frequency of the heterozygous genotype?

Step 1: Identify what you know. Since freckles are dominant, only homozygous recessive individuals (ff) lack freckles. Therefore, \(q^2 = 0.6\).

Step 2: Solve for \(q\). Take the square root of \(q^2\):

\(q = \sqrt{0.6} = 0.77\)

Step 3: Solve for \(p\). Use the allele frequency equation:

\(p = 1-q = 1-0.77 = 0.23\)

Step 4: Calculate the target genotype frequency. The heterozygous frequency is \(2pq\):

\(2pq = 2(0.23)(0.77) = 0.35\)

Answer: The frequency of the heterozygous genotype is \(0.35\), meaning \(35\%\) of the population carries one dominant and one recessive allele. On the exam, report this as \(0.35\).

Quick verification: Check that all three genotype frequencies sum to \(1\). We have \(p^2 = (0.23)^2 = 0.053\), \(2pq = 0.35\), and \(q^2 = 0.6\). Adding these: \(0.053 + 0.35 + 0.6 = 1.003\), which equals approximately \(1\) (the slight discrepancy is due to rounding). This verification step is a great habit for catching arithmetic errors on the exam.

Necessary Assumptions

The Hardy-Weinberg model only holds true when a population meets five specific conditions. Together, these conditions describe a population that is not evolving. Memorize the mnemonic “MNALS” (think: “M’Nals”) to remember them.

Condition Mnemonic Letter What It Means
No Mutation M No new alleles are created or changed
No Natural selection N No genotype has a survival or reproductive advantage
No gene flow (no migration Away or into) A No individuals enter or leave the population
Large population size L Population is infinitely large (no genetic drift)
Random mating (no Sexual selection) S Mating occurs without preference for specific genotypes

In the real world, no population perfectly meets all five assumptions. This is actually the key insight: when allele frequencies change from what Hardy-Weinberg predicts, evolution is occurring. The AP exam frequently tests this concept by asking you to identify which assumption has been violated when observed genotype frequencies differ from expected Hardy-Weinberg values.

For example, if a population of beetles shows significantly more homozygous individuals than Hardy-Weinberg predicts, this might suggest non-random mating (assortative mating). If allele frequencies shift after a hurricane reduces the population to a small number of survivors, that is genetic drift violating the large population size assumption.

Test-Taking Strategies

Hardy-Weinberg problems follow a predictable pattern on the AP® Biology exam. Master these strategies to work through them quickly and accurately.

Always start with \(q^2\). In almost every Hardy-Weinberg problem, you are given information about the recessive phenotype because it is the only phenotype that maps to a single genotype. Identify the recessive phenotype frequency first, set it equal to \(q^2\), and then work through the equations from there. The mnemonic “Start with q-squared, then take the square root” keeps the workflow locked in.

Watch for common question formats. The AP exam typically presents Hardy-Weinberg in three ways: straightforward calculation problems (“What percentage of the population is heterozygous?”), conceptual questions about the five assumptions (“Which condition is being violated?”), and data-analysis questions that ask you to compare observed versus expected frequencies. Be ready for all three.

Avoid the most common student mistakes. The top errors include forgetting to take the square root of \(q^2\) before plugging into \(2pq\), confusing \(q\) (allele frequency) with \(q^2\) (genotype frequency), and forgetting that \(p + q = 1\) refers to allele frequencies while \(p^2 + 2pq + q^2 = 1\) refers to genotype frequencies. Always label which equation you are using.

Connect Hardy-Weinberg to evolution. On free-response questions, you may be asked to explain why a population deviates from Hardy-Weinberg equilibrium. Use the five conditions as a checklist: identify which assumption is violated and explain the evolutionary mechanism at work (natural selection, genetic drift, gene flow, mutation, or non-random mating). This cross-topic connection between Unit 7 (Natural Selection) and Unit 5 (Heredity) is a favorite of exam writers.

Time management tip: Hardy-Weinberg calculations should take no more than 2–3 minutes on a multiple-choice question. If you are spending longer, you may be overcomplicating the setup. Step back, identify \(q^2\), and follow the four-step method from the practice problem above. For free-response, budget about 5 minutes and always show your work—partial credit is awarded for correct setup even if the final arithmetic is off.

Check for Understanding

Think you’ve got it? Complete the quiz below to make sure. Download your results at the end.

Highlight & Annotate
📝

Study Annotations

You just made your first highlight! You can highlight text and click images to add study notes as you read.

Your annotations are saved during this session, as long as you keep this browser tab open. When you’re done, use the Print button to save the article with all your notes in the margins.

Click any highlight to view or edit your note.

Click another word to finish highlighting, or press Esc to cancel
0 Notes
Study Mode
Print Preview — Article with Annotations

Ready to practice? Try Albert free.

Build real confidence with thousands of adaptive practice questions across AP®, SAT®, ACT®, and core subjects — aligned to what you’re studying right now.

Practice for AP® Biology