Clinical GeneticsJune 18, 20269 min readUpdated September 30, 2026

Hardy-Weinberg Equilibrium: Formula, Assumptions & Carriers

Hardy-Weinberg makes genetics math manageable: use q² for disease, 2pq for carriers, and spot how drift, founder effect, consanguinity, and selection break it.

Hardy-Weinberg equilibrium says that in a large, randomly mating population with no mutation, migration or natural selection, allele frequencies stay constant from one generation to the next, and genotype frequencies follow p2+2pq+q2=1p^2 + 2pq + q^2 = 1 (with p+q=1p + q = 1). On Step 1 it is a calculation tool: for a rare autosomal recessive disease, prevalence =q2= q^2, so q=prevalenceq = \sqrt{\text{prevalence}} and carrier frequency =2pq≈2q= 2pq \approx 2q. A disease that affects 1 in 10,000 people has q=1/100q = 1/100 and about 1 in 50 carriers. For an X-linked recessive disease, affected males =q= q and affected females =q2= q^2.

The two equations, term by term

pp and qq are allele frequencies; p2p^2, 2pq2pq and q2q^2 are genotype frequencies. The genotype equation is the allele equation squared: (p+q)2=p2+2pq+q2=1(p + q)^2 = p^2 + 2pq + q^2 = 1.

TermWhat it isReading for an autosomal recessive disease
ppFrequency of the normal allele (A)Close to 1 when the disease is rare
qqFrequency of the disease allele (a)prevalence\sqrt{\text{prevalence}}
p2p^2AA homozygotesUnaffected non-carriers (almost everyone)
2pq2pqAa heterozygotesCarriers
q2q^2aa homozygotesAffected people: the prevalence or birth incidence in the stem

Why these terms: with random mating, a child gets two alleles drawn independently from the population's pool. Two copies of the disease allele occur with probability q×qq \times q. A heterozygote can arise two ways (A from the mother and a from the father, or the reverse), hence 2pq2pq.

The five assumptions and what breaks each one

The model assumes all five conditions; real populations only approximate them. When observed genotype counts deviate significantly from p2:2pq:q2p^2 : 2pq : q^2, at least one assumption is being violated (or the genotyping is wrong).

AssumptionViolationWhat changesClassic example
Large populationGenetic drift, including the founder effectAllele frequencies shift by chance; a rare allele can become common in a small or isolated groupTay-Sachs variants are more common in Ashkenazi Jewish, some French-Canadian (Quebec), Old Order Amish and Cajun populations
Random matingConsanguinity (inbreeding) or positive assortative matingMore homozygotes and fewer heterozygotes than predictedMore autosomal recessive disease among children of related parents
No mutationNew mutationsNew alleles enter the poolMutation rates are low, so this rarely matters in exam math
No migrationGene flowPeople entering or leaving shift allele frequenciesMixing of populations with different allele frequencies
No natural selectionSelection against a genotype, or heterozygote advantageAllele frequencies shift with fitness; heterozygote advantage keeps a harmful allele commonSickle cell trait protects against malaria, so carriers are common where malaria is endemic

Facts behind common stems:

  • Founder effect: a small group separates from a larger population and carries only a subset of its variation, so a rare allele can end up common in that group. It is a form of genetic drift, and together with social or geographic isolation it is the most likely explanation for most rare recessive disorders that are unusually common in particular communities.
  • Consanguinity changes genotype frequencies, not allele frequencies. Related parents are more likely to carry the same rare allele, so more children are homozygous than q2q^2 predicts.
  • Heterozygote advantage is selection: the classic example is sickle cell trait in malaria-endemic regions.
  • One generation of random mating restores Hardy-Weinberg proportions at an autosomal locus. X-linked loci take several generations, because males carry one copy and females two.

Autosomal recessive: the carrier frequency shortcut

The four-step setup:

  1. Affected: q2=prevalenceq^2 = \text{prevalence}
  2. Disease allele: q=prevalenceq = \sqrt{\text{prevalence}}
  3. Normal allele: p=1−q≈1p = 1 - q \approx 1 when qq is small
  4. Carriers: 2pq≈2q2pq \approx 2q

Worked example, prevalence 1 in 10,000:

q2=110,000⇒q=1100,p=99100q^2 = \frac{1}{10{,}000} \Rightarrow q = \frac{1}{100}, \quad p = \frac{99}{100}

2pq=2×0.99×0.01=0.0198≈1502pq = 2 \times 0.99 \times 0.01 = 0.0198 \approx \frac{1}{50}

About 2% of people carry the allele, while 0.01% are affected.

Prevalence (q2q^2)qqCarriers (≈2q\approx 2q)Carriers per affected person (≈2/q\approx 2/q)
1 in 2,5001/50about 1 in 25about 100
1 in 3,6001/60about 1 in 30about 120
1 in 10,0001/100about 1 in 50about 200
1 in 40,0001/200about 1 in 100about 400
1 in 1,000,0001/1,000about 1 in 500about 2,000

The last column is the concept behind the math: the rarer the disease, the larger the share of its alleles hiding in healthy carriers. Cystic fibrosis is the classic real-world case. MedlinePlus Genetics puts it at 1 in 2,500 to 3,500 white newborns in the US; applying the 2q2q shortcut to those incidence figures gives an estimated 1 in 25 to 1 in 30 carriers among white Americans (a Hardy-Weinberg estimate, not a measured carrier rate).

Going backward: if the stem gives the carrier frequency, halve it to get qq, then square it. Carriers 1 in 30 → q=1/60q = 1/60 → prevalence =1/3,600= 1/3{,}600.

When not to use 2q2q: the shortcut assumes p≈1p \approx 1. For a common allele, calculate 2pq2pq in full: if q=0.1q = 0.1 (prevalence 1 in 100), 2pq=2×0.9×0.1=0.182pq = 2 \times 0.9 \times 0.1 = 0.18, not 0.20.

Two-step questions: risk of an affected child

Multiply each parent's probability of being a carrier, then multiply by 1/4, the chance that two carriers have an affected child:

P(affected child)=P(parent 1 carrier)×P(parent 2 carrier)×14P(\text{affected child}) = P(\text{parent 1 carrier}) \times P(\text{parent 2 carrier}) \times \tfrac{1}{4}

Parent 1Parent 2: unrelated, no family historyRisk to each child
Known carrier (already has an affected child): 12q2q1×2q×14=q/21 \times 2q \times \tfrac{1}{4} = q/2
Unaffected sibling of an affected person: 2/32q2q23×2q×14=q/3\tfrac{2}{3} \times 2q \times \tfrac{1}{4} = q/3
Random person: 2q2q2q2q(2q)2×14=q2(2q)^2 \times \tfrac{1}{4} = q^2
Affected (aa): always passes on the a allele2q2q2q×12=q2q \times \tfrac{1}{2} = q

The third row is a built-in check: two random people have an affected child at about the population prevalence. The 2/3 comes from Mendelian genetics, not Hardy-Weinberg: an unaffected child of two carriers is AA or Aa in a 1:2 ratio. The pedigree logic is in autosomal recessive inheritance and the 2/3 rule.

X-linked recessive: males give you q directly

Males have one X chromosome, so every male who inherits the allele is affected: the frequency of affected males equals qq, with no square root. Females need two copies.

GroupFrequencyIf 1 in 10,000 males is affected (q=1/10,000q = 1/10{,}000)
Affected malesqq1 in 10,000
Carrier females2pq≈2q2pq \approx 2qabout 1 in 5,000
Affected femalesq2q^21 in 100,000,000

Carrier females are about twice as common as affected males, and affected females are vanishingly rare, which is why X-linked recessive disease is almost always seen in males. The pedigree side is in the X-linked disorders flowchart.

Rare autosomal dominant disease (less often tested): nearly everyone affected is heterozygous, so prevalence ≈2q\approx 2q and q≈q \approx prevalence/2. No square root here either.

Exam traps

  • Prevalence is q2q^2, not qq for autosomal recessive disease: take the square root first.
  • Affected males are qq for X-linked recessive disease: don't take a square root.
  • An unaffected sibling of an affected person has a 2/3 carrier risk, not 1/2; parents of an affected child are obligate carriers.
  • A random partner's carrier risk is 2q2q, not qq.
  • 2q2q is an approximation that works for rare diseases; use the full 2pq2pq when qq is large.
  • Founder effect is drift, heterozygote advantage is selection, consanguinity is nonrandom mating. Match the mechanism to the assumption it breaks.

Practice question

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, q2=1/2,500q^2 = 1/2{,}500, so q=1/50q = 1/50 and his carrier probability is 2q=1/252q = 1/25. Two carriers have an affected child with probability 1/4:

23×125×14=2300=1150\tfrac{2}{3} \times \tfrac{1}{25} \times \tfrac{1}{4} = \tfrac{2}{300} = \tfrac{1}{150}

Why the others are wrong:

  • A (1/100): treats her as an obligate carrier (probability 1). That would be right only if she had 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 qq (1/50) as the partner's carrier risk instead of 2q2q (1/25).
  • E (1/2,500): is the risk for two random people, which ignores her family history.

Key takeaways

  • p+q=1p + q = 1 describes alleles; p2+2pq+q2=1p^2 + 2pq + q^2 = 1 describes genotypes. Both require a large population, random mating, no mutation, no migration and no selection.
  • The violations to recognize: drift and founder effect, consanguinity, new mutations, gene flow, and selection, including heterozygote advantage.
  • Autosomal recessive: prevalence =q2= q^2 and carriers ≈2q\approx 2q, which is twice the square root of the prevalence.
  • Couple risk = carrier probability × carrier probability × 1/4, using 2/3 for an unaffected sibling and 2q2q for a random partner.
  • X-linked recessive: affected males =q= q, carrier females ≈2q\approx 2q, affected females =q2= q^2.
  • The rarer the disease, the more carriers there are for each affected person (about 2/q2/q).

Sources

Frequently Asked Questions

What are the 5 assumptions of Hardy-Weinberg equilibrium?

The population must be very large (so there is no genetic drift), mate randomly, have no new mutations, have no migration in or out (no gene flow), and experience no natural selection. When these conditions hold, allele frequencies stay the same across generations and genotype frequencies follow p² + 2pq + q² = 1. Classic exam violations are the founder effect, consanguinity and heterozygote advantage, such as sickle cell trait protecting against malaria.

What does p² + 2pq + q² = 1 mean?

It gives the expected genotype frequencies for a gene with two alleles whose frequencies are p and q, where p + q = 1. p² is the frequency of people homozygous for the first allele, 2pq the frequency of heterozygotes and q² the frequency of people homozygous for the second allele. For an autosomal recessive disease, q² is the affected frequency 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, because the carrier frequency 2pq is approximately 2q when the disease allele is rare and p is close to 1. For a disease affecting 1 in 10,000 people, q is 1/100 and about 1 in 50 people are carriers. For a disease affecting 1 in 2,500, q is 1/50 and about 1 in 25 people are carriers.

How does Hardy-Weinberg work for X-linked recessive diseases?

Because males have only one X chromosome, the frequency of affected males equals the allele frequency q, so you do not take a square root. Carrier females occur at 2pq, which is about 2q for a rare allele, and affected females occur at q². If 1 in 10,000 males is affected, about 1 in 5,000 females is a carrier and only 1 in 100 million females is affected.

What is the chance that two unrelated people will have a child with an autosomal recessive disease?

Multiply the chance that each parent is a carrier, then multiply by 1/4, the chance that two carriers have an affected child. For two random people who each have a carrier probability of about 2q, the risk is (2q)² × 1/4, which equals q², the population prevalence. If one partner is the unaffected sibling of an affected person, use 2/3 as that partner's carrier probability instead.

What causes a population to deviate from Hardy-Weinberg equilibrium?

Any violation of its assumptions: genetic drift in small populations (including the founder effect), nonrandom mating such as consanguinity, new mutations, migration (gene flow) and natural selection. Consanguinity increases the proportion of homozygotes without by itself changing allele frequencies, while the founder effect can make a rare allele common in an isolated group. A significant deviation from the expected genotype counts can also point to genotyping error.

Try free Biochemistry questions

Reading about a topic is not the same as being tested on it. Answer a real Biochemistry question from the StepGenie qbank with no account, and see the full step-by-step explanation. Then build practice sets around the systems you score worst in, so the weak areas your qbank flags are the ones you actually drill.