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.

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.

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.

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.

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.

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 × 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 × 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 = 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) = 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!

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
p² + 2pq + q² = 1
= expected frequency of AA, 2pq = expected frequency of Aa, = expected frequency of aa. These are the genotype frequencies you'd expect if the population is in Hardy-Weinberg equilibrium.
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.

Hardy-Weinberg expected genotype frequencies
GenotypeExpected FrequencyMeaning
AAProbability of getting an A from each parent
Aa2pqGetting A from one parent and a from the other (two ways)
aaProbability of getting an a from each parent

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
Step 1 — Read the ProblemA 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
Step 2 — Compute Genotype FrequenciesDivide 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
Step 3 — Count Alleles for REach 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
Step 4 — Count Alleles for rEach 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
Step 5 — Compute Allele FrequenciesTotal 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
Step 6 — Compare to Hardy-Weinberg ExpectationsIf 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

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.

Strengths vs. Limitations of computing allele and genotype frequencies
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.
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.

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.

How basic frequency calculations lead to advanced population genetics
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

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.

Practice Problems

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

PROBLEM 1CONCEPTUAL
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?
PROBLEM 2BASIC 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.
PROBLEM 3INTERMEDIATE
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.
PROBLEM 4APPLIED
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.
PROBLEM 5CRITICAL 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.

Lesson 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