Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Punnett square & genetics lab

Make Punnett squares for 1 to 3 genes with exact ratios, plus sex-linked traits, ABO blood groups, chances over several children and a chi-square check.

How to use

  1. Type a cross such as Aa x Aa or AaBb x aabb (1 to 3 genes), or pick a classic cross. Capital letters are dominant alleles.
  2. For each gene, choose complete dominance or incomplete dominance (a blend, like red × white snapdragons giving pink), and name the two traits if you like.
  3. Read the square, then the genotype and phenotype tables with exact fractions and ratios.
  4. Under Chance over several children, see how likely it is that, say, exactly 1 of 4 children shows a trait.
  5. Sex-linked shows traits carried on the X chromosome; Blood groups shows ABO inheritance; Chi-square check tests whether counts from an experiment fit an expected ratio.

Keyboard and touch

TabMove between boxes and buttons
EnterMake the square or run the test after typing
Arrow keysChange a choice in a drop-down list

Tips

  • Write both letters of a gene together: AaBb, not ABab. Use a different letter for each gene.
  • A ratio is about chances for each child, not a promise: a 3:1 cross can easily give 4 children who all look the same.
  • Mendel's own pea counts (315, 108, 101, 32) are filled in on the chi-square tab. They fit 9:3:3:1 very well.
  • In the chi-square test, a p-value of 0.05 or more means the differences could easily be chance. It does not prove the ratio is right.
  • Real traits are often shaped by many genes and by the environment, and genes that sit close together on a chromosome are not always inherited independently. This lab shows the simple textbook cases.

About this lab

The lab lists every combination of gametes (eggs and sperm or pollen) from each parent, assuming each gene is inherited independently (Mendel's laws of segregation and independent assortment). Fractions are counted exactly, then simplified.

The ABO tab uses three alleles: A and B are both dominant over O, and A with B gives type AB. The sex-linked tab assumes a recessive allele on the X chromosome, as in red-green colour blindness.

The chi-square p-value is worked out with the regularised incomplete gamma function, written for this site and checked against a standard statistics library. This is a learning tool for school biology, not medical or genetic advice.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product