Toolvito

Works on this device

Genotype Frequency Calculator

Find how common each genotype and each allele is in a group of individuals. Type the number of individuals with each genotype, or type allele frequencies to see the genotype frequencies they predict.

Enter your values

Type how many individuals have each genotype. Works for two or more alleles of one gene.

Your values
Genotype counts

One row for each genotype: two allele names such as AA or Aa, or names with a slash such as A1/A2, and how many individuals have it.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose Genotype and allele frequencies from counts when you have counted individuals. Type one row per genotype, such as AA, Aa and aa, or A1/A2 for longer allele names, with the number of individuals.
  2. Choose Expected genotype frequencies from allele frequencies when you know the allele frequencies. Type one row per allele. You can also type percentages or numbers of allele copies.
  3. Choose Calculate. The tables show each genotype and each allele with its frequency and percentage.

The equations

  • Genotype frequency = number of individuals with the genotype ÷ N, where N is the number of individuals.
  • Allele (gene) frequency = (2 × number of homozygotes for the allele + number of heterozygotes that carry it) ÷ 2N. Each individual has two copies of the gene, so there are 2N copies in all.
  • Expected genotype frequencies (Hardy-Weinberg proportions): p² for a homozygote and 2pq for a heterozygote. With k alleles there are k(k + 1) ÷ 2 genotypes.
  • Heterozygosity: observed = share of individuals with two different alleles; expected = 1 − the sum of the squared allele frequencies.

Worked examples

From counts. 36 AA, 48 Aa and 16 aa make N = 100. The genotype frequencies are 0.36, 0.48 and 0.16. Allele A has 2 × 36 + 48 = 120 of the 200 copies, so its frequency is 0.6, and a has 0.4.

Expected. With A = 0.7 and a = 0.3, the expected genotype frequencies are AA = 0.49, Aa = 2 × 0.7 × 0.3 = 0.42 and aa = 0.09.

Three alleles. With A1 = 0.5, A2 = 0.3 and A3 = 0.2 there are six genotypes: A1/A1 0.25, A1/A2 0.30, A1/A3 0.20, A2/A2 0.09, A2/A3 0.12 and A3/A3 0.04.

Limits you should know

  • One gene at a time, with up to 10 alleles. A genotype is two allele names: Aa or A1/A2. Capital and small letters are different alleles.
  • Counts must be of genotypes. If you only know how many show a dominant or recessive trait, the genotypes cannot be told apart without an assumption: use the Hardy-Weinberg equation in the Hardy Weinberg Calculator.
  • Expected frequencies assume Hardy-Weinberg equilibrium. To test real counts against them, use the Hardy Weinberg Calculator. For allele frequencies on their own, see the Allele Frequency Calculator.
  • For the offspring of one cross (gametes and genotypes of children), use the Punnett Square Calculator.

Related tools