Dihybrid Cross Calculator

A dihybrid cross tracks two genes simultaneously in a 4x4 Punnett square (16 cells). Enter the two alleles for each gene in both parents and the calculator generates the complete grid, colour-coded by phenotype class, plus phenotype ratios (the classic result for two double heterozygotes is 9:3:3:1) and all nine genotype counts.

S. Siddiqui

Edited by

S. SiddiquiFounder & Editor-in-Chief
Sources:WikipediaWolfram AlphaUpdated Jul 2026

Parent 1

Gene A

Gene B

Parent 2

Gene A

Gene B

AaBb × AaBbABAbaBab
ABAABBAABbAaBBAaBb
AbAABbAAbbAaBbAabb
aBAaBBAaBbaaBBaaBb
abAaBbAabbaaBbaabb
A_ B_: 9/16A_ bb: 3/16aa B_: 3/16aa bb: 1/16

Results

Phenotype Ratios (out of 16)

A_ B_
9/16 (56.3%)
A_ bb
3/16 (18.8%)
aa B_
3/16 (18.8%)
aa bb
1/16 (6.3%)
Classic 9:3:3:1 dihybrid ratio confirmed. Both genes show complete dominance with independent assortment.

Genotype Counts (out of 16)

AaBb: 4/16AABb: 2/16AaBB: 2/16Aabb: 2/16aaBb: 2/16AABB: 1/16AAbb: 1/16aaBB: 1/16aabb: 1/16

Assumes complete dominance for both genes and independent assortment (genes on different chromosomes or far apart on the same chromosome). Ratios are population-level probabilities, not guarantees for individual offspring.

Quick Answer

A dihybrid cross tracks two genes simultaneously across a 4x4 Punnett square (16 cells). When both parents are double heterozygotes (AaBb x AaBb) and both genes show complete dominance with independent assortment, the classic result is a 9:3:3:1 phenotype ratio: 9 A_B_ (both dominant traits), 3 A_bb (dominant A, recessive B), 3 aaB_ (recessive A, dominant B), and 1 aabb (both recessive). This ratio breaks down when genes are linked on the same chromosome or when epistasis causes one gene to mask the expression of the other.

What Is a Dihybrid Cross?

A dihybrid cross is a genetic cross that simultaneously tracks the inheritance of two separate genes, each with two alleles. The term "dihybrid" refers to an individual that is heterozygous at both gene loci (for example, AaBb), and a dihybrid cross is typically performed between two such double heterozygotes. The resulting offspring are distributed across a 4x4 Punnett square containing 16 equally probable cells, compared to the 2x2 grid used for a monohybrid cross.

The dihybrid cross was first described by Gregor Mendel in the 1860s using pea plants. Mendel crossed plants that differed in two characteristics simultaneously: seed colour (yellow vs green) and seed shape (round vs wrinkled). His observation that these two traits were inherited independently of each other became the foundation for his second law of inheritance, the Law of Independent Assortment. This law states that alleles for different genes are distributed to gametes independently of one another, provided the genes are on different chromosomes or are far apart on the same chromosome.

The key outcome of a standard dihybrid cross between two AaBb parents is the 9:3:3:1 phenotypic ratio. Out of 16 offspring, 9 are expected to show both dominant traits (A_B_), 3 show only the dominant A trait with recessive b (A_bb), 3 show only the dominant B trait with recessive a (aaB_), and 1 is doubly recessive (aabb). This ratio is one of the most recognisable patterns in classical genetics and serves as a diagnostic tool: when it appears in real experimental data, it confirms that both genes behave according to simple Mendelian rules with independent assortment.

In practice, many dihybrid crosses do not produce a clean 9:3:3:1 ratio because genes are sometimes linked (located close together on the same chromosome), because epistasis causes one gene's product to suppress or modify the other's expression, or because penetrance and expressivity vary. Understanding what the ideal ratio should be is essential for detecting and interpreting these deviations.

How to Use the Dihybrid Cross Calculator

  1. Enter the alleles for both parents. Each parent requires four allele inputs: two alleles for Gene A (A1 and A2) and two alleles for Gene B (B1 and B2). Use uppercase letters for dominant alleles (A, B, C, etc.) and lowercase for recessive alleles (a, b, c, etc.). For a classic dihybrid cross, set both parents to A1=A, A2=a, B1=B, B2=b, which represents two double heterozygotes (AaBb x AaBb).
  2. Review the 4x4 Punnett square. The calculator builds a 4x4 grid using all four possible gametes from each parent (AB, Ab, aB, ab for a standard AaBb parent). Each cell shows the genotype of one possible offspring. Cells are colour-coded by phenotype class: green for A_B_, blue for A_bb, amber for aaB_, and grey for aabb.
  3. Read the phenotype ratios. The results panel shows how many of the 16 cells fall into each of the four phenotype classes, expressed as a fraction (e.g., 9/16) and as a percentage. A classic double heterozygote cross will display 9:3:3:1. If you enter different parental genotypes (such as AABB x aabb), the ratio will change accordingly.
  4. Check the genotype counts. The genotype panel lists every distinct genotype produced and how many times it appears. For a standard AaBb x AaBb cross, 9 distinct genotypes appear across the 16 cells: AABB (1), AABb (2), AaBB (2), AaBb (4), AAbb (1), Aabb (2), aaBB (1), aaBb (2), aabb (1). This detail is essential for genetics problems involving specific carrier probabilities.
  5. Copy the results. Use the Copy Results button to copy both phenotype and genotype ratios to your clipboard in plain text format, useful for lab reports, homework, or teaching materials.

Dihybrid Cross Genotype and Phenotype Ratios

The 9:3:3:1 ratio is the expected phenotypic result when two double heterozygotes (AaBb x AaBb) are crossed and both genes show complete dominance with independent assortment. However, the genotypic breakdown of those 16 offspring is more complex and often needed for genetics problem sets.

  • AABB: 1/16 (homozygous dominant for both genes)
  • AABb: 2/16 (homozygous dominant A, heterozygous B)
  • AaBB: 2/16 (heterozygous A, homozygous dominant B)
  • AaBb: 4/16 (heterozygous for both genes, the most common genotype)
  • AAbb: 1/16 (homozygous dominant A, homozygous recessive B)
  • Aabb: 2/16 (heterozygous A, homozygous recessive B)
  • aaBB: 1/16 (homozygous recessive A, homozygous dominant B)
  • aaBb: 2/16 (homozygous recessive A, heterozygous B)
  • aabb: 1/16 (homozygous recessive for both genes)

Notice that this genotypic distribution can be derived by multiplying the expected monohybrid ratios for each gene independently: Gene A gives 1 AA : 2 Aa : 1 aa, and Gene B gives 1 BB : 2 Bb : 1 bb. Multiplying the frequency for each combination (1/4 x 1/4 = 1/16 for AABB, 1/4 x 2/4 = 2/16 for AABb, and so on) gives the same result as the Punnett square, which is exactly what independent assortment predicts.

When parental genotypes are not double heterozygotes, the ratios change substantially. A cross between AABB and aabb produces only AaBb offspring in the first generation (F1). A cross between AaBb and aabb (a testcross) produces a 1:1:1:1 ratio of the four phenotype classes, which is used to test whether two genes are independently assorting. If the ratio deviates from 1:1:1:1 in a testcross, the genes are likely linked on the same chromosome.

Real-World Applications of Dihybrid Crosses

In plant and animal breeding, dihybrid cross analysis is used to plan crosses that will produce specific combinations of traits in offspring. Crop breeders frequently need to combine disease resistance (controlled by one gene) with high yield (controlled by another) in a single variety. A dihybrid cross analysis helps predict what proportion of offspring will carry both favourable traits (the A_B_ class) and guides the number of plants that need to be screened to find the desired double dominant combination.

In human genetics, dihybrid thinking applies to families with multiple recessive conditions. If two parents are carriers of two different recessive diseases (one parent is AaBb for both conditions), the dihybrid cross predicts that 1 in 16 of their children would be expected to be affected by both conditions (aabb). More practically, the probability of being affected by condition A (aa) is 1/4, and the probability of being affected by condition B (bb) is 1/4, and if the genes are independent, the probability of being affected by both is 1/4 x 1/4 = 1/16. This multiplication rule is the mathematical basis of the dihybrid cross ratio.

In laboratory research, dihybrid crosses in model organisms such as Drosophila melanogaster (fruit flies) and Caenorhabditis elegans (roundworms) are a standard method for mapping genes. When a researcher observes that two traits do not segregate in a 9:3:3:1 ratio in F2 offspring, this indicates linkage. The degree of deviation from the expected ratio allows calculation of the recombination frequency between the two loci, which translates directly into map distance in centimorgans (cM).

When the 9:3:3:1 Ratio Does Not Appear

Several biological phenomena cause the phenotypic ratio in a dihybrid cross to deviate from the classic 9:3:3:1 pattern. Recognising these deviations is a key skill in genetics problem solving.

Epistasis occurs when the alleles of one gene mask or modify the expression of another gene. In recessive epistasis (such as the classic example of coat colour in Labrador retrievers), a recessive genotype at the epistatic locus (ee) prevents any pigment deposition regardless of the B locus, changing the 9:3:3:1 ratio to 9:3:4. In dominant epistasis, a single dominant allele at one locus can suppress the other gene, producing ratios such as 12:3:1. There are several epistasis types and each produces a characteristic modified ratio.

Gene linkage occurs when two genes are located close together on the same chromosome and tend to be inherited together rather than independently. In a dihybrid cross with linked genes, parental combinations of alleles appear more frequently than predicted by independent assortment, and recombinant combinations appear less frequently. The testcross is the standard method for detecting linkage because departures from a 1:1:1:1 ratio are easy to measure.

Incomplete dominance in either or both genes adds additional phenotype classes beyond four, because heterozygotes express an intermediate phenotype distinct from either homozygote. With incomplete dominance at both loci, a cross between two double heterozygotes can produce up to nine distinguishable phenotype classes.

Codominance similarly increases the number of phenotype classes, because both alleles are expressed simultaneously in heterozygotes. The ABO blood group system involves codominance between the I^A and I^B alleles, and crosses involving this locus alongside a second gene can produce complex patterns that require careful application of dihybrid analysis.

Common Mistakes in Dihybrid Cross Problems

Forgetting that each parent produces four gamete types. In a monohybrid cross, each parent contributes 2 gamete types. In a dihybrid cross, each parent produces 4 gamete types (AB, Ab, aB, ab for an AaBb parent). The 4x4 grid has 16 cells, not 4. Many students confuse this with a 2x2 grid and get the wrong total.

Miscounting phenotype classes by ignoring genotype variation within a class. All of AABB, AABb, AaBB, and AaBb share the A_B_ dominant phenotype. Forgetting to count all four of these genotypes as part of the 9/16 dominant class is a common source of error. Writing out the 4x4 grid in full, as this calculator does, prevents this mistake.

Assuming all dihybrid ratios are 9:3:3:1. The 9:3:3:1 ratio applies only when both parents are double heterozygotes (AaBb x AaBb) and both genes show complete dominance with independent assortment. Changing any of these conditions changes the ratio. Always identify the actual parental genotypes before predicting offspring ratios.

Confusing probability with certainty. A 9:3:3:1 ratio means that in a very large number of offspring, approximately 9/16 will show the A_B_ phenotype. In a small family of 4 offspring, any combination is possible. The ratio gives expected proportions over many trials, not guaranteed outcomes for specific families.

Not applying the product rule for independent genes. The probability of an offspring being both aa AND bb is the probability of being aa (1/4) multiplied by the probability of being bb (1/4) = 1/16, only if the genes are independent. Students who add instead of multiply (1/4 + 1/4 = 1/2) will get incorrect results. Always multiply probabilities for independent events.

Frequently Asked Questions

What is a dihybrid cross?

A dihybrid cross is a genetic cross between two individuals that are each heterozygous for two different genes (for example, AaBb x AaBb). It uses a 4x4 Punnett square with 16 cells to predict the genotype and phenotype frequencies among the offspring. The classic result is a 9:3:3:1 phenotype ratio when both genes show complete dominance and are inherited independently.

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

The 9:3:3:1 ratio is the expected phenotypic outcome when two double heterozygotes (AaBb x AaBb) are crossed and both genes show complete dominance with independent assortment. Out of 16 offspring: 9 show both dominant traits (A_B_), 3 show only the first dominant trait (A_bb), 3 show only the second dominant trait (aaB_), and 1 is doubly recessive (aabb).

How many cells does a dihybrid Punnett square have?

A dihybrid Punnett square is a 4x4 grid containing 16 cells. Each parent produces 4 types of gametes (AB, Ab, aB, ab for an AaBb individual), so the grid has 4 rows and 4 columns. This is in contrast to a monohybrid cross, which uses a 2x2 grid with 4 cells.

What is the difference between a monohybrid and dihybrid cross?

A monohybrid cross tracks one gene with a 2x2 Punnett square (4 cells) and produces a 3:1 phenotypic ratio when two heterozygotes are crossed. A dihybrid cross tracks two genes simultaneously with a 4x4 Punnett square (16 cells) and produces a 9:3:3:1 phenotypic ratio when two double heterozygotes are crossed. The dihybrid demonstrates Mendel's Law of Independent Assortment, which does not apply to a single-gene cross.

What is Mendel's Law of Independent Assortment?

Mendel's Law of Independent Assortment states that alleles for different genes are distributed to gametes independently of one another during meiosis. This law holds when the two genes are on different chromosomes (different linkage groups) or are far enough apart on the same chromosome that recombination makes them behave independently. The 9:3:3:1 dihybrid ratio is the phenotypic expression of independent assortment.

What is a testcross in a dihybrid cross?

A testcross is a cross between an individual with an unknown genotype and a doubly recessive individual (aabb). For a dihybrid testcross (AaBb x aabb), the expected offspring phenotype ratio is 1 A_B_ : 1 A_bb : 1 aaB_ : 1 aabb if the genes are independently assorting. Deviations from this 1:1:1:1 ratio indicate that the genes are linked on the same chromosome.

Why does the 9:3:3:1 ratio sometimes not appear?

The 9:3:3:1 ratio assumes complete dominance at both loci, independent assortment, and no epistasis. It breaks down when genes are linked (close together on the same chromosome), when one gene's product masks the expression of the other (epistasis), when dominance is incomplete (producing heterozygous phenotypes intermediate between the two homozygotes), or when codominance is present. Different combinations of these factors produce characteristic modified ratios such as 12:3:1, 9:3:4, or 9:7.

How do I calculate the probability of a specific genotype in a dihybrid cross?

For two independently assorting genes, multiply the probabilities from each gene's monohybrid cross. For example, the probability of AABB from AaBb x AaBb is: probability of AA from Aa x Aa (= 1/4) multiplied by probability of BB from Bb x Bb (= 1/4) = 1/16. The probability of AaBb is: probability of Aa (= 2/4 = 1/2) multiplied by probability of Bb (= 2/4 = 1/2) = 4/16 = 1/4, making it the most common genotype.

What is epistasis and how does it affect a dihybrid cross?

Epistasis occurs when one gene's alleles mask or modify the expression of a second gene. In recessive epistasis, being homozygous recessive at the epistatic locus (aa) prevents the second gene from being expressed at all, reducing the 9:3:3:1 ratio to a modified ratio such as 9:3:4. In dominant epistasis, a single dominant allele at one locus can override the second gene, producing ratios such as 12:3:1. Epistasis causes the phenotype classes to merge, giving fewer distinct phenotypes than the standard four.

What were Mendel's original dihybrid traits in peas?

Mendel used seed colour (Y for yellow dominant, y for green recessive) and seed shape (R for round dominant, r for wrinkled recessive) in his original dihybrid cross experiments. A cross between YYRR (yellow round) and yyrr (green wrinkled) plants produced only YyRr (yellow round) in the F1 generation. Crossing these F1 plants gave F2 offspring in a 9:3:3:1 ratio: 9 yellow round : 3 yellow wrinkled : 3 green round : 1 green wrinkled, which Mendel recorded across hundreds of plants.

Last reviewed: July 2, 2026

Frequently Asked Questions

What is a dihybrid cross?
A dihybrid cross is a genetic cross between two individuals that are each heterozygous for two different genes (for example, AaBb x AaBb). It uses a 4x4 Punnett square with 16 cells to predict the genotype and phenotype frequencies among the offspring. The classic result is a 9:3:3:1 phenotype ratio when both genes show complete dominance and are inherited independently.
What is the 9:3:3:1 ratio?
The 9:3:3:1 ratio is the expected phenotypic outcome when two double heterozygotes (AaBb x AaBb) are crossed and both genes show complete dominance with independent assortment. Out of 16 offspring: 9 show both dominant traits (A_B_), 3 show only the first dominant trait (A_bb), 3 show only the second dominant trait (aaB_), and 1 is doubly recessive (aabb).
How many cells does a dihybrid Punnett square have?
A dihybrid Punnett square is a 4x4 grid containing 16 cells. Each parent produces 4 types of gametes (AB, Ab, aB, ab for an AaBb individual), so the grid has 4 rows and 4 columns. This is in contrast to a monohybrid cross, which uses a 2x2 grid with 4 cells.
What is the difference between a monohybrid and dihybrid cross?
A monohybrid cross tracks one gene with a 2x2 Punnett square (4 cells) and produces a 3:1 phenotypic ratio. A dihybrid cross tracks two genes simultaneously with a 4x4 Punnett square (16 cells) and produces a 9:3:3:1 phenotypic ratio when two double heterozygotes are crossed.
What is Mendel's Law of Independent Assortment?
Mendel's Law of Independent Assortment states that alleles for different genes are distributed to gametes independently of one another during meiosis. This law holds when the two genes are on different chromosomes or are far enough apart on the same chromosome. The 9:3:3:1 dihybrid ratio is the phenotypic expression of independent assortment.
What is a testcross in a dihybrid cross?
A testcross is a cross between an individual with an unknown genotype and a doubly recessive individual (aabb). For a dihybrid testcross (AaBb x aabb), the expected offspring phenotype ratio is 1 A_B_ : 1 A_bb : 1 aaB_ : 1 aabb if the genes are independently assorting. Deviations from this 1:1:1:1 ratio indicate that the genes are linked on the same chromosome.
Why does the 9:3:3:1 ratio sometimes not appear?
The 9:3:3:1 ratio assumes complete dominance at both loci, independent assortment, and no epistasis. It breaks down when genes are linked, when one gene masks the other (epistasis), when dominance is incomplete, or when codominance is present. Different combinations produce modified ratios such as 12:3:1, 9:3:4, or 9:7.
How do I calculate the probability of a specific genotype in a dihybrid cross?
For two independently assorting genes, multiply the probabilities from each gene's monohybrid cross. For example, the probability of AABB from AaBb x AaBb is: probability of AA (1/4) x probability of BB (1/4) = 1/16. The probability of AaBb is 1/2 x 1/2 = 1/4, making it the most common genotype.
What is epistasis and how does it affect a dihybrid cross?
Epistasis occurs when one gene's alleles mask or modify the expression of a second gene. In recessive epistasis, homozygous recessive at the epistatic locus prevents the second gene from being expressed, reducing the 9:3:3:1 ratio to 9:3:4. In dominant epistasis, a dominant allele at one locus overrides the second gene, producing ratios such as 12:3:1.
What were Mendel's original dihybrid traits in peas?
Mendel used seed colour (yellow dominant over green) and seed shape (round dominant over wrinkled). A cross between YYRR and yyrr plants produced only YyRr in F1. Crossing these F1 plants gave F2 offspring in a 9:3:3:1 ratio: 9 yellow round : 3 yellow wrinkled : 3 green round : 1 green wrinkled.

Rate This Tool

Was this tool helpful?

Be the first to rate this tool

About the Author

S. Siddiqui

S. Siddiqui

Founder & Editor-in-Chief

LinkedIn Profile

S. Siddiqui is the founder and editor-in-chief of YourToolsBase, overseeing all content, tool accuracy, and editorial standards.

View full profile

Authoritative Sources

Formulas and data in this tool are based on guidelines from the above sources.