Dihybrid Cross Calculator

Dihybrid Cross Calculator (4×4 Punnett Square)

Generate a 4×4 Punnett square for a dihybrid cross (e.g. AaBb × AaBb) and calculate genotype and phenotype ratios, including the classic 9:3:3:1 result.

AaBb × AaBb → 9:3:3:1 phenotypic ratio
Each parent produces 4 gametes (AB, Ab, aB, ab) → combined in a 4×4 Punnett square

Last updated: March 2026

Punnett Square Generator

Parent 1 Genotype
Parent 2 Genotype

What is a Dihybrid Cross?

A dihybrid cross is a genetic cross between two organisms that examines the inheritance of two different traits simultaneously. Each trait is controlled by a different gene with two alleles (one dominant and one recessive). This type of cross was first studied by Gregor Mendel in his famous pea plant experiments.

The dihybrid cross generates a 4×4 Punnett square (16 possible offspring combinations) because each parent can produce four different types of gametes through independent assortment during meiosis. The classic phenotypic ratio for a cross between two heterozygotes (AaBb × AaBb) is 9:3:3:1.

This concept is fundamental to understanding Mendel's Law of Independent Assortment, which states that alleles for different traits are distributed to gametes independently of one another. Dihybrid crosses are essential in genetics, agriculture, and breeding programs.

How to Perform a Dihybrid Cross

The Process

Follow these steps to complete a dihybrid cross:

Step 1: Identify the genotypes of both parents for both traits
Step 2: Determine all possible gametes each parent can produce (4 per parent)
Step 3: Create a 4×4 Punnett square grid
Step 4: Fill in all 16 offspring genotype combinations
Step 5: Determine phenotypes based on dominant/recessive alleles
Step 6: Calculate phenotype ratios from the 16 outcomes

Notation

Standard genetic notation:

Uppercase (A, B): Dominant alleles
Lowercase (a, b): Recessive alleles
Heterozygous: Aa, Bb (one of each)
Homozygous dominant: AA, BB
Homozygous recessive: aa, bb

Requirements

Valid inputs must:

• Both parents must use the same letter for Trait A (e.g., both use A/a)
• Both parents must use the same letter for Trait B (e.g., both use B/b)
• Trait A and Trait B must use different letters
• Each allele pair must be exactly 2 letters

Worked Example

Classic Mendel's Pea Plant Cross (AaBb × AaBb):

Given:
• Trait A: Seed shape (A = round, a = wrinkled)
• Trait B: Seed color (B = yellow, b = green)
• Parent 1: AaBb (round, yellow)
• Parent 2: AaBb (round, yellow)
Gametes:
For this cross, each parent produces the following unique gamete types:
AB, Ab, aB, ab
Results:
Phenotype ratio:
9 Round, Yellow (A_ B_)56.25%
3 Round, Green (A_ bb)18.75%
3 Wrinkled, Yellow (aa B_)18.75%
1 Wrinkled, Green (aa bb)6.25%
Classic Ratio:
9:3:3:1
The famous Mendelian dihybrid ratio

Frequently Asked Questions

What is the 9:3:3:1 ratio?

The 9:3:3:1 ratio is the classic phenotypic ratio for a dihybrid cross between two heterozygotes (AaBb × AaBb). It means 9/16 offspring show both dominant traits, 3/16 show trait A dominant and B recessive, 3/16 show A recessive and B dominant, and 1/16 show both recessive traits.

What is independent assortment?

Independent assortment is Mendel's Second Law, stating that alleles for different traits segregate independently during gamete formation. When both parents are heterozygous for both traits (AaBb), each produces 4 different gamete types with equal probability (25% each). Homozygous loci produce duplicate gametes with higher frequency.

When doesn't the 9:3:3:1 ratio appear?

The 9:3:3:1 ratio only occurs when both parents are heterozygous for both traits (AaBb × AaBb). Different parental genotypes produce different ratios. Also, linked genes (on the same chromosome) don't assort independently and deviate from this ratio.

What does A_ notation mean?

The underscore (_) represents 'any allele.' So 'A_' means the organism has at least one dominant A allele (could be AA or Aa), which is enough to express the dominant phenotype. Similarly, 'aa' means both alleles must be recessive.

What is the ratio of a dihybrid cross?

For a cross between two heterozygotes (AaBb × AaBb), the phenotypic ratio is 9:3:3:1 under independent assortment.

How many genotypes are possible?

A dihybrid cross produces 16 total offspring combinations in the Punnett square. For AaBb × AaBb specifically, there are 9 unique genotypes, which collapse into 4 phenotypes. Different parental genotypes produce different numbers of unique genotypes and phenotypes.

Can I use this for incomplete dominance?

This calculator assumes complete dominance (one allele completely masks another). For incomplete dominance or codominance, you'd need different phenotype categories. The genotype ratios remain the same, but phenotype interpretation changes.

What if genes are linked?

Linked genes (located close together on the same chromosome) don't follow independent assortment. They tend to be inherited together, reducing recombinant gamete types and deviating from expected ratios. This calculator assumes unlinked genes on different chromosomes.

Why show duplicate gametes in the square?

Homozygous parents (e.g., AA) produce identical gametes (all A), appearing as duplicates in the 4×4 grid. This is pedagogically correct—it shows that each meiotic division has equal 1/4 probability, even when outcomes are identical. The 'Unique Gametes' section shows the distinct types and their actual frequencies.

How is this used in breeding?

Dihybrid crosses are essential in agriculture and animal breeding to predict offspring traits when selecting for multiple characteristics simultaneously. Breeders use these ratios to understand the probability of desired trait combinations appearing in the next generation.

Related Tools