The Hardy-Weinberg principle looks, at first glance, like an odd thing for evolutionary biology to build a foundational equation around: it predicts that a population's allele and genotype frequencies will stay exactly the same, generation after generation, forever. That's not a description of what biologists expect to actually see in nature. It's a deliberately idealised baseline — a null hypothesis — against which real populations can be measured, and it's precisely the gap between the prediction and reality that lets biologists detect evolution actually happening.
A population frozen by five conditions no real population fully meets
Hardy-Weinberg equilibrium holds only under a specific, quite restrictive set of conditions: no mutation, no natural selection, no gene flow (migration in or out), an infinitely large population, and completely random mating with respect to the trait in question. Meet all five, and simple probability guarantees that allele frequencies stay perfectly constant from one generation to the next, with genotype frequencies settling into a predictable mathematical relationship to those allele frequencies. Real populations essentially never satisfy all five conditions simultaneously — mutations occur, population sizes are finite, individuals move between populations, and selection pressures are nearly always present in some form — which means the equilibrium state the equation describes is less a forecast and more a deliberately unrealistic reference point.
Using the gap as a detector, not a prediction failure
Because Hardy-Weinberg equilibrium specifies exactly what a non-evolving population's genetics should look like, biologists can compare a real population's actual measured allele and genotype frequencies against that theoretical baseline, and any significant deviation becomes direct evidence that one or more of the five conditions is being violated — that some real evolutionary force, such as selection favouring one allele or migration introducing new ones, is actively at work. This inverts the usual relationship between a scientific model and the reality it describes: the model isn't valued because it accurately predicts populations, but because its failure to predict them, in a specific, quantifiable way, is diagnostically useful.
What we're still unsure about
The Hardy-Weinberg principle itself is a settled mathematical result, not something in dispute — given its five idealised conditions, the equilibrium follows by strict probability. What's genuinely harder in practice is attributing an observed deviation to a specific cause: a population's allele frequencies drifting away from Hardy-Weinberg predictions could reflect selection, migration, non-random mating, small population size, or some combination of several factors at once, and disentangling exactly which force (or forces) is responsible for a given deviation, and by how much each contributes, often requires substantially more data and analysis than the basic equilibrium calculation alone can provide.
This sits inside Population Genetics & Hardy-Weinberg Equilibrium, one of eight topics in Genetics, one of six domains in Biology, one of seventeen subjects the app can quiz you on.