Guide
Punnett squares for one, two or three genes: gametes, genotype and phenotype ratios
Gregor Mendel found that traits are inherited as separate units, now called genes, which come in pairs of alleles, one from each parent. A Punnett square, introduced by Reginald Punnett, shows all the ways two parents’ alleles can combine, and from the grid you can read the probability of each offspring type. This calculator draws the square for one, two or three genes, and works out the genotype and phenotype ratios and probabilities.
Writing genotypes
Write each gene as two letters of the same name: Aa is heterozygous, AA and aa homozygous. Upper case is the dominant allele. For several genes write the pairs together, as in AaBb for two genes or AaBbCc for three. Each gene needs its own letter, and both parents must use the same genes in the same order, so AaBb × Aabb is valid but Aa × Bb is not. The tool names the problem if a pair has different letters, such as Ab.
How the square is built
Each parent makes gametes by taking one allele from each gene, in every possible combination. AaBb makes four: AB, Ab, aB and ab. Each gamete of parent 1 is combined with each gamete of parent 2, giving 4 × 4 = 16 cells for a dihybrid cross, and 8 × 8 = 64 for a trihybrid. A homozygous gene contributes only one allele, so AABb makes just AB and Ab. The square lists parent 1’s gametes down the side and parent 2’s across the top.
Complete and incomplete dominance
Under complete dominance a single upper-case allele is enough to show the dominant trait, so AA and Aa look alike, written A_. The cross Aa × Aa has 4 cells, genotypes 1 AA : 2 Aa : 1 aa, and two phenotypes in the ratio 3 A_ : 1 aa, the classic 3:1. With incomplete dominance or codominance, as in red and white snapdragons giving pink, each genotype is its own phenotype, so Rr × Rr gives 1 RR : 2 Rr : 1 rr in both rows.
The dihybrid cross
AaBb × AaBb has gametes AB, Ab, aB and ab on both sides, 16 combinations and nine genotypes in the ratio 1 AABB : 2 AABb : 1 AAbb : 2 AaBB : 4 AaBb : 2 Aabb : 1 aaBB : 2 aaBb : 1 aabb. The phenotypes fall into four classes: 9 A_B_ : 3 A_bb : 3 aaB_ : 1 aabb, the 9:3:3:1 ratio that Mendel observed for two traits assorting independently. Probabilities are shown as fractions and percentages: the AaBb class is 4/16 = 25%, the double recessive 1/16 = 6.25%.
A test cross and three genes
Tt × tt has two cells: 1 Tt : 1 tt, so half the offspring show the dominant trait and half the recessive, written 1 T_ : 1 tt. This 1:1 result is how a heterozygote reveals itself. The trihybrid test cross AaBbCc × aabbcc has eight gametes from the first parent and one from the second, so eight cells, eight different genotypes and eight phenotypes, each at 1/8 = 12.5%, which shows that a test cross reads the gametes of the unknown parent directly.
Reading probabilities
The ratios are probabilities for each single offspring, not guarantees for a family. With a 3:1 cross, each child has a 75% chance of showing the dominant trait, and a family of four does not have to include exactly one recessive child. Probabilities also multiply for independent events: the chance of an aabb child from AaBb × AaBb is 1/4 × 1/4 = 1/16, the same as the cell count. A chi-square test is the way to compare observed counts with a predicted ratio.
Limits
The tool assumes independent assortment, that is, genes on different chromosomes or far apart. It does not model linked genes, which are inherited together more often than expected, nor sex-linked traits, lethal alleles, epistasis, multiple alleles or environmental effects, and it covers at most three genes. The grid is for diploid parents with two alleles per gene. Real inheritance can be more complex than any single-gene example.
Related tools
- Chi-Square Calculator tests whether observed offspring counts fit the predicted ratio.
- DNA Reverse Complement Tool works at the level of the DNA sequence behind an allele.
- Diversity Index Calculator summarises populations rather than single crosses.
- Percentage Calculator converts a ratio into percentages.
Checked against the current version of the Punnett Square Calculator on .

