About the Dihybrid Cross Punnett Square Calculator
A dihybrid cross tracks two genes at once. This calculator takes the genotypes of two parents — each written as four letters, two alleles per gene (for example AaBb) — and works out every possible offspring by combining their gametes in a 4×4 Punnett square. It returns the offspring genotype ratio, the phenotype ratio, and the full 16-cell grid so you can see exactly where each result comes from. The textbook case, a cross of two heterozygotes AaBb × AaBb, produces the famous 9:3:3:1 phenotype ratio.
How the dihybrid cross works
Each parent carries two alleles for gene 1 and two for gene 2. During meiosis those alleles separate, so a parent that is heterozygous for both genes (AaBb) can make four kinds of gametes in equal proportion: AB, Ab, aB, ab. Fertilization pairs one gamete from each parent, and 4 × 4 = 16 equally likely combinations fill the Punnett square. Counting the results by phenotype (when one allele is dominant) or by exact genotype gives the ratios below.
The 9:3:3:1 phenotype ratio
For AaBb × AaBb with complete dominance at both genes, the 16 offspring sort into four phenotype classes:
- 9/16 show both dominant traits (A_B_)
- 3/16 dominant for gene 1, recessive for gene 2 (A_bb)
- 3/16 recessive for gene 1, dominant for gene 2 (aaB_)
- 1/16 show both recessive traits (aabb)
The 9:3:3:1 ratio is really just two independent 3:1 monohybrid ratios multiplied together: (3:1) × (3:1). That is the product rule in action, and it only holds when the two genes assort independently.
The genotype ratio
Broken down by exact genotype rather than appearance, the same AaBb × AaBb cross gives a 1:2:1:2:4:2:1:2:1 ratio across nine genotypes: 1 AABB, 2 AABb, 1 AAbb, 2 AaBB, 4 AaBb, 2 Aabb, 1 aaBB, 2 aaBb, 1 aabb. The single most common offspring genotype is the double heterozygote AaBb, appearing in 4 of the 16 boxes.
Mendel's laws behind the numbers
- Law of Segregation: the two alleles of a gene separate during gamete formation, so each gamete carries only one.
- Law of Independent Assortment: alleles of different genes are distributed to gametes independently — the allele a gamete gets for gene 1 does not influence which it gets for gene 2. This is what makes all four gamete types equally likely and produces 9:3:3:1.