The Hardy-Weinberg equations are p + q = 1 for allele frequencies and p² + 2pq + q² = 1 for genotype frequencies. They describe a population whose allele and genotype frequencies stay constant across generations, which requires five assumptions: a very large population, random mating, no mutation, no migration and no natural selection.
On Step 1 the equations are a calculation tool. For a rare autosomal recessive disease, prevalence = q², so q = √prevalence and carrier frequency = 2pq ≈ 2q: a disease affecting 1 in 10,000 people has q = 1/100 and about 1 in 50 carriers. For X-linked recessive disease, affected males = q.
Questions also ask which broken assumption explains a population: founder effect (drift), consanguinity (nonrandom mating) or heterozygote advantage (selection).
The Hardy-Weinberg formula: p + q = 1 and p² + 2pq + q² = 1
For a gene with two alleles, the genotype equation is the allele equation squared: (p + q)² = p² + 2pq + q² = 1.
| Term | What it is | Reading for an autosomal recessive disease |
|---|---|---|
| p | Frequency of the normal allele (A) | Close to 1 when the disease is rare |
| q | Frequency of the disease allele (a) | √prevalence |
| p² | AA homozygotes | Unaffected noncarriers (almost everyone) |
| 2pq | Aa heterozygotes | Carriers |
| q² | aa homozygotes | Affected: the prevalence or birth incidence in the stem |
- Why these terms: gametes combine at random, so aa occurs with probability q × q, and Aa forms two ways (an A egg with an a sperm, or an a egg with an A sperm), hence 2pq.
- The name: the British mathematician G. H. Hardy and the German physician Wilhelm Weinberg published the principle independently in 1908.
- Three or more alleles: square the sum: (p + q + r)² = p² + q² + r² + 2pq + 2pr + 2qr = 1.
- Equilibrium comes back fast: one generation of random mating restores Hardy-Weinberg proportions at an autosomal locus, even after two populations with different allele frequencies are mixed. If allele frequencies have changed, it is a new equilibrium.
The five assumptions of Hardy-Weinberg equilibrium
| Assumption | What breaks it | What changes | Classic exam example |
|---|---|---|---|
| 1. Very large population | Genetic drift, including the founder effect and bottlenecks | Allele frequencies, by chance | Tay-Sachs variants in Ashkenazi Jewish, French Canadian (Quebec) and Cajun communities; Huntington disease around Lake Maracaibo, Venezuela |
| 2. Random mating | Consanguinity, positive assortative mating, a population split into subgroups | Genotype frequencies: too few heterozygotes, too many homozygotes | More autosomal recessive disease in children of related parents |
| 3. No mutation | New mutations | New alleles enter the pool | Rarely the answer in exam math |
| 4. No migration | Gene flow | Allele frequencies shift toward the newcomers' | Mixing of populations with different allele frequencies |
| 5. No natural selection | Selection against a genotype, or heterozygote advantage | Allele frequencies, in line with fitness | Sickle cell trait protects against malaria deaths, keeping HbS common where malaria is endemic |
- "Random mating" refers only to the gene in question: partners are chosen without regard to their genotype at that locus, not literally at random.
- Drift, mutation, migration and selection change allele frequencies; nonrandom mating by itself changes only genotype frequencies. That is why consanguinity raises homozygosity without changing q.
- Founder effect: a population founded by a few people, or one that shrinks drastically (a bottleneck), can carry some alleles more often than its source population; drift and, later, inbreeding can push them higher, particularly in isolates such as Ashkenazi Jews, Mennonites, Hutterites and the Old Order Amish. The classic stem is Tay-Sachs.
- Heterozygote advantage (a balanced polymorphism): field studies across Africa have firmly established that AS heterozygotes are relatively protected from dying of malaria, while SS homozygotes have sickle cell anemia. About 1 in 13 African Americans is a carrier (ACMG, 2021).
- A fit does not prove the assumptions hold: some balancing selection can produce genotype counts that match Hardy-Weinberg.
How to calculate allele frequencies and test for equilibrium
From genotype counts:
- Count alleles. Each AA person carries two A alleles and each Aa person one: p = (2 × AA + Aa) ÷ (2 × N), and q = 1 − p.
- Predict the genotypes. Expected counts are p² × N, 2pq × N and q² × N.
- Compare. Researchers use a chi-square goodness-of-fit test (or an exact test) with 1 degree of freedom; a value above 3.841 means P < 0.05.
Worked example: 1,000 people with 360 AA, 480 Aa and 160 aa.
Expected: 360 AA (0.36 × 1,000), 480 Aa (0.48 × 1,000) and 160 aa (0.16 × 1,000), a perfect fit.
How to read a mismatch:
- Too few heterozygotes and too many homozygotes: inbreeding, positive assortative mating, or a population made of subgroups that mate mostly within themselves (the Wahlund effect).
- Too many heterozygotes: in large genomic databases, a flag for genotyping error, though it can also signal selection.
- Any deviation in research data: consider technical genotyping problems.
Autosomal recessive disease: carrier frequency from prevalence
The four-step setup:
- Affected: q² = prevalence
- Disease allele: q = √prevalence
- Normal allele: p = 1 − q ≈ 1 when q is small
- Carriers: 2pq ≈ 2q
Worked example, prevalence 1 in 10,000:
About 2% of people carry the allele, while 0.01% are affected.
| Prevalence (q²) | q | Carriers (≈ 2q) | Carriers per affected person (≈ 2/q) |
|---|---|---|---|
| 1 in 2,500 | 1/50 | about 1 in 25 | about 100 |
| 1 in 3,600 | 1/60 | about 1 in 30 | about 120 |
| 1 in 10,000 | 1/100 | about 1 in 50 | about 200 |
| 1 in 40,000 | 1/200 | about 1 in 100 | about 400 |
| 1 in 1,000,000 | 1/1,000 | about 1 in 500 | about 2,000 |
- The rarer the disease, the larger the share of its alleles hiding in healthy carriers. Carrier frequency tracks the square root of prevalence, so a disease 100 times rarer has only 10 times fewer carriers.
- Going backward: halve the carrier frequency to get q, then square it. Carriers 1 in 30 → q = 1/60 → prevalence 1 in 3,600.
- When not to use 2q: the shortcut assumes p ≈ 1. If q = 0.1 (prevalence 1 in 100), 2pq = 2 × 0.9 × 0.1 = 0.18, not 0.20.
- q² counts genotypes, not diagnoses: if some aa people never develop disease (reduced penetrance), the number of affected people understates q².
Real carrier frequencies: cystic fibrosis, Tay-Sachs and SMA
| Condition and population | Published figures | Hardy-Weinberg check |
|---|---|---|
| Cystic fibrosis, White (US) | 1 in 3,300 births; carriers 1 in 28 on a 32-variant panel | 2 × √(1/3,300) ≈ 1 in 29 |
| Cystic fibrosis, Black (US) | 1 in 15,300 births; carriers 1 in 105 on the same panel | About 1 in 62 |
| Cystic fibrosis, Asian American | 1 in 32,000 births; carriers 1 in 261 on the same panel | About 1 in 89 |
| Tay-Sachs, Ashkenazi Jewish | 1 in 3,600 births before screening; 1 in 27.4 carry founder variants | q = 1/60, so 2q = 1/30 |
| Tay-Sachs, Sephardic Jewish and non-Jewish | About 100 times lower incidence; carriers 1 in 250 to 1 in 300 | 10 times fewer carriers, 100 times rarer disease |
| Spinal muscular atrophy, White | Carriers 1 in 45; incidence 1 in 7,829, estimated from carrier data | q ≈ 1/90, so q² ≈ 1 in 8,100 |
Sources: Merck (2026; CF Foundation registry births, 2021), ACMG (2021, citing a 2014 screen) and GeneReviews (Tay-Sachs 2020, SMA 2026).
- The math works when the inputs are good. Predictions are close for White Americans (1 in 29 vs 1 in 28 detected) and Ashkenazi Jews (1 in 30 vs 1 in 27.4 found on screening).
- Detected rates depend on the test. CFTR has more than 2,000 known variants (allelic heterogeneity). The 23-variant panel (the 32-variant panel adds nine) detects about 88% of carriers in non-Hispanic White people but only 64% in African American and 49% in Asian American people, which largely explains the shortfall in those groups. In 2023 ACMG replaced the 23 variants with a minimum set of 100 to make carrier detection more equitable.
- Screening changes births. Carrier screening and counseling cut Tay-Sachs incidence among North American Ashkenazi Jews by more than 90%, so birth incidence no longer equals q².
Risk of an affected child: chaining the probabilities
| Parent 1 | Parent 2: unrelated, no family history | Risk to each child | With q = 1/50 |
|---|---|---|---|
| Known carrier: 1 | 2q | 1 × 2q × 1/4 = q/2 | 1/100 |
| Unaffected sibling of an affected person: 2/3 | 2q | 2/3 × 2q × 1/4 = q/3 | 1/150 |
| Random person: 2q | 2q | (2q)² × 1/4 = q² | 1/2,500 |
| Affected (aa): always passes on a | 2q | 2q × 1/2 = q | 1/50 |
The third row is a built-in check: two random people have an affected child at the population prevalence. The 2/3 comes from Mendel, not Hardy-Weinberg: an unaffected child of two carriers is AA or Aa in a 1:2 ratio. Pedigree logic and cousin problems are in autosomal recessive inheritance and the 2/3 rule.
After a negative carrier test, replace 2q with the residual risk: carrier frequency × (1 − detection rate), ACMG's formula for a single condition. If a partner with a 1/25 prior tests negative on a hypothetical test detecting 90% of carriers, his risk is about 1/250, and the sibling's couple risk falls from 1/150 to 2/3 × 1/250 × 1/4 = 1/1,500. It is never zero.
X-linked recessive and rare dominant disease
Males have one X, so every male who inherits the allele is affected: affected males = q, with no square root. Females need two copies.
| Group | Frequency | If 1 in 10,000 males is affected (q = 1/10,000) |
|---|---|---|
| Affected males | q | 1 in 10,000 |
| Carrier females | 2pq ≈ 2q | about 1 in 5,000 |
| Affected females | q² | 1 in 100,000,000 |
Carrier females are about twice as common as affected males, and affected females are vanishingly rare.
- Real-world check: MedlinePlus (October 2026) puts red-green color vision deficiency at about 1 in 12 men of Northern European ancestry. Treated as one allele, q ≈ 0.083, so carrier women = 2pq ≈ 15% and women with a defect on both X chromosomes = q² ≈ 1 in 144. Yet only about 1 in 200 women are affected, because two genes are involved: a protan (OPN1LW) defect on one X and a deutan (OPN1MW) defect on the other still gives normal color vision.
- Slower equilibrium: males get their X from their mothers, so male allele frequencies equal the previous generation's female frequencies; if the sexes start with different frequencies, an X-linked locus takes several generations to reach equilibrium.
- Rare autosomal dominant disease: nearly everyone affected is heterozygous, so prevalence ≈ 2q and q ≈ prevalence/2. No square root.
Pedigree patterns are in the X-linked disorders flowchart.
Consanguinity: the inbreeding coefficient F
F is the proportion of loci at which a child of related parents is expected to inherit identical gene copies from both parents. First cousins share about 1/8 of their genes, so on average their children are homozygous by descent at 1/16 of loci.
| Parents | F of their child |
|---|---|
| Parent and child, or full siblings | 1/4 |
| Half siblings; uncle and niece (or aunt and nephew) | 1/8 |
| First cousins | 1/16 |
| Second cousins | 1/64 |
Clinical genetics calls a couple consanguineous when they are second cousins or closer (F ≥ 0.0156). Inbreeding removes a fraction F of the expected heterozygotes and adds them to the homozygotes:
- AA = p² + Fpq
- Aa = 2pq(1 − F)
- aa = q² + Fpq
Worked example: a recessive disease affects 1 in 10,000 children of unrelated parents (q = 1/100). For a child of first cousins:
That is about 7 times the population risk. The rarer the allele, the bigger the jump: about 4 times for q = 1/50 (1 in 2,500 becomes 1 in 615) and about 63 times for q = 1/1,000 (1 in 1,000,000 becomes about 1 in 15,800).
- Counseling numbers: with no known genetic disorder in the family, first-cousin couples are usually quoted about double the population risk of birth defects (for example, 5% instead of 2.5%), or 1.7% to 2.8% above background, mostly from autosomal recessive disease.
- Screening: ACMG (2021) suggests considering its widest panel (Tier 4) for consanguineous couples.
USMLE traps: classic teaching vs current evidence
- Prevalence is q², not q, for autosomal recessive disease; affected males are q for X-linked recessive disease (no square root).
- A random partner's carrier risk is 2q, not q; an unaffected sibling's is 2/3, not 1/2.
- Match the mechanism to the assumption: founder effect is drift, heterozygote advantage is selection, and consanguinity is nonrandom mating, which changes genotype frequencies, not allele frequencies.
- Hardy-Weinberg is a one-locus model; nonrandom association of alleles at two loci is linkage disequilibrium.
- Classic teaching screened by ancestry; current guidance offers CF and SMA screening to everyone. ACOG (Committee Opinions 690 and 691, reaffirmed 2025) accepts ethnic-specific, panethnic or expanded strategies but recommends offering CF and SMA screening to everyone pregnant or planning pregnancy; ACMG (2021) recommends offering the same group one ancestry-neutral panel (Tier 3: carrier frequency at least 1/200).
- "1 in 25 carriers" is not universal. From US birth incidence, Hardy-Weinberg predicts about 1 in 29 CF carriers in White, 1 in 62 in Black and 1 in 89 in Asian American people.
Practice questions
Question 1. An island population was founded 300 years ago by 25 settlers and has had little outside contact since. An autosomal recessive disorder affects 1 in 400 islanders but 1 in 90,000 people in the mainland population the settlers came from. Island genotype counts fit Hardy-Weinberg proportions. Which mechanism best explains the disorder's high frequency on the island?
- A. Consanguineous mating
- B. Founder effect
- C. Gene flow from the mainland
- D. Heterozygote advantage
- E. Recurrent new mutations
Answer: B. The allele was common among the few founders by chance, and drift in a small, isolated population kept it high. Island q = √(1/400) = 1/20 (carriers 2pq = 9.5%, about 1 in 10) versus mainland q = 1/300 (carriers about 1 in 150): the allele frequency itself is 15 times higher.
- A: consanguinity adds homozygotes without by itself changing allele frequencies; genotype counts that fit Hardy-Weinberg argue against it.
- C: gene flow from the mainland would pull the island's allele frequency down toward the mainland's.
- D: heterozygote advantage needs a selective pressure, such as malaria for HbS; the stem gives none.
- E: new mutations would arise on the mainland too and do not explain why the island differs.
Question 2. A 26-year-old woman comes for preconception counseling. Her older brother has cystic fibrosis; she and both parents are healthy. Her partner has no family history of cystic fibrosis, and neither has had carrier testing. In their population, which is in Hardy-Weinberg equilibrium, cystic fibrosis affects 1 in 2,500 newborns. What is the probability that their first child will have cystic fibrosis?
- A. 1/100
- B. 1/150
- C. 1/200
- D. 1/300
- E. 1/2,500
Answer: B. She is unaffected with an affected sibling, so her carrier probability is 2/3. For her partner, q² = 1/2,500, so q = 1/50 and his carrier probability is 2q = 1/25. Two carriers have an affected child with probability 1/4:
- A (1/100): treats her as an obligate carrier (probability 1), right only if she already had an affected child.
- C (1/200): uses 1/2 for her carrier risk. Once the affected genotype is excluded, 2 of the 3 remaining equally likely outcomes are carriers.
- D (1/300): uses q (1/50) as the partner's carrier risk instead of 2q (1/25).
- E (1/2,500): the risk for two random people, which ignores her family history.
Question 3. In a large population in Hardy-Weinberg equilibrium, 8% of men have red-green color vision deficiency, an X-linked recessive trait (treat it as a single allele). What percentage of women are expected to be carriers?
- A. 0.64%
- B. 8%
- C. 14.7%
- D. 16%
- E. 28%
Answer: C. Men have one X, so q = 0.08 directly, and carrier women = 2pq = 2 × 0.92 × 0.08 = 0.147.
- A: q², the expected share of affected women.
- B: q itself, the frequency of affected men.
- D: the 2q shortcut, which overestimates when q is not small.
- E: treats 8% as q² and takes the square root (√0.08 ≈ 0.28), the autosomal recessive move.
Question 4. In a survey of 2,000 adults from one village, genotypes at a biallelic autosomal locus are 750 AA, 900 Aa and 350 aa. Which explanation best fits these counts?
- A. The population is in Hardy-Weinberg equilibrium
- B. Heterozygote advantage
- C. Selection against the aa genotype
- D. Consanguineous mating
- E. Recent new mutations at the locus
Answer: D. p = (1,500 + 900) ÷ 4,000 = 0.6 and q = 0.4, so Hardy-Weinberg predicts 720 AA, 960 Aa and 320 aa. There are 60 too few heterozygotes and 30 extra homozygotes of each kind: exactly what inbreeding with F = 1/16, the first-cousin value, predicts (Aa = 0.48 × 15/16 = 0.45).
- A: chi-square = 7.8, above 3.841, so the deviation is significant.
- B: heterozygote advantage would favor Aa; there are fewer than expected.
- C: selection against aa would leave fewer aa than expected; there are more.
- E: new mutations add alleles; they do not shift heterozygotes into both homozygote classes.
More practice: free biochemistry and genetics questions.
Key takeaways
- p + q = 1 describes alleles and p² + 2pq + q² = 1 genotypes; both require a large population, random mating, no mutation, no migration and no selection.
- Drift (including founder effect), mutation, gene flow and selection change allele frequencies; consanguinity changes genotype frequencies, adding homozygotes.
- Autosomal recessive: prevalence = q² and carriers ≈ 2q; a disease 100 times rarer has 10 times fewer carriers.
- Couple risk = carrier probability × carrier probability × 1/4: 2/3 for an unaffected sibling, 2q for a random partner.
- X-linked recessive: affected males = q, carrier females ≈ 2q, affected females = q².
- First cousins: F = 1/16 and aa = q² + Fpq; the rarer the allele, the bigger the relative rise.
Sources
- The Hardy-Weinberg Principle — Nature Education Knowledge, Scitable (2010)
- Population Genetics, in The Evaluation of Forensic DNA Evidence — National Research Council, NCBI Bookshelf (1996)
- Reference Guide on Human DNA Identification Evidence — Reference Manual on Scientific Evidence, NCBI Bookshelf (2025)
- Rodriguez S et al. Hardy-Weinberg equilibrium testing of biological ascertainment for Mendelian randomization studies — Am J Epidemiol (2009)
- Abramovs N et al. Hardy-Weinberg equilibrium in the large scale genomic sequencing era — Front Genet (2020)
- Graffelman J, Weir BS. Testing for Hardy-Weinberg equilibrium at biallelic genetic markers on the X chromosome — Heredity (2016)
- Critical values of the chi-square distribution — NIST/SEMATECH e-Handbook of Statistical Methods (2022)
- GeneReviews Glossary: founder effect — GeneReviews, NCBI Bookshelf (2026)
- Major T et al. Founder effects in hereditary hemorrhagic telangiectasia — J Clin Med (2021)
- Luzzatto L. Sickle cell anaemia and malaria — Mediterr J Hematol Infect Dis (2012)
- Screening for autosomal recessive and X-linked conditions during pregnancy and preconception: a practice resource of the ACMG — Genet Med (2021)
- Carrier Screening in the Age of Genomic Medicine, Committee Opinion No. 690 — ACOG (2017, reaffirmed 2025)
- Carrier Screening for Genetic Conditions, Committee Opinion No. 691 — ACOG (2017, reaffirmed 2025)
- Cystic Fibrosis — GeneReviews, NCBI Bookshelf (2026)
- HEXA Disorders — GeneReviews, NCBI Bookshelf (2020)
- Spinal Muscular Atrophy — GeneReviews, NCBI Bookshelf (2026)
- Cystic Fibrosis — Merck Manual Professional Edition (2026)
- Zvereff VV et al. Cystic fibrosis carrier screening in a North American population — Genet Med (2014)
- McGarry ME et al. Cystic fibrosis newborn screening: a consensus guideline from the US Cystic Fibrosis Foundation — Int J Neonatal Screen (2025)
- Color vision deficiency — MedlinePlus Genetics (2026)
- Tait DM, Carroll J. Normality of colour vision in a compound heterozygous female carrying a protan and deutan defect — Clin Exp Optom (2009)
- Hamamy H. Consanguineous marriages: preconception consultation in primary health care settings — J Community Genet (2012)
Frequently Asked Questions
What are the 5 assumptions of Hardy-Weinberg equilibrium?
A very large population, so genetic drift does not change allele frequencies; random mating with respect to the gene in question; no new mutations; no migration in or out (no gene flow); and no natural selection. When all five hold, allele and genotype frequencies stay constant from one generation to the next. Classic exam violations are the founder effect (drift), consanguinity (nonrandom mating) and heterozygote advantage, such as sickle cell trait protecting against malaria (selection).
What is the Hardy-Weinberg equation and what does each term mean?
There are two equations. p + q = 1 says the frequencies of the two alleles add up to 1. p² + 2pq + q² = 1 gives the expected genotype frequencies: p² for people homozygous for the first allele, 2pq for heterozygotes and q² for people homozygous for the second. For an autosomal recessive disease, q² is the frequency of affected people and 2pq is the carrier frequency.
How do you calculate carrier frequency from the prevalence of an autosomal recessive disease?
Set the prevalence equal to q², take the square root to get q, then double it: the carrier frequency is 2pq, which is about 2q when the allele is rare and p is close to 1. A disease affecting 1 in 10,000 people gives q = 1/100 and about 1 in 50 carriers; 1 in 2,500 gives q = 1/50 and about 1 in 25 carriers. When q is large, calculate 2pq in full.
How does Hardy-Weinberg work for X-linked recessive diseases?
Males have one X chromosome, so the frequency of affected males equals the allele frequency q, with no square root. Carrier females occur at 2pq, about 2q for a rare allele, and affected females at q². If 1 in 10,000 males is affected, about 1 in 5,000 females is a carrier and 1 in 100 million is affected. If allele frequencies differ between the sexes, an X-linked locus takes several generations to reach equilibrium.
How do you tell whether a population is in Hardy-Weinberg equilibrium?
Work out allele frequencies from the genotype counts: p equals twice the number of AA people plus the number of Aa people, divided by twice the sample size, and q equals 1 minus p. Multiply p², 2pq and q² by the sample size to get expected counts, then compare them with the observed counts using a chi-square test with 1 degree of freedom. A value above 3.841 means a significant deviation (P below 0.05).
What causes a population to deviate from Hardy-Weinberg equilibrium?
Any violated assumption: genetic drift in small populations, including the founder effect; nonrandom mating such as consanguinity; new mutations; migration; and natural selection. Consanguinity removes a fraction F of the expected heterozygotes (F is 1/16 for children of first cousins) and adds homozygotes without by itself changing allele frequencies. A population made of separate subgroups also shows too few heterozygotes, and in research data a deviation can point to genotyping error.