Trait names

Dihybrid cross calculator

Two genes, four gametes per parent, sixteen cells: this page opens the calculator on the classic dihybrid cross AaBb × AaBb and shows the 4 × 4 Punnett square with its 9:3:3:1 phenotypic ratio already worked out. Edit either parent, for example AaBb × aabb or AABb × AaBB, and every cell, ratio and probability updates immediately.

How the 4 × 4 square is built

A parent that is heterozygous for two genes makes four gamete types, because either allele of the first gene can travel with either allele of the second: AB, Ab, aB and ab, each with probability 1/4. Write one parent’s four gametes across the top and the other’s down the side, and the 16 cells hold every possible combination. The calculator does this for you and colours the cells by outcome, so the nine genotypes are easy to spot: AABB once, AaBb four times, aabb once, and the six remaining genotypes twice each. That is the full genotypic ratio, 1:2:1:2:4:2:1:2:1.

Where 9:3:3:1 comes from

Under complete dominance the sixteen cells fall into four phenotypes. Nine cells carry at least one A and one B (dominant for both traits), three carry A with bb, three carry aa with B, and a single cell is aabb. This 9:3:3:1 pattern is the product of two independent 3:1 ratios: 3/4 × 3/4 = 9/16 for the double dominant, 3/4 × 1/4 = 3/16 for each single recessive, and 1/4 × 1/4 = 1/16 for the double recessive. Mendel’s own count of 556 seeds, 315 : 108 : 101 : 32, matches it closely. The pattern relies on the two genes assorting independently, which holds for genes on different chromosomes or far apart on the same one; tightly linked genes give different numbers.

Using the calculator

Beyond two genes

Slide the gene count to three and the same tool draws the 64-cell trihybrid square with its 27:9:9:9:3:3:3:1 ratio; four genes give 256 cells and five give 1,024. For crosses where you only want the simplified ratios, the genotype and phenotype ratio calculator opens on a trihybrid cross; for the pea version of this square with Mendel’s yellow and round traits, see the pea plant Punnett square.

Frequently asked questions

What is a dihybrid cross?

A cross that follows two genes at the same time, such as AaBb × AaBb. Each parent makes four kinds of gametes, so the Punnett square has 4 × 4 = 16 cells.

What are the genotypic and phenotypic ratios of AaBb × AaBb?

Phenotypic: 9:3:3:1. Genotypic: 1:2:1:2:4:2:1:2:1 across nine genotypes, from AABB (1/16) through AaBb (4/16) to aabb (1/16).

How many boxes does a dihybrid Punnett square have?

Sixteen. Four gametes from one parent across the top times four from the other down the side. A trihybrid cross needs 64 boxes and a tetrahybrid 256.

Does the 9:3:3:1 ratio always apply?

Only when both parents are heterozygous for both genes, the genes assort independently and both traits show complete dominance. Linked genes or incomplete dominance change the ratio; the calculator shows the actual ratio for whatever you enter.

What is the chance of a double recessive offspring?

1 in 16 (6.25%) from AaBb × AaBb: the offspring must receive an ab gamete from each parent, and each parent makes ab one quarter of the time, so 1/4 × 1/4 = 1/16.