Navigation Links
Hardy-Weinberg principle

The Hardy–Weinberg principle (HWP) (also Hardy–Weinberg equilibrium (HWE), or Hardy–Weinberg law) states that, under certain conditions, after one generation of random mating, the genotype frequencies at a single gene locus will become fixed at a particular equilibrium value. It also specifies that those equilibrium frequencies can be represented as a simple function of the allele frequencies at that locus.

In the simplest case of a single locus with two alleles A and a with allele frequencies of p and q, respectively, the HWP predicts that the genotypic frequencies for the AA homozygote to be p2, the Aa heterozygote to be 2pq and the other aa homozygote to be q2. The Hardy–Weinberg principle is an expression of the notion of a population in "genetic equilibrium" and is a basic principle of population genetics.



The original assumptions for Hardy–Weinberg equilibrium (HWE) were the population under consideration is idealised, that is:

and experience:

Causes of deviation

When the Hardy–Weinberg assumptions are not met this can cause deviations from expectation, but depending which assumption is not met, such deviations may or may not be statistically detectable. Deviations can be caused by the Wahlund effect, inbreeding, assortative mating, selection, or genetic drift. Assortative mating will only change the genotype frequencies of those genes that are desired. Genetic drift is particularly active in small population sizes. Deviations caused by selection, however, often require a significant selection coefficient in order to be detected which is why the test for deviations from Hardy–Weinberg proportions is considered a weak test for selection.


A more statistical description for the HWP, is that the alleles for the next generation for any given individual are chosen independently. Consider two alleles, A and a, with frequencies p and q, respectively, in the population then the different ways to form new genotypes can be derived using a Punnett square, where the size of each cell is proportional to the fraction of each genotypes in the next generation:

Table 1: Punnet square for Hardy–Weinberg equilibrium
A (p)a (q)
MalesA (p) AA (p2) Aa (pq)
a (q) aA (qp) aa (q2)

So the final three possible genotype frequencies, in the offspring, if the alleles are drawn independently become:

This is normally achieved in one generation, except if a population is created by bringing together males and females with different allele frequencies, in which case, equilibrium is reached in two generations.

Sex linkage

Where the a gene is sex-linked, the heterogametic sex (e.g. males in humans) have only one copy of the gene and are effectively haploid for that gene. So the genotype frequency at equilibrium is therefor p and q for the heterogametic sex but p^2, 2pq and q^2 for the homogametic sex.

For example in humans red-green colourblindness is caused by an X-linked recessive allele. The frequency in males is about 1 in 12, (or 0.083) whereas it affects about 1 in 250 women (0.004).

If a population is brought together with males and females with different allele frequencies, then the allele frequency of the male population follows that of the female population because each receives its X chromosome from its mother. The population converges on equilibrium, within about six generations maximum.


Generalization for more than two alleles

The Hardy–Weinberg principle may be generalized to more than two alleles. Consider an extra allele frequency, r. The two-allele case is the binomial expansion of (p + q)2, and thus the three-allele case is:

(p + q + r)2 = p2 + r2 + q2 + 2pq + 2pr + 2qr

More generally, consider the alleles A1 ... Ai given by the allele frequencies p1 to pi,

(p1 + ... + pi)2

giving for all homozygotes:

and for all heterozygotes:

f(AiAj) = 2pipj

Generalization for polyploidy

The Hardy–Weinberg principle may also be generalized to polyploid systems, that is to populations which have more than two copies of each chromosome. Consider again only two alleles. The diploid case is the binomial expansion of:

(p + q)2

and therefore the polyploid case is the binomial expansion of:

(p + q)c

where c is the ploidy, for example with tetraploid (c = 4):

Table 2: Expected genotype frequencies for tetraploidy
Genotype Frequency

Complete generalization

The completely generalized formula is the multinomial expansion of :


The Hardy–Weinberg principle may be applied in two ways, either a population is assumed to be in Hardy–Weinberg proportions, in which the genotype frequencies for can be calculated, or if the genotype frequencies of all three genotypes are known, the can be tested for deviations that are statistically significant.

Application to cases of complete dominance

Suppose that the phenotypes of AA and Aa are indistinguishable i.e. that there is complete dominance. Assuming that the Hardy–Weinberg principle applies to the population, then q can still be calculated from f(aa):

and p can be calculated from q. And thus an estimate of f(AA) and f(Aa) derived from p^2 and 2pq respectively. Note however, such a population cannot be tested for equilibrium using the significance tests below because it is assumed a priori.

Significance tests for deviation

Testing deviation from the HWP is generally performed using Pearson's chi-squared test, using the observed genotype frequencies obtained from the data and the expected genotype frequencies obtained using the HWP. For systems where there are large numbers of alleles, this may result in data with many empty possible genotypes and low genotype counts, because there are often not enough individuals present in the sample to adequately represent all genotype classes. If this is the case, then the asymptotic assumption of the chi-square distribution, will no longer hold, and it may be necessary to use a form of Fisher's exact test, which requires a computer to solve.

Example χ2 test for deviation

These data are from E.B. Ford (1971) on the Scarlet tiger moth, for which the phenotypes of a sample of the population were recorded. Genotype-phenotype distinction is assumed to be negligibly small. The null hypothesis is that the population is in Hardy–Weinberg proportions, and the alternative hypothesis is that the population is not in Hardy–Weinberg proportions.

Table 3: Example Hardy–Weinberg principle calculation
Genotype White-spotted (AA) Intermediate (Aa) Little spotting (aa) Total
Number 1469 138 5 1612

From which allele frequencies can be calculated:

= 0.954


q = 1 - p
= 1 - 0.954
= 0.046

So the Hardy–Weinberg expectation is:

Pearson's chi-square test states:

= 0.001 + 0.073 + 0.756
= 0.83

There is 1 degree of freedom. (degrees of freedom for χ2 squared tests are normally n - 1, where n is the number of genotype classes. However, an extra degree of freedom is lost because the expected values were calculated from the observed values). The 5% significance level for 1 degree of freedom is 3.84, and since the χ2 value is less than this, the null hypothesis that the population is in Hardy–Weinberg equilibrium is not rejected.


In F-statistics, the measure F is the observed frequency of heterozygotes over that expected from Hardy–Weinberg equilibrium:

where the expected value from Hardy–Weinberg equilibrium is given by

For example, for Ford's data above;

= 0.977


Godfray Hardy

Mendelian genetics was rediscovered in 1900. However, it remained somewhat controversial for several years as it was not then known how it could cause continuous characters. Udny Yule (1902) argued against Mendelism because he thought that dominant alleles would increase in the population. The American William E. Castle (1903) showed that without selection, the genotype frequencies would remain stable. Karl Pearson (1903) found one equilibrium position with values of p = q = 0.5. Reginald Punnett, unable to counter Yule's point, introduced the problem to G. H. Hardy, a British mathematician, with whom he played cricket. Hardy was a pure mathematician and held applied mathematics in some contempt; his view of biologists use of mathematics comes across in his 1908 paper where he describes this as "very simple".

To the Editor of Science: I am reluctant to intrude in a discussion concerning matters of which I have no expert knowledge, and I should have expected the very simple point which I wish to make to have been familiar to biologists. However, some remarks of Mr. Udny Yule, to which Mr. R. C. Punnett has called my attention, suggest that it may still be worth making...
Suppose that Aa is a pair of Mendelian characters, A being dominant, and that in any given generation the number of pure dominants (AA), heterozygotes (Aa), and pure recessives (aa) are as p:2q:r. Finally, suppose that the numbers are fairly large, so that mating may be regarded as random, that the sexes are evenly distributed among the three varieties, and that all are equally fertile. A little mathematics of the multiplication-table type is enough to show that in the next generation the numbers will be as (p+q)^2:2(p+q)(q+r):(q+r)^2, or as p1:2q1:r1, say.
The interesting question is — in what circumstances will this distribution be the same as that in the generation before? It is easy to see that the condition for this is q^2 = pr. And since q_1^2 = p_1r_1, whatever the values of p, q, and r may be, the distribution will in any case continue unchanged after the second generation

The principle was thus known as Hardy's law in the English-speaking world until Stern (1943) pointed out that it had first been formulated independently in 1908 by the German physician Wilhelm Weinberg (see Crow 1999).


  • Castle, W. E. (1903). The laws of Galton and Mendel and some laws governing race improvement by selection. Proc. Amer. Acad. Arts Sci.. 35: 233–242.
  • Crow, J.F. (1999). Hardy, Weinberg and language impediments. Genetics 152: 821-825. link
  • Ford, E.B. (1971). Ecological Genetics, London.
  • Hardy, G. H. (1908). "Mendelian proportions in a mixed population". Science 28: 49–50. ESP copy
  • Pearson, K. (1904). Mathematical contributions to the theory of evolution. XI. On the influence of natural selection on the variability and correlation of organs. Philosophical Transactions of the Royal Society of London, Ser. A 200: 1–66.
  • Stern, C. (1943). "The Hardy–Weinberg principle". Science 97: 137–138. JSTOR stable url
  • Weinberg, W. (1908). "ber den Nachweis der Verebung beim Menschen". Jahreshefte des Vereins fr vaterlndische Naturkunde in Wrttemberg 64: 368–382.
  • Yule, G. U. (1902). Mendel's laws and their probable relation to intra-racial heredity. New Phytol. 1: 193–207, 222–238.


(Date:8/29/2014)... of connections in transcription factor networks (TFNs) to evaluate ... published in PLOS Computational Biology in August. ... to a network,s resilience against mutations. , "In ... TFN models has a greater effect on robustness than ... said Dov A. Pechenick, PhD, lead author and former ...
(Date:8/29/2014)... cell,s nucleus, chromosomal DNA is tightly bound to ... call chromatin. Until about two decades ago, histones ... packing material around which the glamorous DNA strands ... greater appreciation for how DNA/histone interactions govern gene ... institutions studying the sequence of the genome from ...
(Date:8/28/2014)... America (ESA) is pleased to announce the selection of ... Society. Honorary Membership acknowledges those who have served ESA ... the affairs of the Society that has reached an ... the ESA Governing Board and then voted on by ... the Awards Ceremony at Entomology 2014, ESA,s Annual Meeting ...
Breaking Biology News(10 mins):Assortativity signatures of transcription factor networks contribute to robustness 2'K-to-M' histone mutations: How repressing the repressors may drive tissue-specific cancers 2'K-to-M' histone mutations: How repressing the repressors may drive tissue-specific cancers 3Fred Baxendale selected as Honorary Member of the Entomological Society of America 2
... - One of the most common house ant species might ... spaces in a forest, but the ants have found ways ... Grzegorz Buczkowski, a Purdue University research assistant professor of entomology, ... complex as they move from forest to city and act ...
... -- Amphibiansfrogs, toads, salamanders, and newtsare disappearing worldwide, but ... be stable. This region is home to the largest ... species reside here), and scientists want to understand what ... research published in the March 29, 2010 issue of ...
... for a gene to create a protein, the gene,s DNA ... These RNA molecules are the instruction manuals that show the ... a protein. A few years ago, scientists studying bacterial cells ... can bind to. In doing so, they induce the RNA ...
Cached Biology News:Common house ants form supercolonies, prosper in urban settings 2Young salamanders' movement over land helps stabilize populations 2Young salamanders' movement over land helps stabilize populations 3Genes under control 2
Other biology definitionOther Tags