Dihybrid Cross Calculator

Reviewed By CalcEagle Editorial Team How we check our math

A dihybrid cross follows two genes at once. When both parents are heterozygous for both genes (AaBb × AaBb), each makes four kinds of gametes (AB, Ab, aB, ab), the 4×4 Punnett square has 16 equally likely boxes, and the offspring phenotypes come out in a 9 : 3 : 3 : 1 ratio, assuming complete dominance and independent assortment.

This dihybrid cross calculator works for any pair of genotypes. It lists the gametes, draws the Punnett square, and gives genotype and phenotype ratios as fractions and percentages.

Gene 1
Gene 2

Trait names are optional. Uppercase is the dominant allele, lowercase the recessive one.

Parent 1 genotype
Parent 2 genotype
Dihybrid Cross Calculator: AaBb × AaBb → 9 : 3 : 3 : 1

How to use the Dihybrid Cross Calculator

  1. Under Gene 1 and Gene 2, type a Letter for each gene (A and B by default). The uppercase letter is the dominant allele and the lowercase letter is the recessive allele.
  2. Optionally type the Dominant trait and Recessive trait for each gene, such as Round and Wrinkled. The results then use those names.
  3. Choose the Parent 1 genotype and Parent 2 genotype for each gene: homozygous dominant (AA), heterozygous (Aa) or homozygous recessive (aa).
  4. Press Calculate. You get each parent's gametes, the 4×4 Punnett square, every genotype with its probability, and the phenotype ratio.

Dihybrid cross formula

Each gamete carries one allele of each gene. When the genes assort independently, the probability of any offspring type is the product of the single-gene probabilities, which is why the 16 boxes of a Punnett square and the multiplication shortcut always agree.

Gametes of AaBb (FOIL): AB, Ab, aB, ab — each with probability 1/4 P(offspring) = P(gene 1 result) × P(gene 2 result) AaBb × AaBb: P(A_B_) = 3/4 × 3/4 = 9/16 P(A_bb) = 3/4 × 1/4 = 3/16 P(aaB_) = 1/4 × 3/4 = 3/16 P(aabb) = 1/4 × 1/4 = 1/16 → 9 : 3 : 3 : 1
TermMeaning
AlleleOne version of a gene; A (dominant) or a (recessive)
GenotypeThe pair of alleles for each gene, such as AaBb
PhenotypeThe visible trait; with complete dominance AA and Aa look the same
A_Shorthand for "AA or Aa", that is, the dominant phenotype
GameteA sex cell carrying one allele of each gene, such as Ab
Dihybrid cross formula: an AaBb parent makes gametes AB, Ab, aB and ab, and multiplying the single-gene probabilities gives 9/16, 3/16, 3/16 and 1/16
List the four gametes, then multiply the single-gene probabilities.

Common dihybrid crosses

CrossPhenotype ratioGenotype ratio
AaBb × AaBb9 : 3 : 3 : 11 : 2 : 1 : 2 : 4 : 2 : 1 : 2 : 1
AaBb × aabb (test cross)1 : 1 : 1 : 11 : 1 : 1 : 1
AaBb × Aabb3 : 3 : 1 : 11 : 1 : 2 : 2 : 1 : 1
AaBB × Aabb3 : 11 : 2 : 1
AABB × aabball A_B_all AaBb
AAbb × aaBBall A_B_all AaBb

Genotype ratios list genotypes in the order AABB, AABb, AAbb, AaBB, AaBb, Aabb, aaBB, aaBb, aabb, skipping any that cannot occur.

Example: Mendel's round and yellow peas

In garden peas, round seed shape (R) is dominant to wrinkled (r), and yellow seed color (Y) is dominant to green (y). Mendel crossed plants that were heterozygous for both genes, RrYy × RrYy. To reproduce it, enter the letters R and Y, the trait names Round, Wrinkled, Yellow and Green, and choose Rr and Yy for both parents.

  1. Each parent makes four gametes in equal proportions: RY, Ry, rY and ry.
  2. The 4×4 Punnett square has 16 equally likely boxes and 9 different genotypes.
  3. Seed shape alone is 3/4 round and 1/4 wrinkled; seed color alone is 3/4 yellow and 1/4 green.
  4. Multiplying gives 9/16 round yellow (56.25%), 3/16 round green (18.75%), 3/16 wrinkled yellow (18.75%) and 1/16 wrinkled green (6.25%): a 9 : 3 : 3 : 1 ratio.

Mendel's counts were 315 round yellow, 108 round green, 101 wrinkled yellow and 32 wrinkled green, 556 in total. The 9 : 3 : 3 : 1 expectation for 556 offspring is 312.75, 104.25, 104.25 and 34.75, very close to what he observed.

Punnett square for RrYy × RrYy with 16 boxes shaded by phenotype: 9 round yellow, 3 round green, 3 wrinkled yellow and 1 wrinkled green, next to Mendel's counts 315, 108, 101 and 32
Mendel's dihybrid cross gives a 9 : 3 : 3 : 1 phenotype ratio.

How to read the result

  • Punnett square: rows are parent 1's gametes, columns are parent 2's gametes, and every box has a 1/16 chance. A homozygous parent still gets four rows or columns; some are simply identical (AABb makes AB, Ab, AB, Ab).
  • Genotypes vs. phenotypes: AaBb × AaBb produces 9 genotypes but only 4 phenotypes, because AA and Aa look the same under complete dominance.
  • Probabilities, not guarantees: the ratio describes the chance for each offspring. A litter or family of 4 will rarely split exactly 9 : 3 : 3 : 1; large numbers, like Mendel's 556 offspring, come close.
  • Two 3 : 1 ratios: the 9 : 3 : 3 : 1 ratio is simply (3 : 1) × (3 : 1). Any dihybrid result can be checked by multiplying the two single-gene results.

Assumptions and limitations

  • Complete dominance at both genes. With incomplete dominance (pink snapdragons from red and white parents) or codominance, the heterozygote has its own phenotype and the ratios change.
  • Independent assortment. Genes on different chromosomes sort independently. Genes close together on the same chromosome tend to be inherited together, so a 9 : 3 : 3 : 1 prediction does not apply.
  • No gene interaction. Epistasis, where one gene masks another, turns 9 : 3 : 3 : 1 into modified ratios such as 9 : 3 : 4.
  • Every genotype is assumed to survive equally, and sex-linked genes are not modeled.

Common mistakes

  • Putting two alleles of the same gene in one gamete. "Aa" is not a gamete; each gamete has one A-gene allele and one B-gene allele.
  • Using 9 : 3 : 3 : 1 for every dihybrid cross. It applies only to AaBb × AaBb. A test cross gives 1 : 1 : 1 : 1, and crosses with homozygous parents give fewer classes.
  • Mixing up genotype and phenotype ratios. The 1 : 2 : 1 : 2 : 4 : 2 : 1 : 2 : 1 genotype ratio collapses into the 9 : 3 : 3 : 1 phenotype ratio.
  • Writing the recessive allele first. Write Aa, not aA, so identical genotypes are easy to spot and count.

For other ratio and percentage work, the Percentage Calculator converts any fraction from the results, such as 3/16, into a percent.

Frequently asked questions

What is the ratio of a dihybrid cross?

For two parents that are heterozygous for both genes (AaBb × AaBb), the phenotype ratio is 9 : 3 : 3 : 1 and the genotype ratio is 1 : 2 : 1 : 2 : 4 : 2 : 1 : 2 : 1. Other parent genotypes give other ratios, such as 1 : 1 : 1 : 1 for a test cross.

How many gametes can an AaBb parent make?

Four, in equal proportions: AB, Ab, aB and ab. A parent that is homozygous for one gene, such as AABb, makes only two different gametes (AB and Ab).

What is a dihybrid test cross?

A cross between an individual of unknown genotype and one that is homozygous recessive for both genes (aabb). If the unknown parent is AaBb and the genes assort independently, the offspring appear in a 1 : 1 : 1 : 1 ratio.

Why does a dihybrid Punnett square have 16 boxes?

Each parent can contribute 4 gametes, so there are 4 × 4 = 16 equally likely combinations. Each box has a probability of 1/16, or 6.25%.

When does a dihybrid cross not give 9 : 3 : 3 : 1?

When the parents are not both AaBb, when the genes are linked on the same chromosome, when dominance is incomplete, or when the genes interact (epistasis).

Sources and references

  1. 12.3 Laws of Inheritance (Biology 2e) — OpenStax, Rice University
  2. 12.2 Characteristics and Traits (Biology 2e) — OpenStax, Rice University
  3. Gregor Mendel and the Principles of Inheritance — Nature Education (Scitable)
  4. 2.5 The Dihybrid Test Cross (Introduction to Genetics) — Thompson Rivers University Open Press

Formulas and content last reviewed on October 13, 2026. Last updated October 13, 2026. Results are estimates for general information only. Spotted a problem? Tell us and we will check it.