Uncategorized
Practice
Uncategorized

Punnett Square Calculator (Monohybrid, Dihybrid and Trihybrid)

Type in two parent genotypes and this Punnett square calculator draws the square, counts every genotype and phenotype, and walks through each step, for crosses with one, two or three traits.

Loading the punnett square calculator…

How to use the Punnett square calculator

  1. Write each parent’s genotype with one letter per gene: a capital letter for the dominant allele and a lowercase letter for the recessive one, two letters per gene. Aa is one gene; AaBb is two.
  2. Enter Parent 1 and Parent 2. Both parents need the same genes, but the order doesn’t matter: BbAa and AaBb are read the same way.
  3. Read the phenotype ratio at the top, then the square itself. Each box is one equally likely offspring.
  4. Check the phenotype and genotype tables for fractions and percents, and the step-by-step for how each number was found.

Worked example: a dihybrid cross that isn’t 9:3:3:1

Pea plants: round seeds (A) are dominant over wrinkled (a), and yellow seeds (B) are dominant over green (b). Cross a plant that is heterozygous for both traits (AaBb) with a wrinkled plant that is heterozygous for color (aaBb).

  • Parent 1 (AaBb) makes four kinds of gametes: AB, Ab, aB and ab.
  • Parent 2 (aaBb) makes aB, ab, aB and ab. It only has a to give for the first gene.
  • The 4 × 4 square has 16 boxes.
Phenotype Boxes out of 16 Fraction
Round, yellow (A_B_) 6 3/8
Round, green (A_bb) 2 1/8
Wrinkled, yellow (aaB_) 6 3/8
Wrinkled, green (aabb) 2 1/8

The phenotype ratio is 3:1:3:1, not the famous 9:3:3:1, because only one of the parents is heterozygous for seed shape. Try it in the calculator above: enter AaBb and aaBb.

How a Punnett square works

A Punnett square is a way of listing every possible pairing of one parent’s gametes with the other parent’s gametes. It rests on Mendel’s law of segregation: each parent carries two alleles for a gene, and each egg or sperm gets just one of them, with equal chance.

That is why a parent’s gametes go along the edges. An Aa parent puts A on one row and a on the other. Every box joins the allele at the left of its row with the allele at the top of its column, so every box is one offspring genotype with the same probability as every other box.

Two things follow from that:

  • A square predicts odds, not a family. A 3:1 ratio means each offspring has a 3 in 4 chance of the dominant phenotype. Four real offspring can easily come out 2:2 or 4:0, the same way four coin flips don’t always give two heads.
  • Every box counts once. Even when two gametes look identical (an AA parent gives A and A), they still take two rows. The calculator keeps those duplicates so the counts stay correct.

Genotype ratio vs. phenotype ratio

The genotype ratio counts allele combinations. The phenotype ratio groups the combinations that look the same. With complete dominance, one dominant allele is enough to show the dominant trait, so AA and Aa share a phenotype. That’s what the underscore means in the calculator: A_ is “A plus either allele.”

Cross Genotype ratio Phenotype ratio
Aa × Aa 1 AA : 2 Aa : 1 aa 3 : 1
Aa × aa (test cross) 1 Aa : 1 aa 1 : 1
AA × aa all Aa all dominant
AaBb × AaBb 1:2:1:2:4:2:1:2:1 9 : 3 : 3 : 1
AaBb × aabb (test cross) 1:1:1:1 1 : 1 : 1 : 1

The test cross rows are worth remembering. Crossing an organism that shows the dominant trait with a homozygous recessive one tells you its genotype: if any offspring show the recessive trait, the unknown parent must carry the recessive allele.

Dihybrid and trihybrid crosses: why the square grows so fast

Each heterozygous gene doubles the number of gametes a parent can make. Two parents that are heterozygous for every gene give a square with 4n boxes, where n is the number of genes.

Genes (traits) Gametes per parent Boxes Phenotype classes
1 (monohybrid) 2 4 2
2 (dihybrid) 4 16 4
3 (trihybrid) 8 64 8

A 64-box square is a lot to fill in by hand on a test, which is where the next idea helps.

The shortcut: one gene at a time

When genes assort independently, you can solve each gene on its own and multiply. For AaBb × AaBb, the chance of a round, green seed is the chance of round (3/4) times the chance of green (1/4): 3/16. That matches the 3 boxes out of 16 in the full square.

The same trick handles three genes. For AaBbCc × AaBbCc, the chance of an offspring showing all three recessive traits is 1/4 × 1/4 × 1/4 = 1/64. Textbooks usually write the trihybrid phenotype ratio as 27:9:9:9:3:3:3:1, grouping classes by how many dominant traits they show. The calculator lists the same eight classes gene by gene instead (A first, then B, then C), so it shows 27:9:9:3:9:3:3:1. The numbers are the same; only the order differs.

A good habit on exams is to use the shortcut, then check one or two numbers against a small square.

When these ratios don’t apply

The calculator assumes two things: complete dominance, and genes that sort into gametes independently. Real inheritance often breaks one or both.

  • Incomplete dominance and codominance. Red × white snapdragons give pink offspring, so a 1:2:1 genotype ratio is also a 1:2:1 phenotype ratio. See Non-Mendelian Inheritance.
  • Sex-linked traits. Genes on the X chromosome show up differently in males and females, so the square needs X and Y alleles. See Sex-Linked Traits and Pedigrees.
  • Linked genes. Genes close together on one chromosome tend to travel together, so dihybrid ratios drift away from 9:3:3:1, except where crossing over separates them.
  • Epistasis and polygenic traits. When one gene masks another, or many genes add up to one trait (height, skin color), the phenotype classes change.

On the AP® Biology exam, a ratio that doesn’t match the expected one is usually the point of the question: it’s the clue that genes are linked or that a chi-square test is coming.

Common mistakes

  • Putting both alleles of a gene into one gamete. A gamete gets one allele per gene: AaBb gives AB, not AaB.
  • Reporting the genotype ratio when the question asks for phenotypes, or the reverse.
  • Forgetting to reduce: 12:4 is 3:1.
  • Treating a predicted ratio as a guarantee for a small family.

Keep practicing

Punnett square FAQ

How do you read a Punnett square?

Each parent’s possible gametes run along one edge. Every box joins the gamete at the left of its row with the gamete at the top of its column, so each box is one equally likely offspring genotype.

What is the phenotype ratio of a dihybrid cross?

Crossing two parents that are heterozygous for both genes (AaBb × AaBb) gives a 9:3:3:1 phenotype ratio, as long as the genes assort independently and each shows complete dominance.

What is the difference between a genotype ratio and a phenotype ratio?

The genotype ratio counts each allele combination (AA, Aa, aa). The phenotype ratio groups combinations that look the same: AA and Aa both show the dominant trait, so Aa × Aa gives a 1:2:1 genotype ratio but a 3:1 phenotype ratio.

Does this work for incomplete dominance or sex-linked traits?

No. This calculator assumes complete dominance and genes on different chromosomes. Incomplete dominance, codominance, sex-linked and linked genes change the ratios.