What the calculator does
- Draws the full Punnett square for one to four genes: 4, 16, 64 or 256 cells.
- Lists every genotype and phenotype with its count, exact fraction and percentage.
- Handles complete dominance, incomplete dominance and codominance, set separately for each gene.
- Shows each step and, for two or more genes, checks the result with the product rule.
How a Punnett square works
Each parent makes gametes carrying one allele of every gene. For a parent that is heterozygous for n genes, there are 2ⁿ different gametes, all equally likely. The square pairs every gamete of one parent with every gamete of the other, so each cell is one equally likely outcome:
For independent genes the same answer comes from multiplying the single-gene probabilities, which is how the calculator checks the square:
Worked example 1: Mendel’s purple flowers (Pp × Pp)
Purple (P) is dominant over white (p). Each parent makes P and p gametes in equal numbers.
- The square has 4 cells: PP, Pp, Pp and pp.
- Genotype ratio: 1:2:1 (PP : Pp : pp).
- Phenotype ratio: 3:1, purple to white, because PP and Pp both look purple.
Mendel observed 705 purple and 224 white plants in this cross, a ratio of 3.15:1, close to the expected 3:1.
Worked example 2: a dihybrid cross (YyRr × YyRr)
Mendel’s pea seeds: yellow (Y) is dominant over green (y), and round (R) over wrinkled (r). Each parent makes four gametes: YR, Yr, yR and yr.
- The square has 16 cells and 9 different genotypes.
- The most common genotype is YyRr, in 4 of the 16 cells.
- Phenotype ratio: 9:3:3:1: yellow round, yellow wrinkled, green round and green wrinkled.
Worked example 3: incomplete dominance in snapdragons
In snapdragons, red (RR) and white (WW) flowers produce pink (RW) offspring. Crossing two pink plants gives a genotype ratio of 1:2:1, and because each genotype has its own colour, the phenotype ratio is also 1:2:1: red, pink and white.
Common mistakes
- Writing gametes with two alleles of the same gene. A gamete carries one allele per gene: YR, not YY.
- Missing gamete combinations in dihybrid crosses. A YyRr parent makes four gametes, not two.
- Confusing genotype and phenotype ratios. Aa × Aa gives 1:2:1 genotypes but 3:1 phenotypes.
- Assuming independent assortment for linked genes. Genes close together on the same chromosome are inherited together more often than the square predicts.
Practical applications
- Genetics coursework. Punnett squares are central to GCSE, A-level, AP and introductory university biology.
- Plant and animal breeding. Predicting the outcome of crosses.
- Genetic counselling. Estimating the chance that a child inherits a recessive condition when both parents are carriers (1 in 4 for each child).
Assumptions and limitations
The calculator assumes Mendelian inheritance: each gene has two alleles, the genes are autosomal and assort independently, every genotype is equally likely to survive, and genes do not affect each other’s phenotypes (no epistasis). It does not model linkage, sex-linked inheritance, multiple alleles such as the ABO blood group, or polygenic traits. All results are exact fractions computed with whole-number arithmetic. For allele frequencies across a whole population, use the Hardy–Weinberg calculator.