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:7/9/2014)... to species, selection for traits that are attractive to ... enhances opportunities to mate, the tail of male peacocks ... of California, Riverside have now found that sexual selection ... are linked. Describing the life histories of more than ... researchers found that species with placentas tend to have ...
(Date:7/9/2014)... puzzle behind nature,s ability to split the water ... development of artificial photosynthesis for clean, green and ... collaboration of scientists led by researchers with the ... SLAC National Accelerator Laboratory. , Working at ... most powerful x-ray laser, the researchers were able ...
(Date:7/9/2014)... children with traumatic injuries have identified an immune ... develop a hospital-acquired infection. The study, led by ... in June in the journal Shock , ... lead to the clinical implementation of quick-turnaround immune ... immune system damage following critical illness or injury ...
Breaking Biology News(10 mins):Biologists link sexual selection and placenta formation 2Biologists link sexual selection and placenta formation 3Biologists link sexual selection and placenta formation 4Postcards from the photosynthetic edge 2Postcards from the photosynthetic edge 3Immune function predicts infection risk among child trauma patients 2Immune function predicts infection risk among child trauma patients 3
... released the final "Integrated Science Assessment for Oxides of ... the scientific literature on the potential adverse human health ... nitrogen dioxide or NO2. There are significant new ... review document released in 1993. Oxides of ...
... The outlook for air quality in Beijing during the Olympics ... do to improve it. That,s the conclusion drawn ... pollution data collected regularly for the last five years by ... a regional component to the pollutants that cause unhealthy air ...
... Jericho may help a joint Israeli-Palestinian-German research group combat ... the Kuvin Center for the Study of Infectious and ... is leading the Israeli team, the bones, which were ... seventy years ago, will be tested for tuberculosis, leprosy, ...
Cached Biology News:URI researcher: China can't fully fix air quality problem for Olympics 2Excavated Jericho bones may help Israeli-Palestinian-German team combat tuberculosis 2Excavated Jericho bones may help Israeli-Palestinian-German team combat tuberculosis 3
Other biology definitionOther Tags