Punnett Square Calculator

The 3:1 is a result here, not a rule — the square is built from the gametes each time.

Clear
Phenotype ratio3 : 1A aa
Genotype ratio2 : 1 : 1
Boxes in the square42 gametes by 2
Genes involved1
Genotype Aa2 in 450% — A
Genotype AA1 in 425% — A
Genotype aa1 in 425% — aa
Gametes from the first parentA, a
These are probabilities per offspring, not a promise about a litter. Four offspring from a 3:1 cross give exactly three and one only about a third of the time.

The formula

gametes are one allele per gene; offspring are every pairing of one gamete from each parent

The ratios are results, not rules

This page builds the square from first principles for any number of genes: it works out every gamete each parent can make, pairs them all, and tallies what comes out. The familiar 3:1, 9:3:3:1 and 27:9:9:9:3:3:3:1 are not written into the code anywhere — they emerge from the counting, which is the only honest way to present them.

Independent assortment is an assumption

The dihybrid ratio requires the two genes to assort independently, which is true only if they sit on different chromosomes or far enough apart on the same one. Genes close together are linked and inherited together far more often than chance allows, and the observed ratio then departs from 9:3:3:1 in a way that measures how close they are. Mendel's seven pea traits happened to assort independently, which was a considerable piece of luck.

Complete dominance is also an assumption

The phenotype counts here assume one allele completely masks the other. Where dominance is incomplete the heterozygote looks like neither parent and the phenotype ratio becomes 1:2:1, matching the genotypes. Where both alleles show, as in AB blood type, the same thing happens for a different reason.

Ratios are expectations, not promises

Every genetic ratio on these pages is a probability distribution, not a guarantee. A 3:1 cross does not produce three dominant offspring for every recessive one in a litter of four — it produces each offspring independently with a three-quarters chance. Small families depart from the expected ratio routinely, and that is the reason Mendel needed thousands of pea plants rather than dozens.