Dihybrid Cross Calculator

Dihybrid Cross Calculator

Enter two parents' genotypes for two genes to build the 4 × 4 Punnett square and get every offspring genotype and phenotype ratio, including the classic 9:3:3:1.

AaBb × AaBb → (3 : 1) × (3 : 1) = 9 : 3 : 3 : 1

Two letters per gene, capital for dominant. Any letters work, as long as both parents use the same ones in the same order.

Phenotype Ratio
9:3:3:1
  • A_B_ (dominant A, dominant B): 9/16 = 56.25%
  • A_bb (dominant A, recessive B): 3/16 = 18.75%
  • aaB_ (recessive A, dominant B): 3/16 = 18.75%
  • aabb (recessive A, recessive B): 1/16 = 6.25%
Parent 1 gametes down the side, parent 2 across the top
GametesABAbaBab
ABAABBAABbAaBBAaBb
AbAABbAAbbAaBbAabb
aBAaBBAaBbaaBBaaBb
abAaBbAabbaaBbaabb
9 different genotypes
  • AABB: 1/16
  • AABb: 1/8
  • AAbb: 1/16
  • AaBB: 1/8
  • AaBb: 1/4
  • Aabb: 1/8
  • aaBB: 1/16
  • aaBb: 1/8
  • aabb: 1/16

What a Dihybrid Cross Tells You

A dihybrid cross follows two genes at once. When both parents are heterozygous for both (AaBb × AaBb) and the genes are on different chromosomes, the offspring show the four combinations of traits in a 9:3:3:1 ratio.

Gregor Mendel used crosses like this in peas to show that the two genes were inherited independently: knowing whether a seed was round told him nothing about whether it would be yellow. That idea is his law of independent assortment.

Each parent can make four kinds of gamete (AB, Ab, aB and ab), so the Punnett square has 4 × 4 = 16 equally likely squares. Those squares hold 9 different genotypes, which collapse into 4 phenotypes when one allele of each gene is fully dominant.

How to Set Up a 4 × 4 Punnett Square

  1. List each parent's gametes with FOIL. For AaBb take First, Outer, Inner, Last: AB, Ab, aB, ab. Every gamete has one letter of each gene.
  2. Put one parent's four gametes down the side and the other's across the top.
  3. Fill the 16 squares, keeping each gene's letters together: A + a and B + b give AaBb.
  4. Count phenotypes. A square with at least one A shows the dominant A trait; the same for B.
P(A_B_) = P(A_) × P(B_) = ¾ × ¾ = 9/16
P(A_bb) = ¾ × ¼ = 3/16 · P(aaB_) = ¼ × ¾ = 3/16
P(aabb) = ¼ × ¼ = 1/16

The shortcut: because the genes assort independently, you can solve each gene on its own and multiply. This is how you check any square, and it's the only sensible way to handle three or more genes.

Worked Example: Mendel's Peas

Mendel crossed plants with round, yellow seeds (R and Y dominant) and plants with wrinkled, green seeds. The offspring were all RrYy. Crossing those together gave him 556 seeds. Here is what he counted next to what 9:3:3:1 predicts:

Mendel's observed F2 seed counts compared with the 9:3:3:1 expectation
SeedsShareExpectedCounted
Round, yellow9/16312.75315
Round, green3/16104.25108
Wrinkled, yellow3/16104.25101
Wrinkled, green1/1634.7532
Result:
Very close to 9:3:3:1. 315 : 108 : 101 : 32 works out to about 9.1 : 3.1 : 2.9 : 0.9, well within normal chance variation for 556 seeds.

Ratios for Common Dihybrid Crosses

Complete dominance, unlinked genes. Calculated by the same code as the tool above.

Phenotype ratio and number of genotypes for six dihybrid crosses
CrossPhenotype ratioGenotypes
AaBb × AaBb9:3:3:1 (A_B_, A_bb, aaB_, aabb)9
AaBb × aabb1:1:1:1 (A_B_, A_bb, aaB_, aabb)4
AaBb × Aabb3:3:1:1 (A_B_, A_bb, aaB_, aabb)6
AaBb × AABBAll A_B_4
AABb × aaBb3:1 (A_B_, A_bb)3
AABB × aabbAll A_B_1

When the 9:3:3:1 Ratio Breaks

A real cross that doesn't come out near 9:3:3:1 is usually telling you something interesting about the genes:

  • Linked genes. Genes close together on the same chromosome tend to travel together, so the parental combinations turn up more often than expected and the recombinant ones less often. The tighter the linkage, the bigger the distortion.
  • Epistasis. One gene can mask another. The 16 squares are the same, but they get grouped differently: 9:3:4 (recessive epistasis, as in Labrador coat colour), 9:7 (two genes both needed), 12:3:1 (dominant epistasis) or 15:1 (either gene is enough).
  • Incomplete dominance in one gene. The heterozygote of that gene gets its own phenotype, giving six classes: 3:6:3:1:2:1.
  • Lethal combinations. If one genotype doesn't survive, its squares disappear and the remaining ratio is out of fewer than 16.

Common Dihybrid Cross Mistakes

  • Writing gametes like Aa or Bb. A gamete gets one copy of each gene, so it's always one A-type letter and one B-type letter: AB, Ab, aB or ab.
  • Expecting 9:3:3:1 from every cross. It only applies to AaBb × AaBb. A test cross (AaBb × aabb) gives 1:1:1:1, and AaBb × Aabb gives 3:3:1:1.
  • Confusing 9 genotypes with 4 phenotypes. AABB, AABb, AaBB and AaBb all look the same, so the "9" in 9:3:3:1 is four different genotypes added together.
  • Scrambling the letter order. Keep genes in the same order in every square (AaBb, not aBbA) or matching squares get counted as different.

Dihybrid Cross FAQs

What is the genotype ratio of AaBb × AaBb?

1:2:1:2:4:2:1:2:1 across the nine genotypes AABB, AABb, AAbb, AaBB, AaBb, Aabb, aaBB, aaBb and aabb. AaBb is the most common at 4/16.

Why do homozygous parents show repeated gametes?

AABb makes AB, Ab, AB and Ab. Keeping the repeats means every square of the 4 × 4 grid is equally likely, so you can still count squares out of 16.

How do I know if my genes are linked?

Do a test cross with aabb. Unlinked genes give four classes in roughly equal numbers. If two classes clearly outnumber the other two, the genes are probably on the same chromosome.

Does this work for three genes?

Use the trihybrid cross calculator. The square becomes 8 × 8 = 64 cells, and AaBbCc × AaBbCc gives 27:9:9:9:3:3:3:1.

Sources

  • G. Mendel, Experiments on Plant Hybridization (1866), English translation via the Electronic Scholarly Publishing Project: F2 seed counts 315, 108, 101 and 32.
  • OpenStax, Biology 2e, chapter 12: the law of independent assortment and epistasis.
  • Nature Education Scitable: gene linkage and recombination.

Related Tools