Zygosity is the degree of similarity of the alleles for a trait in an organism.
Most eukaryotes have two matching sets of chromosomes; that is, they are diploid. Diploid organisms have the same genes on each of their two sets of homologous chromosomes, except that the sequences of these genes may differ between the two chromosomes in a matching pair and that a few chromosomes may be mismatched as part of a sex-determination system. If both alleles of a diploid organism are the same, the organism is homozygous for the trait. If they are different, the organism is heterozygous for that trait. If one allele is missing, it is hemizygous, and, if both alleles are missing, it is nullizygous.
The DNA sequence of a gene often varies from one individual to another. Those variations are called alleles. While some genes have only one allele because there is low variation, others have only one allele because only that allele can function properly. Any variation from the DNA sequence of that allele will be fatal in the embryo, and the organism will never survive to be born. But most genes have two or more alleles. The frequency of different alleles varies throughout the population. Some genes may have two alleles with equal distribution. For other genes, one allele may be common, and another allele may be rare. Sometimes, one allele is a disease-causing variation while the other allele is healthy. Sometimes, the different variations in the alleles make no difference at all in the function of the organism.
In diploid organisms, one allele is inherited from the male parent and one from the female parent. Zygosity is a description of whether those two alleles have identical or different DNA sequences. In some cases the term "zygosity" is used in the context of a single chromosome.
The words homozygous, heterozygous, and hemizygous are used to describe the genotype of a diploid organism at a single locus on the DNA. Homozygous describes a genotype consisting of two identical alleles at a given locus, heterozygous describes a genotype consisting of two different alleles at a locus, hemizygous describes a genotype consisting of only a single copy of a particular gene in an otherwise diploid organism, and nullizygous refers to an otherwise-diploid organism in which both copies of the gene are missing.
A cell is said to be homozygous for a particular gene when identical alleles of the gene are present on both homologous chromosomes. The cell or organism in question is called a homozygote. True breeding organisms are always homozygous for the traits that are to be held constant.
An individual that is homozygous-dominant for a particular trait carries two copies of the allele that codes for the dominant trait. This allele, often called the "dominant allele", is normally represented by a capital letter (such as "P" for the dominant allele producing purple flowers in pea plants). When an organism is homozygous-dominant for a particular trait, the genotype is represented by a doubling of the symbol for that trait, such as "PP".
An individual that is homozygous-recessive for a particular trait carries two copies of the allele that codes for the recessive trait. This allele, often called the "recessive allele", is usually represented by the lowercase form of the letter used for the corresponding dominant trait (such as, with reference to the example above, "p" for the recessive allele producing white flowers in pea plants). The genotype of an organism that is homozygous-recessive for a particular trait is represented by a doubling of the appropriate letter, such as "pp".
A diploid organism is heterozygous at a gene locus when its cells contain two different alleles of a gene. Heterozygous genotypes are represented by a capital letter (representing the dominant allele) and a lowercase letter (representing the recessive allele), such as "Rr" or "Ss". The capital letter is usually written first.
If the trait in question is determined by simple (complete) dominance, a heterozygote will express only the trait coded by the dominant allele, and the trait coded by the recessive allele will not be present. In more complex dominance schemes the results of heterozygosity can be more complex.
A chromosome in a diploid organism is hemizygous when only one copy is present. The cell or organism is called a hemizygote. Hemizygosity is observed when one copy of a gene is deleted, or in the heterogametic sex when a gene is located on a sex chromosome. For organisms in which the male is heterogametic, such as humans, almost all X-linked genes are hemizygous in males with normal chromosomes because they have only one X chromosome and few of the same genes are on the Y chromosome. In a more extreme example, male honeybees (known as drones) are completely hemizygous organisms. They develop from unfertilized eggs and their entire genome is haploid, unlike female honeybees, which are diploid. Transgenic mice generated through exogenous DNA microinjection of an embryo's pronucleus are also considered to be hemizygous because the introduced allele is expected to be incorporated into only one copy of any locus. A transgenic can later be bred to homozygosity and maintained as an inbred line to reduce the need to confirm the genotypes of each litter.
A nullizygous organism carries two mutant alleles for the same gene. The mutant alleles are both complete loss-of-function or 'null' alleles, so homozygous null and nullizygous are synonymous. The mutant cell or organism is called a nullizygote.
Autozygous and allozygous 
Zygosity may also refer to the origin(s) of the alleles in a genotype. When the two alleles at a locus originate from a common ancestor by way of nonrandom mating (inbreeding), the genotype is said to be autozygous. This is also known as being "identical by descent", or IBD. When the two alleles come (at least to the extent that the descent can be traced) from completely different sources, as is the case in most normal, random mating, the genotype is called allozygous. This is known as being "identical by state", or IBS.
Because the alleles of autozygous genotypes come from the same source, they are always homozygous, but allozygous genotypes may be homozygous too. All heterozygous genotypes are, by definition, allozygous because they contain two completely different alleles. Hemizygous and nullizygous genotypes do not contain enough alleles to allow for comparison of sources, so this classification is irrelevant for them.
Monozygotic and dizygotic twins 
As discussed above, "zygosity" can be used in the context of a specific genetic locus (example). In addition, the word "zygosity" may also be used to describe the genetic similarity or dissimilarity of twins. Identical twins are monozygotic, meaning that they develop from one zygote that splits and forms two embryos. Fraternal twins are dizygotic because they develop from two separate eggs that are fertilized by two separate sperm.
Heterozygosity in population genetics 
In population genetics, the concept of heterozygosity is commonly extended to refer to the population as a whole, i.e., the fraction of individuals in a population that are heterozygous for a particular locus. It can also refer to the fraction of loci within an individual that are heterozygous.
Typically, the observed () and expected () heterozygosities are compared, defined as follows for diploid individuals in a population:
where is the number of individuals in the population, and are the alleles of individual at the target locus.
where is the number of alleles at the target locus, and is the allele frequency of the allele at the target locus.
See also 
- Heterozygote advantage
- Loss of heterozygosity
- Nucleotide diversity measures polymorphisms on the level of nucleotides rather than on level of loci.
- Carr, M.; Cotton, S.; Rogers, D.; Pomiankowski, A.; Smith, H.; Fowler, K. (2006). "Assigning sex to pre-adult stalk-eyed flies using genital disc morphology and X chromosome zygosity". BMC developmental biology 6: 29. doi:10.1186/1471-213X-6-29. PMC 1524940. PMID 16780578.
- Lawrence, Eleanor: Henderson's Dictionary of Biology, 14e, 2008
- Molecular Cell Biology, 4th edition by Harvey Lodish, et al Chapter 8. (2000)
- Pujol, C.; Messer, S.; Pfaller, M.; Soll, D. (2003). "Drug resistance is not directly affected by mating type locus zygosity in Candida albicans". Antimicrobial agents and chemotherapy 47 (4): 1207–1212. doi:10.1128/AAC.47.4.1207-1212.2003. PMC 152535. PMID 12654648.
- Human Molecular Genetics, 2nd edition by Tom Strachan and Andrew P. Read Chapter 17. (1999).