Hardy-Weinberg Carrier Frequency Calculator

Hardy-Weinberg Carrier Frequency Calculator

From the prevalence of an autosomal recessive condition to the proportion of the population who carry one copy — with the assumptions Hardy-Weinberg needs, and the two situations in which they fail exactly when you need them.

Hardy-Weinberg Carrier Frequency

Prevalence → carrier frequency
Enter N for a prevalence of one affected person in N. One in 2,500 is the figure often quoted for cystic fibrosis in northern European populations. Prevalence is strongly population-specific — use a figure for the population you are actually asking about.
3.92% carriersExample

An autosomal recessive condition with a prevalence of 1 in 2,500

Hardy-Weinberg for an autosomal recessive condition

q² = disease prevalence
q = √(prevalence) · p = 1 − q
carrier frequency = 2pq
about 1 in (1 ÷ 2pq) people carry one copy
q
the frequency of the disease-associated allele. Affected people are homozygous, so their frequency is q², and taking the square root of the prevalence recovers q
p
the frequency of the normal allele, 1 − q, because the two must sum to one. When q is small p is close to 1, which is why the carrier frequency 2pq is very nearly twice the allele frequency
2pq
the heterozygote frequency. The factor of two is there because a heterozygote can inherit the variant from either parent, so there are two ways of making one and only one way of making each homozygote
the assumptions
random mating, no selection for or against any genotype, no migration into or out of the population, no new mutation, and a population large enough that allele frequencies do not drift. Hardy-Weinberg proportions hold only while all of these are approximately true
what it is not
a personal risk. This is an estimate of how common the carrier state is in a population, derived from a population prevalence. An individual's own carrier status is established by testing them, and no population calculation substitutes for it

Worked example

An autosomal recessive condition with a prevalence of 1 in 2,500
q² = 1 ÷ 2,500 = 0.0004
q = √0.0004 = 0.02 — the variant allele is present at 2%
p = 1 − 0.02 = 0.98
Carrier frequency = 2pq = 2 × 0.98 × 0.02 = 0.0392 = 3.92%
1 ÷ 0.0392 = 25.5, so roughly 1 person in 25 carries one copy
The relationship is worth noticing: carriers outnumber affected people by about 98 to 1 here. Halving the prevalence to 1 in 5,000 only reduces the carrier frequency to 2.8%, because the square root compresses the change — a condition a hundred times rarer has a carrier frequency only ten times lower

Prevalence against carrier frequency

PrevalenceAllele frequency qCarriers (2pq)About 1 in
1 in 1000.10018.00%5.6
1 in 4000.0509.50%10.5
1 in 2,5000.0203.92%25.5
1 in 10,0000.0101.98%50.5
1 in 40,0000.0051.00%100.5
1 in 160,0000.00250.50%200.5
Every row computed from 2pq. The square root does the work: making a condition sixteen times rarer only makes carriers four times less common, which is why even very rare recessive conditions have carrier frequencies in the hundreds rather than the hundreds of thousands.

The assumptions, and where they fail

AssumptionWhere it breaksDirection of the error
Random matingConsanguineous partnerships, and communities that marry within a defined groupHomozygotes are commoner than predicted, so a prevalence-derived q overstates the true allele frequency
No selectionHeterozygote advantage — sickle cell trait and the thalassaemia traits against malariaThe allele is maintained at a far higher frequency than mutation alone would sustain
No migrationAlmost every modern populationAllele frequencies are mixtures of the source populations, and a single national figure may fit no individual well
No new mutationConditions with a high de novo rateSome affected people do not have two carrier parents at all
Large populationFounder populations and genetic isolatesDrift fixes particular variants at high frequency; a few specific variants account for most cases, which also makes targeted testing effective
The two failures that matter most in practice — consanguinity and founder effects — are exactly the circumstances in which someone reaches for this calculation. Both raise the frequency of homozygotes above what Hardy-Weinberg predicts.

A population estimate, not a personal risk

For an autosomal recessive condition, affected people carry two copies of the variant allele, so under Hardy-Weinberg proportions their frequency is q², the square of the allele frequency. That makes the arithmetic easy in the direction most often needed: take the square root of the disease prevalence to get q, subtract it from one to get the frequency of the normal allele, and the heterozygote frequency is 2pq. For a condition affecting one person in 2,500, q is 0.02, p is 0.98, and the carrier frequency is 3.92%, which is about one person in twenty-five.

The ratio that surprises people is between carriers and affected individuals. Here carriers outnumber affected people by about ninety-eight to one, and the rarer the condition the more extreme the ratio becomes. It is the square root that does this: a condition a hundred times rarer has a carrier frequency only about ten times lower. Even very rare recessive conditions therefore have carrier frequencies measured in hundreds rather than in hundreds of thousands, which is the quantitative case for expanded carrier screening panels.

Hardy-Weinberg proportions hold only under a specific set of conditions: random mating, no selection for or against any genotype, no migration, no new mutation, and a population large enough that allele frequencies do not drift. Every one of these is an idealisation, and two of the failures matter enough to name. In a founder population, drift has fixed particular variants at frequencies far above those in the parent population — which is why a handful of specific variants often account for most cases, and why targeted testing works well there. Where consanguineous partnerships are common, mating is not random with respect to shared ancestry, and homozygotes are more frequent than the same allele frequency would produce under random mating. Both circumstances raise the number of affected people above the prediction, and both are precisely the circumstances in which someone reaches for this calculation.

Two limits on its use follow. The first is that prevalence is population-specific, sometimes by an order of magnitude, so a figure from one population applied to another can be badly wrong in either direction. The second matters more in a clinic: this is an estimate of how common the carrier state is in a population, and it is not an individual's risk. Somebody's own carrier status is established by testing them, and a family history, an ethnic background or a partner's known status changes their probability far more than any population figure. The calculation is for framing a screening programme or an initial conversation. It is not a substitute for carrier testing, and it should never be presented as one.

Frequently asked questions

How do you calculate carrier frequency from disease prevalence?

Take the square root of the prevalence to get the allele frequency q, subtract it from one to get p, and multiply 2 × p × q. For a prevalence of 1 in 2,500, q is 0.02, p is 0.98, and the carrier frequency is 3.92%, or about one person in twenty-five.

Why are carriers so much commoner than affected people?

Because affected people need two copies and carriers need only one, and the square root that recovers the allele frequency compresses large differences in prevalence. A condition a hundred times rarer has a carrier frequency only about ten times lower, so carriers always vastly outnumber cases.

What assumptions does Hardy-Weinberg make?

Random mating, no selection for or against any genotype, no migration into or out of the population, no new mutation, and a population large enough that allele frequencies do not drift. All are idealisations, and the calculation is only as good as they are in the population you are asking about.

Does this calculation apply in consanguineous or founder populations?

Not reliably. Consanguinity breaks the random-mating assumption and produces more homozygotes than the allele frequency predicts, while founder populations have particular variants fixed at unusually high frequency by drift. Both are common reasons to want the calculation, and both make it an underestimate of risk.

Can I use this to tell a patient their carrier risk?

No. It estimates how common the carrier state is in a population, which is a starting point for a conversation rather than a personal risk. Family history, ancestry and a partner's status all change an individual's probability substantially, and carrier status itself is established by testing.

Related calculators

References

  1. Hardy GH. Mendelian proportions in a mixed population. Science. 1908;28(706):49–50.
  2. Weinberg W. Über den Nachweis der Vererbung beim Menschen. Jahreshefte des Vereins für vaterländische Naturkunde in Württemberg. 1908;64:369–382.
  3. Gregg AR, Aarabi M, Klugman S, et al. Screening for autosomal recessive and X-linked conditions during pregnancy and preconception: a practice resource of the American College of Medical Genetics and Genomics. Genet Med. 2021;23(10):1793–1806.

Medical Disclaimer: The tools and content provided here are for educational and reference purposes only. They are not intended to substitute for professional medical advice, diagnosis, or treatment. Clinical decisions should always be based on the comprehensive assessment of a qualified healthcare professional.