Dihybrid Cross Calculator

Cross two genes at once. Pick each parent's genotype and instantly generate the 4×4 Punnett square with full genotype ratios and the classic 9:3:3:1 phenotype ratio.

1. Name the two traits (optional)

Gene 1  (A / a)

Gene 2  (B / b)

2. Choose parent genotypes
Parent 1
Parent 2
Punnett Square (16 boxes)
Phenotype Ratio
Genotype Ratio

What is a dihybrid cross?

A dihybrid cross tracks two genes at the same time. Each parent carries two alleles per gene (a genotype such as AaBb), so the offspring outcomes are mapped on a 4×4 Punnett square with 16 boxes.

Gregor Mendel ran dihybrid crosses on pea plants — seed shape (round vs wrinkled) and seed colour (yellow vs green) — and discovered the law of independent assortment.

The 9:3:3:1 ratio

Crossing two double-heterozygotes (AaBb × AaBb) gives the famous 9:3:3:1 phenotype ratio:

  • 9 — both dominant traits
  • 3 — dominant trait 1, recessive trait 2
  • 3 — recessive trait 1, dominant trait 2
  • 1 — both recessive traits

The genotype ratio for the same cross is 1:2:1:2:4:2:1:2:1 across nine genotypes.

How to use this calculator

  • Optionally rename the two traits so the results read in plain English.
  • Pick a genotype for each gene in both parents (AA/Aa/aa and BB/Bb/bb).
  • The 16-box Punnett square, colour-coded by phenotype, updates instantly.
  • Read the phenotype and genotype ratio tables, each simplified to lowest whole numbers.

Tip: any pair of traits works — map A/a and B/b onto fur colour, height, or any Mendelian gene.

Worked example

AaBb × AaBb (round/wrinkled × yellow/green):

  • 9/16 Round Yellow
  • 3/16 Round Green
  • 3/16 Wrinkled Yellow
  • 1/16 Wrinkled Green

That is the textbook 9:3:3:1 ratio — load the example above to see all 16 boxes filled in.

Related genetics tools

Frequently asked questions

How many gametes does AaBb make? Four — AB, Ab, aB and ab — because the genes assort independently.

Why 16 boxes? 4 gametes from each parent → 4 × 4 = 16 equally-likely combinations.

What if the genes are linked? Linked genes on the same chromosome do not assort independently, so the ratio drifts away from 9:3:3:1.