← SciSim / Biology

Punnett Square Calculator & Practice Game

🧬 Tier: Middle School → AP/Intro-College Biology
A Punnett square is a grid that crosses every gamete (sperm or egg) of one parent with every gamete of the other, so each box is one equally likely offspring genotype. Build a square for 1 to 4 traits (up to 16×16 = 256 boxes), including ABO blood types, incomplete dominance, codominance and X-linked (sex-linked) traits. The calculator lists each parent's gametes, fills the grid, and gives genotype and phenotype ratios and probabilities. Then test yourself in the practice game.

🧮 Punnett Square Calculator

Examples

Parent 1 gametes

Parent 2 gametes

Tap or hover over a box to see its genotype, phenotype and probability. Click a phenotype in the table to highlight its boxes.

Phenotype ratio

Genotype ratio

Probability finder (product rule)

Pick the phenotype you want for each trait. Because the genes assort independently, the probabilities multiply. The grid count is shown as a check.

🌱Want to see why these ratios happen? Plant seeds and watch alleles separate in the 3D Mendelian Genetics simulation. Open Mendelian Genetics (3D) →

🎯 Punnett Square Practice Game

Score 0/0 · Streak 0 · Best 0
Loading a question…

How to type genotypes: Aa, AA, aa · blood types IAi, IAIB, ii · sex-linked XBXb, XbY. The order of the two alleles does not matter.

📝 How to Do a Punnett Square (Step by Step)

1 trait → 2×24 boxes, e.g. Aa × Aa
2 traits → 4×416 boxes, dihybrid, 9:3:3:1
3 traits → 8×864 boxes, trihybrid
4 traits → 16×16256 boxes, tetrahybrid

Example: two pea plants that are both heterozygous for seed shape, Rr × Rr (R = round, dominant; r = wrinkled, recessive).

  1. Write each parent's genotype. Each parent has two alleles for the gene: Rr and Rr.
  2. Find each parent's gametes. In meiosis the two alleles separate, so each gamete carries one allele: R or r, each with probability 1/2. A homozygous parent (RR) makes only one kind of gamete.
  3. Draw the grid. Put one parent's gametes along the top and the other parent's gametes down the side. One gene with two kinds of gamete per parent gives a 2×2 grid.
  4. Fill each box. Combine the allele at the top of the column with the allele at the start of the row: RR, Rr, Rr, rr. Write the dominant (capital) letter first.
  5. Count genotypes. 1 RR : 2 Rr : 1 rr. This is the genotype ratio, 1:2:1.
  6. Turn genotypes into phenotypes. RR and Rr are round, rr is wrinkled: 3 round : 1 wrinkled. Each box is 1/4 = 25% of the offspring, so the chance of a wrinkled seed is 1/4.

Punnett square for 2 traits (dihybrid cross)

For RrYy × RrYy, each parent makes four gametes: RY, Ry, rY, ry. Pick one allele from each gene, in every combination (the FOIL trick: first, outer, inner, last). The grid is 4×4 = 16 boxes, with 9 genotypes and the phenotype ratio 9 : 3 : 3 : 1. Try it with the Dihybrid example above.

Punnett square for 3 or 4 traits

Each extra heterozygous gene doubles the number of gametes. With $n$ heterozygous genes each parent makes $2^n$ gametes, so the square has $2^n \times 2^n = 4^n$ boxes: 64 boxes for 3 traits and 256 for 4 traits. The same result comes much faster from the product rule: work out each gene on its own, then multiply. For AaBbCc × AaBbCc, the chance of an offspring showing all three recessive traits is $\tfrac14 \times \tfrac14 \times \tfrac14 = \tfrac{1}{64}$. The calculator shows both methods side by side.

Blood types (multiple alleles) and sex-linked traits

ABO blood type has three alleles: $I^A$ and $I^B$ are codominant, and $i$ is recessive to both. A parent still carries only two of them, so the square is built the same way. IAi × IBi gives types AB, A, B and O in a 1:1:1:1 ratio. For an X-linked trait, write the alleles on the X chromosome (XB, Xb). The father's other gamete is Y, which carries no copy. Read the results separately for daughters and sons.

📊 Punnett Square Ratio Cheat Sheet

CrossGridGenotype ratioPhenotype ratio
Monohybrid Aa × Aa2×21 AA : 2 Aa : 1 aa3 : 1
Test cross Aa × aa2×11 Aa : 1 aa1 : 1
Homozygous AA × aa1×1all Aaall dominant
Dihybrid AaBb × AaBb4×49 genotypes (1:2:1:2:4:2:1:2:1)9 : 3 : 3 : 1
Dihybrid test cross AaBb × aabb4×11 : 1 : 1 : 11 : 1 : 1 : 1
Trihybrid AaBbCc × AaBbCc8×827 genotypes27 : 9 : 9 : 9 : 3 : 3 : 3 : 1
4 traits AaBbCcDd × AaBbCcDd16×1681 genotypes16 phenotypes, 81 : 27×4 : 9×6 : 3×4 : 1
Incomplete dominance Rr × Rr2×21 : 2 : 11 red : 2 pink : 1 white
Codominance Cc × Cc (roan cattle)2×21 : 2 : 11 red : 2 roan : 1 white
Blood type IAi × IBi2×21 : 1 : 1 : 11 AB : 1 A : 1 B : 1 O
X-linked XBXb × XBY2×21 : 1 : 1 : 1daughters all unaffected (half carriers); sons 1 unaffected : 1 affected
Quick formulas for $n$ genes, each heterozygous in both parents (complete dominance): gametes per parent $=2^n$, boxes $=4^n$, different genotypes $=3^n$, different phenotypes $=2^n$. The chance of the all-recessive offspring is $\left(\tfrac14\right)^n$.

💡 The Idea, Step by Step

Start — two coins

Toss two coins together. There are four equally likely outcomes: heads-heads, heads-tails, tails-heads, tails-tails. A Punnett square is the same idea. Each parent “tosses” one of their two alleles into each sperm or egg, and the grid lists every way two of those tosses can meet. Because every box is equally likely, counting boxes gives probabilities.

Build — alleles, genotype, phenotype

A gene comes in versions called alleles. Your two alleles are your genotype (AA, Aa or aa). What you can see or measure is the phenotype. If one copy of a dominant allele is enough to show its trait, AA and Aa look the same and only aa shows the recessive trait. That is why a 1:2:1 genotype ratio becomes a 3:1 phenotype ratio. Mendel reported 5,474 round and 1,850 wrinkled pea seeds in 1866, a ratio of 2.96 : 1.

Deepen — meiosis, independent assortment and the product rule

The two alleles of a gene separate in meiosis (the law of segregation). Genes on different chromosomes are sorted into gametes independently of each other (the law of independent assortment). So a dihybrid square is two monohybrid squares multiplied: $\left(\tfrac34 + \tfrac14\right)^2$ expands to $\tfrac{9}{16}+\tfrac{3}{16}+\tfrac{3}{16}+\tfrac{1}{16}$, which is the 9:3:3:1 ratio. With $n$ genes you get $2^n$ gametes and a $4^n$-box square. Real genetics adds twists that still fit in the square: incomplete dominance and codominance give a third phenotype, multiple alleles (ABO) give four blood types, and X-linked genes make sons and daughters inherit differently because sons get their only X from their mother. Genes close together on the same chromosome are linked and break the independence assumption. This calculator assumes no linkage.

Try this in the calculator

1) Load Dihybrid 9:3:3:1. Change one parent to rr yy and watch it become a 1:1:1:1 test cross. 2) Load Sex-linked. Set the father to XbY and see that every daughter is affected or a carrier, while the sons' outcome depends only on the mother. 3) Load 4 traits and use the probability finder to get the chance of all four recessive traits (1/256). Then find those boxes in the 16×16 grid.

❓ FAQ

What is a Punnett square?

A Punnett square is a grid used to predict the possible genotypes and phenotypes of offspring from a cross. One parent's gametes go along the top, the other's down the side, and each box is one equally likely combination. It is named after the British geneticist Reginald C. Punnett, who devised it in the early 1900s.

Key takeaway: each box is one equally likely offspring, so counting boxes gives probabilities.
How do you do a Punnett square for 2 traits (a dihybrid cross)?

List each parent's four possible gametes by taking one allele from each gene in every combination (for AaBb: AB, Ab, aB, ab). Put them on a 4×4 grid, fill in the 16 boxes, then count. Two parents heterozygous for both genes give 9 genotypes and a 9:3:3:1 phenotype ratio.

Key takeaway: 2 heterozygous traits → 4 gametes per parent → 16 boxes → 9:3:3:1.
How big is a Punnett square for 3 or 4 traits?

With n heterozygous genes each parent makes 2n gametes, so the grid is 2n × 2n. Three traits need an 8×8 grid (64 boxes) and four traits need a 16×16 grid (256 boxes). A homozygous gene adds no extra rows. For large crosses the product rule is faster: multiply the single-gene probabilities.

Key takeaway: 3 traits = 64 boxes, 4 traits = 256 boxes, or multiply the single-gene probabilities.
What is a gamete in a Punnett square?

A gamete is a sperm or egg cell. It carries only one allele of each gene because the two alleles separate during meiosis. In a Punnett square the gametes are the labels along the top and side of the grid, and each box joins one gamete from each parent.

Key takeaway: gametes have one allele per gene; they are the row and column labels.
What is the difference between a genotype ratio and a phenotype ratio?

The genotype ratio counts the allele combinations (for Aa × Aa: 1 AA : 2 Aa : 1 aa). The phenotype ratio counts the visible traits. With complete dominance AA and Aa look the same, so the phenotype ratio is 3 : 1. With incomplete dominance or codominance the heterozygote looks different, so both ratios are 1 : 2 : 1.

Key takeaway: genotype = allele pairs, phenotype = appearance; dominance decides how they map.
How do you do a Punnett square for blood types (3 alleles)?

ABO blood type is controlled by three alleles: IA, IB and i. IA and IB are codominant and both are dominant to i. Each person carries two of them, so each parent still gives one allele per gamete and the square stays 2×2. For example, IAi × IBi gives 1/4 each of types AB, A, B and O.

Key takeaway: many alleles in the population, but only two per person, so the grid is still 2×2.
How do sex-linked (X-linked) Punnett squares work?

Write the alleles as superscripts on the X chromosome, such as XB and Xb. The father's gametes are one X and one Y, and the Y carries no copy of the gene. Read daughters (XX) and sons (XY) separately. A carrier mother XBXb and an unaffected father XBY have unaffected daughters (half of them carriers), and half of their sons are affected. This is the pattern of red-green colour blindness and haemophilia.

Key takeaway: sons get their X from their mother, so X-linked recessive traits show up mostly in males.
Is a “Mendel square” the same as a Punnett square?

Yes. People sometimes call it a Mendel square, a Mendel box or an allele chart, but the standard name is Punnett square. Gregor Mendel found the ratios in pea-plant experiments that he published in 1866. The grid itself was introduced later by Reginald Punnett as a way to show Mendel's rules.

Key takeaway: same tool; Mendel found the ratios, Punnett drew the square.
Why don't real families match the Punnett square exactly?

A Punnett square gives probabilities, not guaranteed counts. Each child is an independent event, like a new coin toss, so a family of four can easily have zero or three children with a 1/4-chance trait. Ratios only come close to the prediction in large numbers of offspring, as in Mendel's thousands of peas. Linkage, many genes acting together, and the environment can also change the outcome.

Key takeaway: the square predicts chances for each child, not exact family counts.

⚠️ Misconceptions & Common Errors

❌ “A 3:1 ratio means exactly 3 of every 4 offspring show the dominant trait.”✅ It means each offspring has a 3/4 chance. Small families vary a lot; only large samples approach 3:1. Mendel's 7,324 seeds gave 2.96 : 1, not exactly 3 : 1.🔍 Probabilities, not quotas. Source: Mendel, G. (1866) Versuche über Pflanzen-Hybriden.
❌ “They already have three children with the dominant trait, so the next one will be recessive.”✅ Every child is an independent event. The chance for the next child is still exactly what the square says (for example 1/4), whatever happened before. This is the gambler's fallacy.🔍 Each box is a fresh coin toss for every child.
❌ “Dominant traits are the most common ones.”✅ Dominance only describes how two alleles interact in one person. How common a trait is depends on how common its allele is in the population. Huntington's disease and many forms of polydactyly are dominant but rare.🔍 Dominant ≠ frequent. Hardy (1908, Science 28:49–50) showed that a dominant allele does not become common just because it is dominant.
❌ “A father passes his X-linked trait to his sons.”✅ Fathers give their Y chromosome to sons and their X to daughters. An affected father has carrier daughters and unaffected sons (if the mother is not a carrier). Sons inherit X-linked traits from their mothers.🔍 First shown with white-eyed fruit flies by T. H. Morgan (1910, Science 32:120–122).
❌ “Every trait can be predicted with a Punnett square.”✅ Punnett squares work for single genes with clear alleles, or several unlinked genes. Height, skin colour and most common diseases depend on many genes plus the environment. Genes close together on one chromosome are linked and do not assort independently.🔍 Good for Mendelian traits; limited for polygenic, linked or environment-driven traits.