Scholars Gate
Find a TutorOnline Tutoring
GuidesHow It WorksBecome a Tutor
Log inGet Started
All guides
BiologyA-Level 9 min read

The Hardy–Weinberg Principle

Where does p² + 2pq + q² = 1 come from, and what does it tell you about a population? Step through the algebra and work real allele-frequency calculations.

The ScholarsGate Biology Team·Updated 08 Jul 2026

On this page

  • Why frequencies stay constant
  • See it: build the equation
  • The two equations
  • Worked example
  • Common mistakes
  • Practice
  • FAQ

A Punnett square predicts one cross. The Hardy–Weinberg principlescales the same idea up to a whole population — and makes a bold claim: left undisturbed, the mix of alleles never changes. It is the “do nothing” baseline against which biologists measure evolution.

Why the frequencies stay put

Picture every copy of a gene in a population tipped into one enormous pot. Some fraction of them are the dominant allele — call that fraction p — and the rest are the recessive allele, q. Hardy and Weinberg showed that if nothing interferes, those proportions are simply reshuffled into the next generation unchanged: parents pass on the very mix they inherited.

Because nothing drives the frequencies up or down, the population sits at equilibrium— generation after generation, p and q hold steady. That makes the principle a null hypothesis: if real data drift away from what it predicts, some evolutionary force (selection, migration or mutation) must be at work.

Hardy–Weinberg is the genetic version of “an object stays still unless a force pushes it”.

See it: build the equation

The whole principle turns on one move. If alleles pair up at random when gametes meet, the chance of any genotype is just the product of its two allele frequencies. Squaring p + q = 1 does that bookkeeping for all three genotypes at once.

Step through the derivation below and watch each term appear.

InteractiveBuilding the Hardy–Weinberg equation
Loading interactive…
Step through where p² + 2pq + q² = 1 comes from.
Text description ↓Hide text description ↑

A step-by-step derivation. Starting from the allele-frequency equation p + q = 1, squaring both sides models combining two alleles at random and expands to p² + 2pq + q² = 1 — the genotype frequencies of homozygous dominant (p²), heterozygous (2pq) and homozygous recessive (q²).

The two equations

Everything you need is two linked equations. The first counts alleles; the second counts genotypes.

Alleles: p + q = 1. Every allele at this locus is either the dominant or the recessive version, so the two fractions must add up to 1 (that is, to 100% of all the alleles).

Genotypes: p² + 2pq + q² = 1, where p² is the frequency of homozygous dominant (AA), 2pq of heterozygous carriers (Aa), and q² of homozygous recessive (aa) individuals.

Why you always start from q²

AA and Aa look identical — a single dominant allele is enough to show the dominant phenotype — so you can never count them apart just by looking. Only the recessive phenotype gives its genotype away: it has to be aa. So begin with the one frequency you can actually observe, q², then work outwards: q = √(q²) and p = 1 − q.

Worked example

1Worked example — from a phenotype to the carrier frequency

A recessive genetic condition affects 1 in 100 people in a population at equilibrium. What fraction are unaffected carriers?

Only affected people (aa) have a known genotype, so start there. One in a hundred show the recessive phenotype, so q² = 0.01. Square-root it: q = √0.01 = 0.1. Then p = 1 − q = 0.9.

Carriers are the heterozygotes (Aa), whose frequency is 2pq = 2 × 0.9 × 0.1 = 0.18, or 18%. Notice the twist students love: the 18% of hidden carriers vastly outnumber the 1% who are actually affected.

Common mistakes

Assuming the dominant allele must be the common one

Dominance is about which allele is expressed when both are present — nothing to do with how frequent it is. A dominant allele can be genuinely rare (polydactyly is dominant yet uncommon). Which of p and q is larger is decided by the data, never by which letter is capitalised.

Forgetting the five conditions for equilibrium

The prediction only holds when there is a large population, random mating, no mutation, no migration (no gene flow in or out) and no natural selection. Break any one and the frequencies can shift — which is precisely how a deviation from Hardy–Weinberg flags that evolution is occurring.

Practice

Your turn

In a population at equilibrium, the homozygous recessive genotype has a frequency of q² = 0.04. Find q, p and the frequency of heterozygous carriers.

Show the answer ↓Hide the answer ↑

q = √0.04 = 0.2, so p = 1 − 0.2 = 0.8. Carriers are 2pq = 2 × 0.8 × 0.2 = 0.32 — that is 32% of the population.

Where next?

Hardy–Weinberg tracks the same alleles a Punnett square handles, but across an entire population rather than a single cross — so if the algebra here feels abstract, working through a cross or two first makes the p and q click into place.

Key takeaways
  • The allele equation p + q = 1 and the genotype equation p² + 2pq + q² = 1 describe a population at equilibrium.
  • Only the recessive phenotype q² is directly observable; start there, take q = √(q²), then p = 1 − q.
  • Heterozygous carriers (2pq) are often far more common than affected homozygotes (q²).
  • Equilibrium needs five conditions: large population, random mating, no mutation, no migration, no selection.
  • Because it predicts no change, the principle is the baseline that reveals evolution when real data deviate.

Frequently asked questions

What are the two Hardy–Weinberg equations?+
The allele-frequency equation is p + q = 1, where p is the frequency of the dominant allele and q the frequency of the recessive allele. The genotype-frequency equation is p² + 2pq + q² = 1, where p² is the frequency of homozygous dominant, 2pq of heterozygous and q² of homozygous recessive individuals.
How do you find allele frequencies from a phenotype?+
Only the homozygous recessive phenotype has a known genotype (q²). Take its frequency, square-root it to get q, then use p = 1 − q. From p and q you can predict every genotype frequency.
What conditions are needed for Hardy–Weinberg equilibrium?+
A large population, random mating, no mutation, no migration and no natural selection. If these hold, allele and genotype frequencies stay constant from generation to generation — which is why real deviations from the prediction signal that evolution is happening.
Why is 2pq used for heterozygotes?+
A heterozygote can form two ways — dominant allele from the father and recessive from the mother, or the reverse — so its probability is pq + qp = 2pq.
SB

The ScholarsGate Biology Team

Oxbridge & Russell Group biology tutors

Written and reviewed by ScholarsGate tutors who teach GCSE, A-Level and undergraduate biology. Every explainer is checked against the AQA, Edexcel, OCR and CIE specifications.

Keep exploring

A-Level Biology tutorsPunnett squares, made visualAll interactive guides

Want a tutor to walk you through it?

Book a DBS-checked A-Level Biology tutor for a 1-on-1 lesson — online or in person.

Find a A-Level Biology tutor
Scholars GateTutoring & Learning

ScholarsGate (Scholars Gate) is a premium UK tutoring marketplace connecting ambitious students with expert tutors across every subject, level, and admissions pathway.

hello@scholarsgate.co.uk
+44 7544 736438
Bath, United Kingdom

Platform

  • Find a Tutor
  • Online Tutoring
  • How It Works
  • Become a Tutor
  • Interactive Guides
  • Blog
  • FAQ

Subjects

  • Mathematics & Computing
  • Natural Sciences
  • Humanities
  • Languages
  • All Subjects

Admissions

  • Medicine & UCAT
  • Maths (TMUA, STEP)
  • Law & LNAT
  • Statements & Interviews
  • All Admissions
4.9/5 average tutor rating
All tutors DBS verified
Secure payments via Stripe
500+ expert tutors

© 2026 ScholarsGate Ltd. All rights reserved.

Privacy PolicyTerms of ServiceCookie PolicySafeguarding