Bbiochemtools

Punnett Square Calculator

A Punnett square generator for monohybrid and dihybrid crosses. Enter two parent genotypes and get the full square, the gametes, and the genotype and phenotype ratios. Works as a dihybrid cross calculator too, up to two genes.

×

Genotype ratio

Phenotype ratio

How a Punnett square works

Each parent passes one allele per gene to each offspring, so the first step is to list the possible gametes, every combination of one allele from each gene. A heterozygote for two genes (AaBb) makes four gametes: AB, Ab, aB, ab. Put one parent's gametes across the top and the other's down the side, then fill each box by combining that row and column. Counting the boxes gives the genotype ratio; grouping boxes that show the same trait (dominant if at least one capital allele is present for that gene) gives the phenotype ratio, which is where the classic 3:1 monohybrid and 9:3:3:1 dihybrid ratios come from.

Assumes complete dominance and independent assortment; uppercase letters are dominant alleles, lowercase recessive. Works for one or two genes.

Related tools: Hardy-Weinberg calculator · Blood type inheritance · X-linked inheritance · Chi-square genetic ratio · all biochem tools.

Worked example 1: AaBb × AaBb, the classic dihybrid cross (default)

Both parents are heterozygous for two genes. Each makes 4 gametes: AB, Ab, aB, ab, giving a 4×4, 16-box grid.

Genotype counts (9 classes): AaBb ×4, AABb ×2, AaBB ×2, Aabb ×2, aaBb ×2, AABB ×1, AAbb ×1, aaBB ×1, aabb ×1 (sums to 16) Phenotype counts (4 classes): A_B_ (both dominant) = 9/16 A_bb (A dominant only) = 3/16 aaB_ (B dominant only) = 3/16 aabb (both recessive) = 1/16 Ratio: 9 : 3 : 3 : 1

This is the textbook dihybrid ratio, reproduced exactly by the calculator's default AaBb × AaBb cross.

Worked example 2: Aa × aa, a test cross

One parent is heterozygous (Aa), the other homozygous recessive (aa), the classic "test cross" used to reveal an unknown genotype.

Aa makes gametes: A, a aa makes gametes: a (only one, since both alleles are the same) Grid (2×1): Aa, aa Genotype ratio: Aa : aa = 1 : 1 Phenotype ratio: A_ (dominant) : aa (recessive) = 1 : 1

A clean 1:1 split in the offspring is the signature of a test cross against a heterozygous unknown, if the unknown parent had instead been homozygous dominant (AA), every offspring would show the dominant phenotype with no recessive individuals at all.

FAQ

What is a test cross and why does it matter?
It breeds an unknown-genotype individual (dominant phenotype, so AA or Aa) with a homozygous recessive. All-dominant offspring means the unknown was AA; a roughly 1:1 split means it was Aa, shown in example 2 above.

Why does the phenotype ratio use notation like A_ instead of AA or Aa?
The underscore means "either allele." Since AA and Aa produce the same dominant phenotype, grouping them as A_ captures every genotype behind that phenotype without listing both.

Does this assume genes are on different chromosomes?
Yes, a standard Punnett square assumes independent assortment (genes on different chromosomes, or far apart on the same one). Genes physically close together are "linked" and need recombination frequency, not a simple Punnett square.

Where do 3:1 and 9:3:3:1 come from?
They're the phenotype ratios from crossing two heterozygotes. One gene (Aa × Aa) gives 3:1; two genes (AaBb × AaBb) gives 9:3:3:1, just 3:1 applied to each gene independently and multiplied together, as shown in example 1.

Practice problems

1. Cross AaBb × aabb (a dihybrid test cross). What genotype and phenotype ratios result?

Show answer
AaBb makes gametes: AB, Ab, aB, ab aabb makes only one gamete: ab Grid (4×1): AaBb, Aabb, aaBb, aabb, each occurring exactly once Genotype ratio: 1 : 1 : 1 : 1 Phenotype ratio: A_B_ : A_bb : aaB_ : aabb = 1 : 1 : 1 : 1

2. Why does a dihybrid test cross give a 1:1:1:1 ratio instead of 9:3:3:1?

Show answer
The 9:3:3:1 ratio comes specifically from crossing two double heterozygotes (AaBb × AaBb), where both parents contribute a mix of dominant and recessive alleles. In a test cross, one parent (aabb) can only contribute recessive alleles, so each offspring's phenotype is determined entirely by which gamete the AaBb parent contributed, and all four of AaBb's gamete types (AB, Ab, aB, ab) are equally likely, giving an even 1:1:1:1 split.

Working with blood types? Blood type Punnett square calculator handles ABO codominance and Rh, including the fact that type A can be AA or AO.

Two genes at once? Dihybrid cross calculator gives the full 16-box square, the gametes, and why AaBb x AaBb comes out 9:3:3:1.

Looking for eye colour? Eye color Punnett square runs the classic square and then explains why it does not reliably predict a real child, since eye colour is polygenic.

Want to practise? Punnett square practice problems generates a fresh worksheet with blank grids and a full answer key, printable either way.