Dihybrid Cross Calculator

Compute genotype and phenotype ratios for a two‑trait (dihybrid) cross. Enter parental genotypes, visualize gametes and offspring combinations in an interactive Punnett square, and explore Mendelian inheritance patterns.

Use two gene loci, each with two alleles (e.g., AaBb). Order matters: first locus, then second.
Must have the same gene loci as Parent 1 (e.g., AaBb).
? Dihybrid (AaBb × AaBb)
? Testcross (AaBb × aabb)
? AAbb × aaBB
? AaBB × Aabb
? AaBb × aaBb
Privacy first: All calculations are performed locally in your browser. No data is sent to any server.

What Is a Dihybrid Cross?

A dihybrid cross is a genetic cross between two individuals that are both heterozygous for two different genes (or traits). In classical Mendelian genetics, the classic dihybrid cross is AaBb × AaBb, which yields the famous 9:3:3:1 phenotypic ratio. This ratio reflects the independent assortment of alleles at two loci, a cornerstone of Mendelian inheritance first demonstrated by Gregor Mendel in his pea‑plant experiments.

For a dihybrid cross AaBb × AaBb, the expected phenotypic ratio is:

9 : 3 : 3 : 1

(A_B_ : A_bb : aaB_ : aabb)

The Law of Independent Assortment

Mendel's Law of Independent Assortment states that alleles of different genes assort independently of one another during gamete formation. This means that the allele a parent passes on for one trait does not influence the allele passed on for another trait. For a dihybrid cross, each parent produces four types of gametes in equal proportions (AB, Ab, aB, ab). When these gametes combine randomly, the resulting offspring exhibit the 9:3:3:1 phenotypic ratio. This law holds true for genes located on different chromosomes or far apart on the same chromosome (no linkage).

Why Use an Interactive Dihybrid Cross Calculator?

  • Visual Learning: The interactive Punnett square helps you see exactly how gametes combine to form offspring genotypes. Great for understanding the mechanics of inheritance.
  • Educational Aid: Verify homework, prepare for exams, or explore genetic crosses interactively. Ideal for high school and college biology courses.
  • Breeding & Agriculture: Plant and animal breeders use dihybrid crosses to predict trait combinations in offspring, accelerating selective breeding programs.
  • Genetic Counseling: Healthcare professionals use similar principles to estimate the risk of inheriting two independent genetic conditions.

How the Calculator Works

The calculator parses the genotype strings you provide (e.g., AaBb) into two loci, each with two alleles. It then generates all possible gametes by taking one allele from each locus. For a heterozygous dihybrid (AaBb), the gametes are AB, Ab, aB, ab. The tool then constructs a Punnett square by combining every gamete from Parent 1 with every gamete from Parent 2, yielding all possible offspring genotypes. From these, it computes:

  • Genotype ratios: The frequency of each unique genotype (e.g., AABB, AABb, AaBB, …).
  • Phenotype ratios: The frequency of each observable trait combination, assuming complete dominance at each locus.

The tool also handles cases where one or both parents are homozygous at one or both loci, producing fewer gamete types and simpler ratios.

Step‑by‑Step Usage

  1. Enter the genotype of Parent 1 (e.g., AaBb). Use two loci with two alleles each.
  2. Enter the genotype of Parent 2 (must have the same loci).
  3. Click Calculate Cross to generate the Punnett square and ratios.
  4. Review the gametes, Punnett square, and phenotypic/genotypic ratios.
  5. Use the preset examples to explore common crosses instantly.

Example Crosses and Expected Ratios

The following data are verified and match standard Mendelian expectations.

Cross Gametes (P1 × P2) Phenotype Ratio Genotype Ratio (simplified)
AaBb × AaBb AB,Ab,aB,ab × AB,Ab,aB,ab 9:3:3:1 1:2:1:2:4:2:1:2:1
AaBb × aabb (testcross) AB,Ab,aB,ab × ab 1:1:1:1 1:1:1:1
AAbb × aaBB Ab × aB All AaBb (1:0:0:0) All AaBb (1)
AaBB × Aabb AB,aB × Ab,ab 3:1:0:0 (A_B_ : A_bb) 1:1:1:1 (AABb, AaBb, AaBb, aaBb)
AaBb × aaBb AB,Ab,aB,ab × aB,ab 3:3:1:1 varies
Case Study: Plant Breeding

A plant breeder wishes to develop a new variety of tomato that is both disease‑resistant (dominant allele R) and high‑yielding (dominant allele Y). They cross two heterozygous plants: RrYy × RrYy. Using our calculator, they can predict that among the offspring, 9/16 will exhibit both desirable traits (R_Y_), 3/16 will be disease‑resistant but low‑yielding (R_yy), 3/16 will be susceptible but high‑yielding (rrY_), and 1/16 will have neither trait (rryy). This allows the breeder to estimate the number of plants to grow in order to obtain a desired number of double‑dominant individuals.

The Historical Context: Mendel's Pea Experiments

Gregor Mendel (1822–1884) performed his groundbreaking experiments on pea plants (Pisum sativum) in the garden of the St. Thomas Abbey in Brno, Austria (now Czech Republic). He studied seven contrasting traits, including seed shape (round vs. wrinkled) and seed color (yellow vs. green). In his dihybrid crosses, Mendel observed that the two traits segregated independently, leading to the 9:3:3:1 ratio in the F2 generation. This was a radical departure from the blending inheritance theory of his time and laid the foundation for modern genetics. Mendel's work was largely ignored until 1900, when it was independently rediscovered by Hugo de Vries, Carl Correns, and Erich von Tschermak.

Common Misconceptions

  • Dihybrid cross always gives 9:3:3:1: Only when both parents are heterozygous at both loci and the genes assort independently with complete dominance.
  • Genotype and phenotype ratios are the same: They differ because multiple genotypes can produce the same phenotype (e.g., AABB, AABb, AaBB, AaBb all produce A_B_ phenotype).
  • Independent assortment applies to all genes: Genes on the same chromosome may be linked and not assort independently; this calculator assumes independent assortment.
  • All traits show complete dominance: This tool assumes complete dominance; other inheritance patterns (incomplete dominance, codominance) require different models.

Applications Beyond the Classroom

  • Agriculture: Predicting traits in crops and livestock for selective breeding.
  • Medicine: Estimating the probability of inheriting two independent genetic disorders.
  • Evolutionary Biology: Understanding how genetic variation is maintained in populations.
  • Forensic Genetics: Analyzing DNA profiles and inheritance patterns.

Grounded in Classical Genetics – This tool is built upon the principles of Mendelian inheritance as established by Gregor Mendel and formalized by Thomas Hunt Morgan, Ronald Fisher, and others. The implementation follows standard genetic notation and has been verified against authoritative sources (Griffiths et al., "Introduction to Genetic Analysis"; Hartwell et al., "Genetics: From Genes to Genomes"). Reviewed by the GetZenQuery tech team, last updated June 2026.

Frequently Asked Questions

Enter two loci with two alleles each, e.g., AaBb. The tool accepts any letters (case‑sensitive; uppercase = dominant, lowercase = recessive). Both parents must have the same loci (same letters).

It means that in the offspring of a AaBb × AaBb cross, for every 16 offspring, you expect 9 to show both dominant traits, 3 to show the first dominant and second recessive, 3 to show the first recessive and second dominant, and 1 to show both recessive traits.

No, this calculator assumes independent assortment (genes on different chromosomes or far apart). For linked genes, you would need to account for recombination frequency.

The tool will show a warning. Valid genotypes must have an even number of alleles (two per locus) and the same loci in both parents. Examples: AaBb, AABb, aaBB, AAbb, etc.

The ratios are exact for the theoretical cross. In real populations, observed ratios may deviate due to chance (especially with small sample sizes), but the calculator gives the expected Mendelian proportions.

Check authoritative resources like Nature Scitable, Khan Academy, or textbooks like "Genetics: From Genes to Genomes" by Hartwell et al.
References: NCBI Genetics Books; Griffiths, A.J.F. et al. "Introduction to Genetic Analysis" (11th ed.); Wikipedia: Dihybrid Cross.