Genetics • Population Genetics & Evolutionary Genetics

Allele & Genotype Frequencies — Compute allele and genotype frequencies

Learn how scientists measure the genetic makeup of populations using simple math.

Genetics emblem with a DNA helix, genetic code, and microscope
Inside this lesson 10 sections 5 questions 10 figures

SECTION 1

Historical Context & Motivation

Have you ever wondered why some traits are common in a population while others are rare? For centuries, scientists noticed that certain features — like eye color or blood type — appeared at different rates in different groups of people. But they didn't have a way to put exact numbers on how common each version of a gene was in a whole population.

The idea of tracking genes at the population level grew from the work of several brilliant thinkers. After Gregor Mendel discovered the basic rules of inheritance in the 1860s, scientists began to ask a bigger question: if we know how genes pass from parents to offspring, can we predict how common each gene version will be across an entire population? This question launched the field of population genetics — the study of how genes are distributed and change over time in groups of organisms.

1866 • Mendel's Laws Published

Gregor Mendel published his experiments with pea plants, revealing that traits are passed down in predictable patterns through discrete units we now call genes.

1900 • Mendel Rediscovered

Three scientists independently rediscovered Mendel's forgotten work, sparking new interest in the rules of heredity and how they operate in nature.

1908 • Hardy-Weinberg Principle

Mathematician G.H. Hardy and physician Wilhelm Weinberg independently showed that allele frequencies in a population stay constant generation after generation — unless something acts to change them.

1930s • Modern Synthesis

Scientists like R.A. Fisher, J.B.S. Haldane, and Sewall Wright combined Mendelian genetics with Darwin's natural selection, building the mathematical foundation of evolutionary genetics.

The central question that all of these breakthroughs address is: How do we measure the genetic composition of a population, and how do we know if it is changing? To answer this, we first need to learn how to compute allele and genotype frequencies — the basic tools of population genetics.

SECTION 2

Core Principles & Definitions

Before we start calculating, let's make sure we understand the key vocabulary. An allele is one version of a gene. For example, a gene for flower color might have a purple allele and a white allele. A genotype is the combination of two alleles an individual carries for a particular gene (one from each parent). When we talk about a whole population, we use frequencies to describe how common each allele or genotype is.

1

Allele

A specific version of a gene. We often use letters like A (dominant) and a (recessive) to represent different alleles.
2

Genotype

The pair of alleles an organism has for one gene. Possible genotypes include AA (homozygous dominant), Aa (heterozygous), and aa (homozygous recessive).
3

Allele Frequency

The proportion (fraction or decimal) of a specific allele out of all the alleles in a population. Represented by p and q, where p + q = 1.
4

Genotype Frequency

The proportion of individuals in a population that have a particular genotype. The three genotype frequencies must add up to 1 (or 100%).
5

Gene Pool

The complete set of all alleles for every gene in a population. Think of it as a giant collection of every gene copy that exists in the group.
✦

KEY TAKEAWAY

Think of a population's gene pool like a bag of colored marbles. Each marble is one allele copy. If you have 60 red marbles and 40 blue marbles, the allele frequency of red is 60/100 = 0.6 and blue is 40/100 = 0.4. An individual organism is like pulling out two marbles at a time — that pair is the genotype. The fraction of people who pulled two reds, one of each, or two blues gives you the genotype frequencies.

SECTION 3

Visualizing Allele & Genotype Frequencies

Let's look at a concrete example. Imagine a population of 10 organisms. Each organism carries two alleles for a single gene: either A or a. The diagram below shows each individual's genotype and how we count alleles to find frequencies.

Population of 10 Organisms — Counting AllelesEach circle = one individual. Letters inside = its genotype.AA1AA2AA3AA4Aa5Aa6Aa7aa8aa9||AA individuals: 4Aa individuals: 3aa individuals: 2Counting Alleles (Total alleles = 10 × 2 = 20)A alleles from AA: 4 × 2 = 8A alleles from Aa: 3 × 1 = 3Total A = 11 p = 11/20 = 0.55a alleles from aa: 2 × 2 = 4a alleles from Aa: 3 × 1 = 3Total a = 7 q = 7/20 = 0.35Check: p + q = 0.55 + 0.35 = Wait — that's 0.90? Let's recount…Oops! We only have 9 organisms shown. The 10th is also aa → Total a = 9, q = 9/20 = 0.45, p + q = 0.55 + 0.45 = 1.0 ✓
This diagram shows a population of 10 organisms. Purple circles are AA (homozygous dominant), teal circles are Aa (heterozygous), and pink circles are aa (homozygous recessive). The bottom section shows how to count each allele type and compute frequencies.

In the diagram above, notice that each individual contributes two alleles to the gene pool. A population of 10 organisms has 20 total allele copies. Homozygous individuals (AA or aa) contribute two copies of the same allele, while heterozygous individuals (Aa) contribute one of each. By counting all the A copies and dividing by the total number of alleles, you get the allele frequency for A, which we call p. The same process for a gives us q.

SECTION 4

Mathematical Framework

Now let's formalize the math. For a gene with two alleles (A and a), we define allele frequencies and genotype frequencies with simple formulas.

ALLELE FREQUENCY OF A (DOMINANT)

p=(2×numberofAA+numberofAa)÷(2×totalindividuals)p = (2 × number of AA + number of Aa) ÷ (2 × total individuals)

p = frequency of the A allele. We multiply AA count by 2 because each AA individual carries two A alleles. Aa individuals carry just one A allele.

ALLELE FREQUENCY OF a (RECESSIVE)

q=(2×numberofaa+numberofAa)÷(2×totalindividuals)q = (2 × number of aa + number of Aa) ÷ (2 × total individuals)

q = frequency of the a allele. The same logic applies — count every copy of the a allele and divide by total alleles.

ALLELE FREQUENCY CHECK

p+q=1p + q = 1

Since A and a are the only two alleles for this gene, their frequencies must add up to 1 (100%). If you know one, you can always find the other by subtraction.

GENOTYPE FREQUENCIES

freq(AA)+freq(Aa)+freq(aa)=1freq(AA) + freq(Aa) + freq(aa) = 1

Genotype frequency = (number of individuals with that genotype) ÷ (total individuals). Every individual falls into exactly one genotype category, so these three frequencies must also add up to 1.

💡

Quick Shortcut

If you already know one allele frequency, you can find the other instantly. Since p + q = 1, if p = 0.7 then q = 1 − 0.7 = 0.3. This shortcut saves time on many problems!

SECTION 5

From Allele Frequencies to Genotype Frequencies

One of the most powerful ideas in population genetics is that if a population meets certain conditions (no mutation, no migration, random mating, large population size, and no natural selection), you can predict genotype frequencies directly from allele frequencies. This is the Hardy-Weinberg equation.

HARDY-WEINBERG EQUATION

p2+2pq+q2=1p² + 2pq + q² = 1

p² = expected frequency of AA, 2pq = expected frequency of Aa, q² = expected frequency of aa. These are the genotype frequencies you'd expect if the population is in Hardy-Weinberg equilibrium.

Punnett Square → Hardy-Weinberg EquationWhen p = 0.6 and q = 0.4Gametes from one parent →Gametes↓A (p = 0.6)a (q = 0.4)A(p=0.6)AAp² = 0.36Aapq = 0.24a(q=0.4)Aapq = 0.24aaq² = 0.16p² + 2pq + q² = 0.36 + 0.48 + 0.16 = 1.00Note: 2pq = pq + pq = 0.24 + 0.24 = 0.48 (both Aa cells combined)
This Punnett square shows how allele frequencies (p = 0.6, q = 0.4) combine during random mating. The frequency of each genotype is found by multiplying the row and column allele frequencies. The two Aa cells are added together, giving 2pq = 0.48.

The Punnett square above is just like the ones you may have used to predict offspring from a cross — except here, the rows and columns represent all gametes in the entire population instead of two individual parents. Each cell's area represents the expected proportion of that genotype. When you add the two heterozygous (Aa) cells, you get 2pq. This is why the Hardy-Weinberg equation has a '2' in front of pq.

GenotypeExpected FrequencyMeaning
AAp²Probability of getting an A from each parent
Aa2pqGetting A from one parent and a from the other (two ways)
aaq²Probability of getting an a from each parent

Hardy-Weinberg expected genotype frequencies

SECTION 6

Worked Example

Let's work through a complete problem step by step. Read carefully and follow along!

Flower Color in a Population of 200 Plants

  1. 1

    Step 1 — Read the Problem

    A botanist surveys 200 plants. The gene for flower color has two alleles: R (red, dominant) and r (white, recessive). She counts 98 RR plants, 84 Rr plants, and 18 rr plants. Find the allele frequencies (p and q) and the genotype frequencies.
  2. 2

    Step 2 — Compute Genotype Frequencies

    Divide each genotype count by the total number of individuals (200).
    freq(RR) = 98 ÷ 200 = 0.49 | freq(Rr) = 84 ÷ 200 = 0.42 | freq(rr) = 18 ÷ 200 = 0.09 — Check: 0.49 + 0.42 + 0.09 = 1.00 ✓
  3. 3

    Step 3 — Count Alleles for R

    Each RR plant contributes 2 R alleles. Each Rr plant contributes 1 R allele. Total R alleles = (2 × 98) + (1 × 84) = 196 + 84 = 280.
    Total R alleles = 280
  4. 4

    Step 4 — Count Alleles for r

    Each rr plant contributes 2 r alleles. Each Rr plant contributes 1 r allele. Total r alleles = (2 × 18) + (1 × 84) = 36 + 84 = 120.
    Total r alleles = 120
  5. 5

    Step 5 — Compute Allele Frequencies

    Total alleles in the gene pool = 2 × 200 = 400. Divide each allele count by 400.
    p = 280 ÷ 400 = 0.70 | q = 120 ÷ 400 = 0.30 — Check: 0.70 + 0.30 = 1.00 ✓
  6. 6

    Step 6 — Compare to Hardy-Weinberg Expectations

    If this population were in Hardy-Weinberg equilibrium, we'd expect: p² = 0.70² = 0.49 (AA), 2pq = 2 × 0.70 × 0.30 = 0.42 (Aa), q² = 0.30² = 0.09 (aa). These match our observed frequencies exactly, suggesting the population is in equilibrium!
    Expected = Observed → Population is in Hardy-Weinberg equilibrium

SECTION 7

Strengths & Limitations of This Approach

Computing allele and genotype frequencies is a fundamental skill, but it's important to understand both what this approach can tell us and what it can't.

StrengthsLimitations
Provides a numerical snapshot of a population's genetic makeup at a specific time.Requires knowing every individual's genotype, which isn't always possible (e.g., dominant phenotype could be AA or Aa).
Allows comparison between populations or between the same population at different times.Assumes only two alleles per gene. Many real genes have more than two alleles (like blood type).
Can be combined with Hardy-Weinberg to test whether evolution is occurring.Hardy-Weinberg equilibrium is an ideal model — real populations rarely meet all five conditions perfectly.
Simple math — only requires counting and division.Doesn't explain why frequencies are what they are — just describes them.

Strengths vs. Limitations of computing allele and genotype frequencies

✦

KEY TAKEAWAY

Think of allele frequency calculations like taking a census. A census tells you how many people live in each city right now, but it doesn't explain why they moved there. Similarly, allele frequencies describe the current state of a population but don't by themselves explain the evolutionary forces (like natural selection or genetic drift) that shaped those frequencies. For that, you need additional models and tests.

SECTION 8

Connection to Advanced Concepts

Once you're comfortable computing allele and genotype frequencies, you're ready to explore more advanced ideas in population genetics. The table below shows how the basic frequency calculations connect to bigger topics.

Basic Concept (This Lesson)Advanced Extension
Computing p and q from genotype countsUsing p and q to predict genotype ratios in the next generation (Hardy-Weinberg predictions)
Checking if observed genotype frequencies match Hardy-Weinberg expected valuesChi-square (χ²) statistical tests to formally determine if a population is evolving
Two alleles per gene (A and a)Multiple alleles (e.g., ABO blood type with three alleles: Iᴬ, Iᴮ, and i)
Frequencies stay constant (equilibrium)Modeling how natural selection, mutation, migration, and genetic drift change allele frequencies over generations

How basic frequency calculations lead to advanced population genetics

As you continue studying genetics, you'll discover that allele frequencies are like the vital signs of a population — just as a doctor monitors heart rate and blood pressure to assess a patient's health, evolutionary biologists track allele frequency changes to detect and measure evolution in action. The simple counting and division you've learned here is the foundation for all of that work.

SECTION 9

Practice Problems

Try these five problems to test your understanding. They increase in difficulty from simple recall to critical thinking.

Question 1: CONCEPTUAL

A population has three possible genotypes for a gene: AA, Aa, and aa. If every individual in the population is Aa, what are the allele frequencies p and q?
Show answer
If every individual is Aa, then each individual contributes one A allele and one a allele to the gene pool. This means exactly half of all alleles are A and half are a. Therefore, p = 0.5 and q = 0.5. You can verify: p + q = 0.5 + 0.5 = 1.0. Even though the genotype frequency of Aa is 1.0 (100%), the allele frequencies are evenly split because heterozygotes carry one of each.

Question 2: BASIC CALCULATION

In a population of 50 butterflies, 20 are BB, 20 are Bb, and 10 are bb. Calculate the frequencies of the B and b alleles.
Show answer
Total alleles = 2 × 50 = 100. Count B alleles: (2 × 20) + (1 × 20) = 40 + 20 = 60. Count b alleles: (2 × 10) + (1 × 20) = 20 + 20 = 40. So p (frequency of B) = 60 ÷ 100 = 0.60, and q (frequency of b) = 40 ÷ 100 = 0.40. Check: 0.60 + 0.40 = 1.00 ✓. The B allele is more common, making up 60% of the gene pool.

Question 3: INTERMEDIATE

In a population of 500 mice, you observe the following genotype frequencies: freq(GG) = 0.36, freq(Gg) = 0.48, and freq(gg) = 0.16. Calculate the allele frequencies. Then determine whether this population appears to be in Hardy-Weinberg equilibrium.
Show answer
First, find allele frequencies. Using the formula: p = freq(GG) + ½ × freq(Gg) = 0.36 + ½(0.48) = 0.36 + 0.24 = 0.60. And q = 1 − p = 0.40. (Or equivalently, q = freq(gg) + ½ × freq(Gg) = 0.16 + 0.24 = 0.40.) Now check Hardy-Weinberg expectations: p² = 0.36, 2pq = 0.48, q² = 0.16. These match the observed frequencies exactly! So yes, this population appears to be in Hardy-Weinberg equilibrium, suggesting no significant evolutionary forces are acting on this gene.

Question 4: APPLIED

Cystic fibrosis is caused by the homozygous recessive genotype (ff). In a certain population, 1 in 2,500 people is born with cystic fibrosis. Assuming Hardy-Weinberg equilibrium, estimate the frequency of the f allele, the frequency of the F allele, and the number of carriers (Ff) you'd expect in a city of 100,000 people.
Show answer
Since 1 in 2,500 people is ff, the frequency of the ff genotype is q² = 1/2,500 = 0.0004. Take the square root to find q: q = √0.0004 = 0.02. Then p = 1 − 0.02 = 0.98. The carrier frequency is 2pq = 2 × 0.98 × 0.02 = 0.0392, or about 3.92%. In a city of 100,000 people, the expected number of carriers is 0.0392 × 100,000 = 3,920 people. This shows that even though the disease is rare, nearly 4,000 people in the city carry one copy of the recessive allele without showing symptoms.

Question 5: CRITICAL THINKING

A researcher studies a population of 300 lizards and finds 120 AA, 100 Aa, and 80 aa. She computes allele frequencies and then uses Hardy-Weinberg to calculate expected genotype frequencies. Will the observed and expected frequencies match? Explain your reasoning, show the calculations, and discuss what a mismatch might mean.
Show answer
First, compute allele frequencies: total alleles = 600. A alleles = (2 × 120) + (1 × 100) = 340, so p = 340/600 ≈ 0.567. Then q = 1 − 0.567 = 0.433. Hardy-Weinberg expected frequencies: p² = 0.321 (expect 96.3 AA), 2pq = 0.491 (expect 147.3 Aa), q² = 0.188 (expect 56.4 aa). The observed counts (120 AA, 100 Aa, 80 aa) do NOT match the expected values — there are too many homozygotes and too few heterozygotes. This pattern could indicate non-random mating (such as inbreeding or assortative mating), which increases homozygosity at the expense of heterozygosity. A chi-square test would confirm whether the difference is statistically significant. This is a great example of how allele frequency calculations serve as a starting point for detecting evolutionary processes.

SUMMARY

Lesson Summary

Summary

In this lesson, you learned that every population has a gene pool — the total collection of all allele copies for a given gene. An allele frequency (p or q) tells you what fraction of the gene pool is made up of a particular allele, calculated by counting allele copies and dividing by the total (2 × population size). A genotype frequency tells you what fraction of individuals carry a particular allele combination (AA, Aa, or aa). The key rule is that p + q = 1 for allele frequencies, and all three genotype frequencies also sum to 1.

You also explored the Hardy-Weinberg equation (p² + 2pq + q² = 1), which predicts genotype frequencies from allele frequencies under ideal conditions. By comparing observed genotype frequencies to Hardy-Weinberg expectations, scientists can determine whether evolution is occurring in a population. These frequency calculations are the foundation of population genetics and provide the quantitative tools needed to study how populations change over time.

Varsity Tutors • Genetics • Allele & Genotype Frequencies — Compute allele and genotype frequencies