Punnett Squares
Cross two parents for one or two traits and see the genotype and phenotype ratios of their offspring
Cross
Gene
Trait
Parent 1
Parent 2
Dominance
Offspring per breed
Phenotypes: expected
Ratio 3 : 1
- Purple3/4 = 75%
- White1/4 = 25%
Faint bar: expected share. Solid bar: offspring bred so far. Tap a box to trace its gametes.
- Phenotype ratio
- 3 : 1
- Distinct genotypes
- 3
- Offspring bred
- 0
- χ² (df 1, 5% cutoff 3.841)
- –
Tap any box to see which two gametes made it. Boxes with the same phenotype stay bright.
Genotypes: ratio 1 : 2 : 1
| Genotype | Phenotype | Expected | Observed |
|---|---|---|---|
| PP | purple | 1/4 (25%) | – |
| Pp | purple | 1/2 (50%) | – |
| pp | white | 1/4 (25%) | – |
Last 0 offspring
How a Punnett square works
A Punnett square predicts the offspring of a cross. Write the gametes one parent can make along the side and the gametes of the other parent along the top, then fill every box with the pair of alleles that meet there. Because each gamete is equally likely, every box has the same probability: 1/4 in a one-gene square and 1/16 in a two-gene square.
The genotype in a box is the pair of alleles; the phenotype is what you see. With complete dominance one dominant allele is enough, so PP and Pp plants both have purple flowers and only pp is white. With incomplete dominance the heterozygote is in between, like the pink Cc snapdragon between red CC and white cc.
Real offspring are a random sample. A pea pod with 8 seeds will not split exactly 6 : 2, but across hundreds of offspring the observed shares settle near the square's prediction.
Alleles and genotypes
Segregation
Independent assortment
The grid is a probability table
Key formulas
Monohybrid cross Aa × Aa
genotypes 1 AA : 2 Aa : 1 aa, phenotypes 3 dominant : 1 recessive
Gametes from n heterozygous genes
number of gamete types = 2ⁿ
- n
- number of genes for which the parent is heterozygous
Product rule for independent genes
P(A_ and B_) = P(A_) × P(B_) = 3/4 × 3/4 = 9/16, so (3 : 1) × (3 : 1) = 9 : 3 : 3 : 1
χ² goodness of fit
χ² = Σ (O − E)² / E
- O
- observed number of offspring in a phenotype class
- E
- expected number: total offspring × the class probability from the square
- df
- number of classes − 1; the 5% cutoff is 3.841 for df 1 and 7.815 for df 3
Worked example: Mendel's dihybrid cross
Mendel crossed pure round yellow peas (RRYY) with wrinkled green peas (rryy). Every F1 seed was RrYy and round yellow. He then let the F1 plants self-pollinate, which is the cross RrYy × RrYy, and counted 556 F2 seeds.
- 1Each RrYy parent makes 2² = 4 gamete types, RY, Ry, rY and ry, each with probability 1/4.
- 2The square has 4 × 4 = 16 equally likely boxes. Round needs at least one R (3/4) and yellow needs at least one Y (3/4).
- 3Product rule: round yellow 3/4 × 3/4 = 9/16, round green 3/4 × 1/4 = 3/16, wrinkled yellow 1/4 × 3/4 = 3/16, wrinkled green 1/4 × 1/4 = 1/16.
- 4Expected counts out of 556: multiply each probability by 556.
Mendel's F2 counts against the 9 : 3 : 3 : 1 prediction. χ² = 0.470 with df 3, far below the 5% cutoff of 7.815, so the data fit the prediction.
| Phenotype | Probability | Expected of 556 | Observed |
|---|---|---|---|
| Round, yellow | 9/16 | 312.75 | 315 |
| Round, green | 3/16 | 104.25 | 108 |
| Wrinkled, yellow | 3/16 | 104.25 | 101 |
| Wrinkled, green | 1/16 | 34.75 | 32 |
How to use this visualizer
- 1Pick a one-gene (monohybrid) or two-gene (dihybrid) cross, then a trait for each gene.
- 2Choose each parent's genotype. The gametes appear in the circles along the edges and the boxes fill in, coloured by phenotype.
- 3Switch a gene between complete and incomplete dominance and watch the heterozygous boxes change colour and the phenotype ratio change.
- 4Tap a box to see the two gametes that made it; boxes with the same phenotype stay bright.
- 5Press Breed offspring to sample random offspring. Compare the solid observed bars with the expected ticks, and watch χ² as the count grows.
Real-world applications
Genetic counselling
Plant and animal breeding
Blood groups
Checking real data
When the simple ratios fail
Practice problems
Problem 1: Tall and dwarf peas
Show solutionHide solution
Square: 1 TT : 2 Tt : 1 tt
Dwarf (tt): 1/4
Tall offspring are TT or Tt: 3 boxes, of which 2 are Tt
1/4 dwarf; 2/3 of the tall offspring are Tt
Problem 2: A mixed dihybrid cross
Show solutionHide solution
Gene A: Aa × aa gives 1/2 A_ and 1/2 aa
Gene B: Bb × Bb gives 3/4 B_ and 1/4 bb
P(aabb) = 1/2 × 1/4 = 1/8
A_B_ 3/8, A_bb 1/8, aaB_ 3/8, aabb 1/8
P(aabb) = 1/8; ratio 3 : 1 : 3 : 1
Problem 3: Did Mendel's seeds fit 3 : 1?
Show solutionHide solution
Total 7,324. Expected: 3/4 × 7,324 = 5,493 round and 1/4 × 7,324 = 1,831 wrinkled
χ² = (5,474 − 5,493)² / 5,493 + (1,850 − 1,831)² / 1,831
χ² = 361 / 5,493 + 361 / 1,831 = 0.066 + 0.197 = 0.263
df = 2 − 1 = 1; cutoff 3.841
χ² = 0.263 < 3.841: the data fit 3 : 1
Spotted a mistake on this page?
Wrong formula, broken animation or confusing wording. Tell us and we will fix it.