Skip to main content

Dihybrid Cross Calculator - Punnett Square

The Dihybrid Cross Punnett Square Calculator models the simultaneous inheritance of two distinct genetic traits according to Gregor Mendel’s Law of Independent Assortment.

First gene locus for Parent 1.

Second gene locus for Parent 1.

First gene locus for Parent 2.

Second gene locus for Parent 2.

Name of the first physical characteristic (e.g. Seed Shape, Coat Texture).

Visible physical trait for dominant allele (e.g. Round).

Visible physical trait for homozygous recessive allele (e.g. Wrinkled).

Name of the second physical characteristic (e.g. Seed Color, Flower Color).

Visible physical trait for dominant allele (e.g. Yellow).

Visible physical trait for homozygous recessive allele (e.g. Green).

Calculated Result
9:3:3:1ratio

Mendelian Phenotypic Ratio

Phenotypic Ratio

9:3:3:1

Parent 1 Genotype

AaBb (Gametes: AB, Ab, aB, ab)

Parent 2 Genotype

AaBb (Gametes: AB, Ab, aB, ab)

Double Dominant (A_B_)

9/16 (56.25%) — Round [R] & Yellow [Y] (A_B_)

Dominant / Recessive (A_bb)

3/16 (18.75%) — Round [R] & Green [y] (A_bb)

Recessive / Dominant (aaB_)

3/16 (18.75%) — Wrinkled [r] & Yellow [Y] (aaB_)

Double Recessive (aabb)

1/16 (6.25%) — Wrinkled [r] & Green [y] (aabb)

Unique Genotypes Generated

9 distinct genotypes across 16 cells

Calculation Breakdown

  1. 1. Determine Parental Genotypes & Gamete SegregationParent 1 (AaBb): [AB, Ab, aB, ab] | Parent 2 (AaBb): [AB, Ab, aB, ab]
  2. 2. Populate 16-Cell Dihybrid Punnett Matrix4 Gametes × 4 Gametes = 16 Equally Probable Zygotic Offspring Combinations
  3. 3. Calculate Phenotypic Classes & Mendelian RatioPhenotypic Distribution: 9:3:3:1 (9/16 Round, 3/16 Round, 3/16 Wrinkled, 1/16 Wrinkled)

Offspring Phenotypic Probability Distribution (%)

Interactive visualization based on your current inputs

Probability (%)
0.014284256Double Dominant (A_B_)Dominant / Recessive (A_bb)Recessive / Dominant (aaB_)Double Recessive (aabb)Phenotype CategoryProbability (%)

What Is the Dihybrid Cross Calculator - Punnett Square?

The Dihybrid Cross Punnett Square Calculator is an interactive genetic inheritance tool designed to calculate the probabilities of inheriting two independent genetic traits simultaneously.

In 1865, Austrian monk and botanist Gregor Mendel published his groundbreaking breeding experiments with garden peas (Pisum sativum). Having demonstrated how single traits segregate (the monohybrid cross), Mendel investigated whether different physical characteristics—such as seed shape (round vs. wrinkled) and seed color (yellow vs. green)—influence each other’s inheritance.

His findings established the foundational Law of Independent Assortment: alleles for separate genes sort into gametes completely independently during gametogenesis, resulting in predictable 16-cell zygotic combinations.

How Does the Dihybrid Cross Calculator - Punnett Square Work?

1. Parental Genotype Parsing: The calculator accepts the diploid allele pairs for Gene 1 (A/a) and Gene 2 (B/b) for both parent organisms.

2. Gamete Segregation (FOIL Method): During meiosis, homologous chromosomes separate, and sister chromatids segregate. Each parent produces haploid gametes containing one allele from each gene pair. For an AaBb parent, the four gamete combinations are: First (AB), Outer (Ab), Inner (aB), and Last (ab).

3. Matrix Construction: A 4 × 4 Punnett square grid is constructed. The 4 maternal gametes form the rows and the 4 paternal gametes form the columns, producing 16 zygotic fusion outcomes.

4. Zygote Assembly & Allele Sorting: In each cell, alleles from both gametes are recombined and sorted with dominant uppercase letters listed first (e.g. AaBb rather than aAbB).

5. Phenotype Determination: The engine assesses dominance for each trait:

• Dominant Trait 1 requires at least one dominant A allele (AA or Aa).

• Dominant Trait 2 requires at least one dominant B allele (BB or Bb).

• Recessive expression requires homozygous recessive state (aa or bb).

6. Statistical Distribution: The calculator tallies counts out of 16, percentage probabilities, and simplifies the final phenotypic ratio (e.g. 9:3:3:1, 1:1:1:1, or 3:3:1:1).

Dihybrid Cross Calculator - Punnett Square Formula & Variables

The core mathematical equation utilized by this calculator is expressed as:

Phenotypic Probability: P(A_B_) = 9/16, P(A_bb) = 3/16, P(aaB_) = 3/16, P(aabb) = 1/16

Variable Definitions

SymbolVariable Meaning & Units
A & aDominant (A) and recessive (a) alleles for Gene Locus 1
B & bDominant (B) and recessive (b) alleles for Gene Locus 2
FOIL GametesFour possible haploid gametes per parent: AB, Ab, aB, ab
16 Zygote GridTotal possible combinations from 4 maternal gametes × 4 paternal gametes
9:3:3:1Classic Mendelian phenotypic ratio resulting from an AaBb × AaBb heterozygous cross

According to Mendel’s Second Law (Independent Assortment), alleles for two unlinked genes segregate independently during anaphase I of meiosis. For a double heterozygote (AaBb), the probability of forming each gamete (AB, Ab, aB, ab) is 1/4 (25%). When two double heterozygotes mate, the product rule determines offspring probabilities: P(Dominant Trait 1) = 3/4, P(Recessive Trait 1) = 1/4; P(Dominant Trait 2) = 3/4, P(Recessive Trait 2) = 1/4. Multiplying these independent probabilities yields: 3/4 × 3/4 = 9/16 double dominant, 3/4 × 1/4 = 3/16 dominant/recessive, 1/4 × 3/4 = 3/16 recessive/dominant, and 1/4 × 1/4 = 1/16 double recessive.

How to Use the Dihybrid Cross Calculator - Punnett Square

  1. Select the genotype for Parent 1 for Trait 1 (AA, Aa, or aa) and Trait 2 (BB, Bb, or bb).
  2. Select the genotype for Parent 2 for Trait 1 and Trait 2.
  3. Optionally customize the names of Trait 1 and Trait 2, as well as their respective dominant and recessive phenotypic descriptions.
  4. Click Calculate to generate the full 16-box Punnett square, genotypic breakdown, and phenotypic probabilities.
  5. Inspect the Punnett Square Grid to see which specific gamete combinations generate each offspring genotype.
  6. Consult the Phenotypic Probability Chart to compare visual percentage frequencies.

Step-by-Step Example Calculation

Mendel’s Classic Pea Plant Dihybrid Cross (RrYy × RrYy)

Input Values:

parent1Trait1:Aa
parent1Trait2:Bb
parent2Trait1:Aa
parent2Trait2:Bb
trait1Name:Seed Shape
trait1DominantLabel:Round [R]
trait1RecessiveLabel:Wrinkled [r]
trait2Name:Seed Color
trait2DominantLabel:Yellow [Y]
trait2RecessiveLabel:Green [y]
Worked Steps: Parent 1 Genotype: RrYy (produces RY, Ry, rY, ry gametes). Parent 2 Genotype: RrYy (produces RY, Ry, rY, ry gametes). The 16-cell Punnett square yields: 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%). The resulting phenotypic ratio is exactly 9:3:3:1 across 9 unique genotypes (AABB, AABb, AaBB, AaBb, AAbb, Aabb, aaBB, aaBb, aabb).

Understanding Your Result

Mendelian Phenotypic Ratio: The simplified integer ratio describing the relative proportions of visible physical traits in the offspring (e.g., 9:3:3:1 in a classic double heterozygous cross).

Double Dominant (A_B_): Offspring expressing dominant phenotypes for both traits (e.g., Round & Yellow, 9/16 or 56.25%).

Dominant / Recessive (A_bb): Offspring expressing the dominant phenotype for Trait 1 but recessive for Trait 2 (e.g., Round & Green, 3/16 or 18.75%).

Recessive / Dominant (aaB_): Offspring expressing recessive Trait 1 and dominant Trait 2 (e.g., Wrinkled & Yellow, 3/16 or 18.75%).

Double Recessive (aabb): Offspring homozygous recessive for both gene loci (e.g., Wrinkled & Green, 1/16 or 6.25%).

Genotype Table: Displays all unique diploid genetic combinations (up to 9 unique genotypes) with their precise fractional and percentage probabilities.

Factors That Affect the Result

  • Genetic Linkage: If two genes reside in close proximity on the same physical chromosome, they tend to be inherited together as a linkage group, distorting expected 9:3:3:1 ratios in favor of parental phenotypes.
  • Epistasis: When one gene masks the expression of another gene, ratios shift to non-standard distributions (e.g., 9:3:4 in coat colors, 12:3:1 in dominant epistasis, or 15:1 in duplicate genes).
  • Incomplete Dominance & Codominance: If alleles display blending (incomplete dominance) or simultaneous expression (codominance like ABO blood groups), heterozygotes exhibit distinct third phenotypes.
  • Lethal Alleles: Homozygosity for certain mutant alleles causes embryonic lethality, removing those zygotes from the living population and altering living offspring ratios (e.g. 2:1 ratios).

When Should You Use This Calculator?

  • Genetics & Biology Education: Teaching high school and university students how independent assortment, gametogenesis, and the product rule operate.
  • Animal & Pet Breeding: Forecasting puppy coat colors and fur textures in dog breeding (e.g. black vs. brown coat and solid vs. spotted patterns in Labradors or Poodles).
  • Horticultural Hybridization: Planning heirloom tomato or flower crosses for disease resistance and fruit sweetness combinations.
  • Genetic Counseling: Assessing risks for parents carrying two distinct autosomal recessive genetic conditions (such as cystic fibrosis and sickle cell trait).

Assumptions & Limitations

  • Assumes independent assortment: the two gene loci must be on non-homologous chromosomes or far apart on the same chromosome.
  • Assumes complete dominance: heterozygous individuals exhibit the full dominant phenotype without blending.
  • Assumes equal gamete viability and equal embryonic survival across all 16 zygotic genotypes.

Frequently Asked Questions

Calculation Accuracy & Reference Note

Formulations reflect classical Mendelian transmission genetics per Pierce, Genetics: A Conceptual Approach, and Campbell Biology.

Standard Reference: Gregor Mendel (1866), Versuche über Pflanzen-Hybriden; Pierce, Genetics: A Conceptual Approach.