Punnett Squares

Cross two parents for one or two traits and see the genotype and phenotype ratios of their offspring

Beginner

Cross

Gene

Trait

Parent 1

Parent 2

Dominance

Offspring per breed

Parent 2: Pp (purple)Parent 1: Pp (purple)×PpPpPPpurplePppurplePppurpleppwhite

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

GenotypePhenotypeExpectedObserved
PPpurple1/4 (25%)–
Pppurple1/2 (50%)–
ppwhite1/4 (25%)–

Last 0 offspring

Press Breed offspring to sample random 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

A diploid organism carries two alleles of each gene, one from each parent. PP and pp are homozygous; Pp is heterozygous.

Segregation

Mendel's first law: the two alleles separate during meiosis, so each gamete carries just one of them, each with probability 1/2.

Independent assortment

Mendel's second law: genes on different chromosomes sort into gametes independently, so RrYy makes RY, Ry, rY and ry in equal shares.

The grid is a probability table

Gametes of one parent label the rows and the other the columns. Every box is equally likely, so counting boxes gives probabilities.

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.

  1. 1
    Each RrYy parent makes 2² = 4 gamete types, RY, Ry, rY and ry, each with probability 1/4.
  2. 2
    The 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).
  3. 3
    Product 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.
  4. 4
    Expected 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.

PhenotypeProbabilityExpected of 556Observed
Round, yellow9/16312.75315
Round, green3/16104.25108
Wrinkled, yellow3/16104.25101
Wrinkled, green1/1634.7532

How to use this visualizer

  1. 1
    Pick a one-gene (monohybrid) or two-gene (dihybrid) cross, then a trait for each gene.
  2. 2
    Choose each parent's genotype. The gametes appear in the circles along the edges and the boxes fill in, coloured by phenotype.
  3. 3
    Switch a gene between complete and incomplete dominance and watch the heterozygous boxes change colour and the phenotype ratio change.
  4. 4
    Tap a box to see the two gametes that made it; boxes with the same phenotype stay bright.
  5. 5
    Press 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

Two carriers of a recessive condition such as cystic fibrosis have a 1/4 chance with each child of an affected child, and a 1/2 chance of a carrier.

Plant and animal breeding

Breeders use test crosses to find out whether a plant or animal with the dominant trait is hiding a recessive allele.

Blood groups

ABO blood type follows the same rules with three alleles; the A and B alleles are codominant and both are dominant to O.

Checking real data

A χ² test compares observed offspring counts with the Punnett square's expected ratio, as Mendel's own pea counts show.

When the simple ratios fail

The 9 : 3 : 3 : 1 ratio assumes the two genes assort independently. Genes close together on the same chromosome are linked and tend to be inherited together, so their parental combinations show up more often than the square predicts. Lethal alleles, epistasis and sex linkage also change the ratios.

Practice problems

Problem 1: Tall and dwarf peas

In peas, tall (T) is dominant to dwarf (t). Two Tt plants are crossed. What fraction of the offspring are dwarf? Of the tall offspring, what fraction are heterozygous?
Show 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

Cross AaBb × aaBb, with A dominant to a and B dominant to b. What is the probability of an aabb offspring, and what is the phenotype ratio?
Show 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?

In his monohybrid seed-shape cross Mendel counted 5,474 round and 1,850 wrinkled F2 seeds. Use a χ² test to decide whether these counts fit a 3 : 1 ratio at the 5% level.
Show 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.