Home▸Articles▸Genetics & Evolution

Evolutionary Genetics: Hardy-Weinberg, Selection and Genetic Drift

Explore the dynamics of genetic variation through generations under different evolutionary pressures.

mysimulator teamUpdated June 2026≈ 4 min read▶ Open the simulation

Hardy-Weinberg Equilibrium

The Hardy-Weinberg principle is a fundamental concept in population genetics that describes how allele and genotype frequencies remain constant from generation to generation under ideal conditions. The principle assumes no mutation, migration, genetic drift, or natural selection, allowing for the mathematical prediction of genotype frequencies based on allele frequencies.

For a diploid organism with two alleles (A and a) at a locus, the Hardy-Weinberg equation is p^2 + 2pq + q^2 = 1, where p represents the frequency of the dominant allele A, and q represents the frequency of the recessive allele a. This equation ensures that the sum of all genotype frequencies equals one.

Selection and Its Impact

Natural selection is a key driver of evolutionary change in populations. When an environment favors certain alleles over others, it leads to changes in allele frequencies. The strength of this effect can be quantified by the selection coefficient (s), which measures the relative fitness of individuals with different genotypes. The equation p' = p(1+s)/(1+sp) describes how the frequency of an allele (p) changes from one generation to the next under directional selection.

Directional selection occurs when a particular allele is advantageous in a given environment, leading to increased reproduction and transmission of that allele to subsequent generations. This process can lead to the fixation of alleles or the extinction of less favorable ones.

live demo · related simulation● LIVE

Genetic Drift

Genetic drift refers to random changes in allele frequencies due to chance events, which are more pronounced in smaller populations. Unlike natural selection, genetic drift does not have a deterministic effect on the fitness of individuals but can lead to significant changes in allele frequencies over time. The impact of genetic drift is inversely proportional to population size; larger populations tend to maintain stable allele frequencies better than smaller ones.

In small populations, random fluctuations can cause alleles to become more or less common purely by chance, potentially leading to the loss of genetic diversity and fixation of alleles that may not be advantageous in the long term.

Real-World Examples

The principles of Hardy-Weinberg equilibrium, selection, and genetic drift are evident in various natural phenomena. For instance, the peppered moth (Biston betularia) in England during the Industrial Revolution is a classic example where industrial soot darkened tree trunks, favoring the melanistic allele for better camouflage against predators.

In modern medicine, understanding these principles helps in predicting how antibiotic resistance might spread through bacterial populations and informs strategies to combat it.

Frequently asked questions

What is genetic drift?

Genetic drift is the random change in allele frequencies due to chance events. It plays a significant role in small populations, where random fluctuations can lead to the loss of genetic diversity and fixation of alleles that may not be advantageous.

How does selection affect population genetics?

Selection influences population genetics by favoring certain genotypes over others based on their fitness. This leads to changes in allele frequencies, potentially resulting in the fixation or extinction of alleles and driving evolutionary change.

Why is the Hardy-Weinberg equilibrium important?

The Hardy-Weinberg equilibrium provides a baseline for understanding genetic variation in populations under ideal conditions. It helps scientists identify deviations from this equilibrium, which can indicate the presence of evolutionary forces like selection or drift.

Can both selection and drift occur simultaneously in a population?

Yes, both natural selection and genetic drift can act on a population simultaneously. The combined effects of these processes can lead to complex patterns of allele frequency change that are crucial for understanding evolutionary dynamics.

Try it live

Everything above runs in your browser — open Evolutionary Genetics: Hardy-Weinberg, Selection and Genetic Drift and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Evolutionary Genetics: Hardy-Weinberg, Selection and Genetic Drift simulation

What did you find?

Add reproduction steps (optional)