Type the genotypes of the two parents and this calculator draws the Punnett square, lists the gametes and gives the genotype and phenotype ratios of the offspring. It handles monohybrid crosses (one trait) and dihybrid crosses (two traits). Mendel's seven pea plant traits are built in as presets. It is made for the Heredity chapter of Class 10 Science and Principles of Inheritance and Variation in Class 12 Biology.
How a Punnett square works
Each body cell carries two copies (alleles) of a gene, one from each parent. A capital letter stands for the dominant allele and the small letter for the recessive allele, for example T for tall and t for dwarf. The dominant trait shows whenever at least one capital letter is present. The recessive trait shows only when both letters are small (tt).
- Write the gametes. By Mendel's Law of Segregation, the two alleles separate when gametes form, so every gamete carries only one allele of each gene. A plant Tt makes T and t gametes in equal numbers.
- For two genes, combine the alleles. By the Law of Independent Assortment, the alleles of one gene sort into gametes independently of the other gene. RrYy therefore makes four kinds of gametes: RY, Ry, rY and ry, each 1/4.
- Draw the grid. Gametes of one parent go along the top and those of the other parent down the side. Each box gets one allele from its row and one from its column.
- Count. All boxes are equally likely, so probability of a result = number of boxes with that result ÷ total boxes.
The number of kinds of gametes is 2n, where n is the number of heterozygous gene pairs. So a dihybrid F1 plant (n = 2) gives 22 = 4 gametes and the F2 square has 4 × 4 = 16 boxes.
Ratios to remember
- Monohybrid F2 (Tt × Tt): phenotype 3 : 1, genotype 1 : 2 : 1 (TT : Tt : tt).
- Monohybrid test cross (Tt × tt): 1 : 1.
- Dihybrid F2 (RrYy × RrYy): phenotype 9 : 3 : 3 : 1, genotype 1 : 2 : 1 : 2 : 4 : 2 : 1 : 2 : 1.
- Dihybrid test cross (RrYy × rryy): 1 : 1 : 1 : 1.
A test cross crosses a plant showing the dominant trait with a homozygous recessive plant. If all offspring show the dominant trait, the plant was homozygous (TT). If half show the recessive trait, it was heterozygous (Tt).
Worked example: Mendel's dihybrid cross
Question: A pure line pea plant with round yellow seeds (RRYY) is crossed with one having wrinkled green seeds (rryy). The F1 plants are self-pollinated. Find the phenotype ratio of the F2 generation.
Step 1 (F1): RRYY gives only RY gametes and rryy gives only ry gametes, so every F1 plant is RrYy, with round yellow seeds.
Step 2 (gametes of F1): RY, Ry, rY, ry, each 1/4.
Step 3 (F2 square): 4 × 4 = 16 boxes. Counting them:
- Round, yellow (at least one R and at least one Y): 9 boxes
- Round, green (at least one R, yy): 3 boxes
- Wrinkled, yellow (rr, at least one Y): 3 boxes
- Wrinkled, green (rryy): 1 box
So the F2 phenotype ratio is 9 : 3 : 3 : 1. As fractions, 9/16 (56.25%) round yellow and 1/16 (6.25%) wrinkled green. Only 1 box of the 16 (RRYY) is pure round yellow. The calculator above is set to this RrYy × RrYy cross, so you can check each box. Mendel's own count of F2 seeds was 315 round yellow, 108 round green, 101 wrinkled yellow and 32 wrinkled green, which is very close to 9 : 3 : 3 : 1.
If the F1 plant (RrYy) is instead test crossed with rryy, the rryy parent gives only ry gametes, so the square has 4 × 1 = 4 boxes: RrYy, Rryy, rrYy, rryy, a ratio of 1 : 1 : 1 : 1. Press "Test cross" in the calculator to see it.
Mendel's seven pairs of traits in pea
NCERT lists these contrasting traits Mendel studied in the garden pea. The letters in the calculator are only labels. If your textbook question uses different letters, change the letter box.
| Character | Dominant | Recessive |
|---|---|---|
| Stem height | Tall | Dwarf |
| Flower colour | Violet | White |
| Flower position | Axial | Terminal |
| Pod shape | Inflated | Constricted |
| Pod colour | Green | Yellow |
| Seed shape | Round | Wrinkled |
| Seed colour | Yellow | Green |
The calculator assumes complete dominance and genes that assort independently, as in Mendel's experiments. It does not cover incomplete dominance (such as the 1 : 2 : 1 flower colour ratio in snapdragon), co-dominance or linked genes, where the ratios are different.
Common mistakes
- Putting both alleles of the same gene in one gamete, for example writing Rr as a gamete. A gamete has only one allele of each gene.
- Missing gametes in a dihybrid cross. RrYy gives four gametes (RY, Ry, rY, ry), not two.
- Mixing up genotype and phenotype ratios. In the monohybrid F2, 3 : 1 is the phenotype ratio and 1 : 2 : 1 is the genotype ratio.
- Thinking a tall plant must be TT. A tall plant can be TT or Tt; a test cross with a dwarf (tt) plant tells which.
- Writing ratios that do not add up to the total number of boxes. 9 + 3 + 3 + 1 = 16, which checks the 4 × 4 square.
Practise with
- NCERT Solutions Class 10 Science Chapter 8 Heredity
- CBSE Class 10 Biology Heredity Worksheet Set 01
- NCERT Solutions Class 12 Biology Principles of Inheritance and Variation
- CBSE Class 12 Biology Principles of Inheritance and Variation Notes
- NCERT Exemplar Solutions Class 12 Biology Principles of Inheritance and Variation