Last updated: June 19, 2026
Dihybrid Cross Calculator
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Quick Answer
The Dihybrid Cross Calculator computes the full 4×4 Punnett square for any two-gene cross between dihybrid genotypes (e.g. AaBb × AaBb). It returns the phenotype ratio (the classic 9:3:3:1 for AaBb × AaBb), the percentage of offspring in each of the four phenotype classes (A_B_, A_bb, aaB_, aabb), and the count of distinct offspring genotypes. A test cross (AaBb × aabb) collapses the ratio to 1:1:1:1, while a true-breeding cross (AABB × aabb) gives a uniform F1. Results assume complete dominance and independent assortment — linkage and epistasis can distort the observed ratio.
A dihybrid cross between two heterozygotes — AaBb × AaBb — produces a 9 to 3 to 3 to 1 phenotype ratio. That's 56.25 percent showing both dominant traits, 18.75 percent each for the two single-dominant phenotypes, and 6.25 percent fully recessive. The Punnett square has sixteen equally likely cells and nine distinct genotypes.
Key Takeaways
- AaBb × AaBb gives the classic 9:3:3:1 phenotype ratio — 56.25% / 18.75% / 18.75% / 6.25%
- Each parent makes 4 gametes; the Punnett square has 4 × 4 = 16 equally likely cells
- There are 9 distinct genotypes for AaBb × AaBb but only 4 phenotype classes
- A test cross (×aabb) collapses the ratio to 1:1:1:1 and reveals an unknown parent's genotype
- 9:3:3:1 assumes complete dominance and independent assortment — linkage and epistasis distort it
- Letters are arbitrary: RrYy × RrYy gives the same 9:3:3:1 as AaBb × AaBb
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Formula
AaBb × AaBb → 9 A_B_ : 3 A_bb : 3 aaB_ : 1 aabb
Where:
- A_B_=Both dominant phenotype (A dominant + B dominant)
- A_bb=First dominant, second recessive phenotype
- aaB_=First recessive, second dominant phenotype
- aabb=Both recessive phenotype
Worked Examples
AaBb × AaBb — Mendel's classic 9:3:3:1
Two parents heterozygous at both loci. The textbook dihybrid cross.
- 1Each parent makes 4 gametes: AB, Ab, aB, ab
- 24 × 4 = 16 offspring combinations in the Punnett square
- 39 are A_B_ · 3 are A_bb · 3 are aaB_ · 1 is aabb
- 4Phenotype ratio = 9 : 3 : 3 : 1 (56.25% / 18.75% / 18.75% / 6.25%)
- 59 distinct genotypes: AABB, AABb, AAbb, AaBB, AaBb, Aabb, aaBB, aaBb, aabb
AaBb × aabb — the test cross (1:1:1:1)
Used to determine an unknown genotype: cross to a fully recessive parent.
- 1Parent 2 makes only one gamete type: ab
- 2Parent 1 (AaBb) still makes 4 gamete types: AB, Ab, aB, ab
- 3Offspring fall into 4 equally frequent classes — one for each parent-1 gamete
- 4Phenotype ratio = 1 : 1 : 1 : 1 (25% in each phenotype)
- 5If you observe a 1:1:1:1 ratio, the unknown parent was AaBb
AABB × aabb — uniform F1 generation
Two true-breeding parents — Mendel's starting point for any dihybrid study.
- 1Parent 1 makes only AB gametes; Parent 2 makes only ab
- 2All offspring are AaBb — heterozygous at both loci
- 3Phenotype ratio = 1 : 0 : 0 : 0 (100% show both dominant traits)
- 4Selfing this F1 (AaBb × AaBb) recovers the 9:3:3:1 in F2 — Mendel's law of independent assortment
AABb × AaBb — one gene homozygous, one segregating
Gene A is fixed dominant in parent 1; gene B segregates normally.
- 1Parent 1 gametes: AB, Ab (gene A always contributes A)
- 2Parent 2 gametes: AB, Ab, aB, ab
- 3Every offspring inherits at least one A → all show the dominant trait at gene A
- 4Gene B follows the standard 3:1 ratio (B_ vs bb)
- 5Result: 3 A_B_ : 1 A_bb : 0 : 0 — overall 75% / 25% / 0 / 0
Introduction
The Dihybrid Cross Calculator builds the full 4 × 4 Punnett square for any two-gene cross and reports the phenotype ratio, percentage in each phenotype class, and the number of distinct genotypes in the offspring. Type each parent as a four-letter genotype — uppercase letters for dominant alleles, lowercase for recessive (e.g. AaBb, AABb, aabb) — and the calculator follows Mendel's law of independent assortment to enumerate all 16 offspring combinations. The classic AaBb × AaBb cross gives the famous 9:3:3:1 ratio. For single-gene problems, use the Punnett Square Calculator; for three genes at once, see the Trihybrid Cross Calculator; and for population-level inheritance, try the Allele Frequency Calculator.
How the Dihybrid Cross Works
A dihybrid cross tracks two genes at once. Each parent has two alleles per gene, so each parent produces up to four gamete types through independent assortment. Pairing four gametes from one parent with four from the other creates a 4 × 4 Punnett square — sixteen equally likely offspring genotypes from which the phenotype ratio falls out.
Each parent's genotype has 4 characters: two alleles for gene 1, two for gene 2 (e.g.
AaBb)Gametes are formed by picking one allele per gene (independent assortment)
AaBb makes 4 gametes: AB, Ab, aB, ab — each with probability ¼
The 4 × 4 Punnett square gives 16 equally likely offspring
Group offspring into 4 phenotypes based on which gene shows the dominant allele (A_B_, A_bb, aaB_, aabb)
Reduce to the simplest integer ratio — for AaBb × AaBb that's 9 : 3 : 3 : 1
How to Use This Calculator (Step by Step)
Two genotype strings in, six numbers out. Casing carries the dominance information, so be careful with capitalisation.
Type Parent 1 as four letters: two for gene 1 (e.g.
Aa) and two for gene 2 (e.g.Bb).Type Parent 2 the same way — using the same two gene letters as Parent 1 (don't mix Aa+Bb with Cc+Dd).
Uppercase = dominant allele, lowercase = recessive. So
Aais heterozygous,AAis homozygous dominant,aais homozygous recessive.Read the phenotype ratio (e.g.
9:3:3:1) and the four phenotype percentages.The distinct genotypes count tells you how many unique offspring genotypes appear in the 16-cell square.
Letters are arbitrary —
RrYy × RrYy(Mendel's round/yellow peas) gives the exact same ratios asAaBb × AaBb.
Conventionally write the dominant trait first: Aa not aA, Bb not bB. The calculator accepts either order, but the convention makes it easier to spot heterozygotes at a glance.
Common Dihybrid Crosses & Their Ratios
Most genetics problems collapse to a handful of canonical dihybrid crosses. Memorising these makes hand-checking your calculator output trivial.
| Cross | Phenotype ratio | Distinct genotypes | Notes |
|---|---|---|---|
| AaBb × AaBb | 9 : 3 : 3 : 1 | 9 | F2 of a typical Mendel experiment — the classic |
| AaBb × aabb | 1 : 1 : 1 : 1 | 4 | **Test cross** — proves the dihybrid is heterozygous at both genes |
| AaBb × AABB | 1 : 0 : 0 : 0 | 4 | All offspring show both dominant traits; underlying genotypes vary |
| AABB × aabb | 1 : 0 : 0 : 0 | 1 | True-breeding × true-breeding — uniform F1 (all AaBb) |
| AABb × AABb | 3 : 1 : 0 : 0 | 3 | Gene A fixed dominant; only gene B segregates 3:1 |
| aaBb × aaBb | 0 : 0 : 3 : 1 | 3 | Gene A fixed recessive; only gene B segregates |
| AaBb × AaBB | 3 : 1 : 0 : 0 | 6 | Gene B always inherits at least one B → all B-dominant |
| AaBb × Aabb | 3 : 3 : 1 : 1 | 6 | Mixed — gene A segregates 3:1, gene B segregates 1:1 |
When you reduce by the GCD, ratios always come out as small integers because there are only 16 cells in the square.
Reading the Four Phenotype Classes
The Punnett square produces four phenotype groups. Underscores (_) mean 'either dominant or heterozygous' — i.e., shows the dominant trait.
| Phenotype class | Genotypes included | Trait shown | Example (Mendel's peas) |
|---|---|---|---|
| A_B_ | AABB, AABb, AaBB, AaBb | Both dominant traits | Round, yellow seeds |
| A_bb | AAbb, Aabb | First dominant, second recessive | Round, green seeds |
| aaB_ | aaBB, aaBb | First recessive, second dominant | Wrinkled, yellow seeds |
| aabb | aabb | Both recessive traits | Wrinkled, green seeds |
Independent Assortment & When the 9:3:3:1 Breaks Down
The 9:3:3:1 ratio assumes the two genes are on different chromosomes (or far apart on the same one) so they segregate independently during meiosis. When genes are physically linked, this assumption breaks and the observed ratio shifts toward parental combinations.
Independent assortment — the cornerstone assumption: the gamete you got at gene A doesn't influence what you got at gene B
Genetic linkage — genes on the same chromosome travel together unless crossing over separates them; closely-linked genes give a very different ratio
Epistasis — when one gene masks another's expression, four phenotype classes can collapse to three, two, or even one (e.g. 9:3:4 in coat colour)
Incomplete dominance — heterozygotes show an intermediate phenotype; AaBb × AaBb gives a 1:2:1:2:4:2:1:2:1 phenotype ratio
Lethal alleles — homozygous combinations that don't survive shift the observed ratio (e.g. 2:1 instead of 3:1)
This calculator assumes complete dominance and independent assortment. If you suspect linkage, run an actual cross and compare the observed ratio to the expected 9:3:3:1 with a chi-square test.
Worked Example — Round/Yellow Peas
Mendel's original dihybrid cross studied pea seed shape (R = round, dominant; r = wrinkled, recessive) and seed colour (Y = yellow, dominant; y = green, recessive). He crossed two heterozygotes (RrYy × RrYy) and recorded F2 offspring.
Each parent makes 4 gametes: RY, Ry, rY, ry — each at ¼ probability
Punnett square has 16 cells (4 gametes × 4 gametes)
9 cells are R_Y_ → round, yellow
3 cells are R_yy → round, green
3 cells are rrY_ → wrinkled, yellow
1 cell is rryy → wrinkled, green
Mendel's actual data from 556 seeds: 315 / 108 / 101 / 32 — within statistical error of 9:3:3:1
Common Mistakes to Avoid
Most dihybrid-cross errors trace back to a handful of repeat issues:
Using the same letter for both genes (e.g.
AaAainstead ofAaBb) — the calculator treats genes as different loci, so they need different lettersForgetting that
AaandaAdescribe the same heterozygote — order doesn't matter biologicallyMixing up phenotype and genotype ratios — 9:3:3:1 is phenotype; for AaBb × AaBb the genotype ratio is 1:2:1:2:4:2:1:2:1
Assuming 9:3:3:1 always holds — it requires independent assortment and complete dominance at both genes
Reading the Punnett square as a 4 × 4 grid of equal phenotypes — 16 cells, 4 phenotype groups, not four equal quarters
Dihybrid Cross Glossary
Quick definitions for the genetics terms used in this calculator and in textbooks:
| Term | Definition |
|---|---|
| Allele | One of two or more versions of a gene — e.g. A or a at the same locus. |
| Dominant (uppercase) | Allele whose trait shows up even in a heterozygote (Aa). |
| Recessive (lowercase) | Allele whose trait only appears when both copies are recessive (aa). |
| Genotype | The actual allele combination (e.g. AaBb, AABb). |
| Phenotype | The observable trait — what the genotype produces (round vs wrinkled). |
| Heterozygous | Two different alleles at one gene (Aa). Dihybrid means heterozygous at two genes. |
| Homozygous | Two identical alleles at one gene (AA or aa). |
| Gamete | Sex cell carrying one allele per gene — for AaBb: AB, Ab, aB, ab. |
| Punnett square | Grid of all possible offspring from crossing each parent's gametes. |
| Independent assortment | Mendel's second law: alleles of different genes segregate independently — the basis of the 9:3:3:1 ratio. |
| Test cross | Crossing an unknown genotype to a fully recessive parent (aabb) to reveal it. |
| F1 / F2 | First and second filial generations — F1 is the hybrid offspring, F2 is what you get when F1 self-pollinates or interbreeds. |
Quick Reference Card
Dihybrid Cross — Quick Reference
Quick reference • Dihybrid Cross Calculator
AaBb × AaBb → 9 A_B_ : 3 A_bb : 3 aaB_ : 1 aabb (out of 16 Punnett-square cells)Valid range: Two genes, each with one dominant + one recessive allele, segregating independently
Common Values
⚠ Watch Out
- •Both parents must use the same two gene letters (Aa+Bb, not Aa+Cc)
- •Casing matters: uppercase = dominant, lowercase = recessive
- •9:3:3:1 assumes independent assortment — linked genes give a different ratio
- •Complete dominance is assumed — incomplete dominance gives a 1:2:1 pattern at each gene
- •Epistasis can collapse the ratio to 9:3:4, 9:7, or 12:3:1 depending on the masking pattern
Pro Tips
- →Use a test cross (×aabb) to reveal an unknown parent's genotype from offspring ratios
- →Run a chi-square test on observed data to check whether your cross truly follows 9:3:3:1
- →Letters are arbitrary — pick mnemonics that match the trait (R/r for round vs wrinkled)
- →Genotype ratio for AaBb × AaBb is 1:2:1:2:4:2:1:2:1 — collapses to 9:3:3:1 phenotypes
FAQs
What is a dihybrid cross?
A dihybrid cross is a genetic cross that follows two genes at the same time, each with one dominant and one recessive allele. The classic example is AaBb × AaBb, which produces offspring in a 9:3:3:1 phenotype ratio under independent assortment and complete dominance.
Why does AaBb × AaBb give a 9:3:3:1 ratio?
Because each parent produces four gamete types (AB, Ab, aB, ab) at equal frequency. Crossing them gives 16 equally likely offspring. Nine show both dominant traits (A_B_), three show only the first dominant (A_bb), three show only the second (aaB_), and one is fully recessive (aabb). 9 + 3 + 3 + 1 = 16.
How do I write a parent's genotype for this calculator?
Use four letters: the first two for gene 1 and the last two for gene 2. Capitalise dominant alleles and lowercase recessive ones. Examples: AaBb (heterozygous at both genes), AABb (homozygous dominant at gene 1, heterozygous at gene 2), aabb (homozygous recessive at both). The two genes must use different letters.
What is a test cross and what ratio does it produce?
A test cross pairs an unknown genotype with a fully recessive parent (aabb) to reveal the unknown's gametes. If the unknown is AaBb, the offspring fall into four equally frequent phenotypes — a 1:1:1:1 ratio. If the unknown is AABB, all offspring show both dominant traits.
Is the 9:3:3:1 ratio always observed?
No. The 9:3:3:1 ratio assumes complete dominance and independent assortment. It can be distorted by genetic linkage (genes on the same chromosome), epistasis (one gene masking another), incomplete dominance, codominance, lethal alleles, or sex linkage. Real-world ratios should be tested against 9:3:3:1 with a chi-square statistic.
What's the difference between a dihybrid and a monohybrid cross?
A monohybrid cross follows one gene (e.g. Aa × Aa, giving the 3:1 ratio). A dihybrid cross follows two genes simultaneously (e.g. AaBb × AaBb, giving 9:3:3:1). For three genes, see our trihybrid cross calculator — that gives a 27:9:9:9:3:3:3:1 phenotype ratio.
How many distinct genotypes does AaBb × AaBb produce?
Nine: AABB, AABb, AAbb, AaBB, AaBb, Aabb, aaBB, aaBb, aabb. Their genotype ratio inside the 16-cell Punnett square is 1 : 2 : 1 : 2 : 4 : 2 : 1 : 2 : 1, which collapses to the 9:3:3:1 phenotype ratio when you group by dominant/recessive.
Can I use letters other than A and B?
Yes — the calculator is letter-agnostic. RrYy × RrYy (Mendel's round/yellow peas) or BbEe × BbEe (Labrador coat colour, ignoring epistasis) all produce the same ratio structure as AaBb × AaBb. Just keep the two genes on different letters.
What does the percentage in each phenotype class mean?
Each percentage is the expected long-run frequency of that phenotype in the offspring. For AaBb × AaBb: 56.25% A_B_ (9/16), 18.75% A_bb (3/16), 18.75% aaB_ (3/16), 6.25% aabb (1/16). Real samples deviate by chance — the larger the sample, the closer to the predicted percentages.