How to use the Punnett Square Calculator
- Choose Autosomal or X-linked. For autosomal genes, also choose complete dominance, incomplete dominance or codominance.
- Type the two parent genotypes, keeping each gene's alleles together: Aa, AaBb or AaBbCc. For X-linked traits, type the mother as XBXb and the father as XBY.
- Read the phenotype ratio at the top (for example 9 : 3 : 3 : 1). Each colour in the Punnett square is one phenotype.
- Check the genotype and phenotype tables for the exact fractions and percentages, and the note below them for the Mendelian law the cross shows.
What a Punnett square shows
A Punnett square, devised by the British geneticist Reginald Punnett, lists the gametes of one parent along the top and the gametes of the other down the side. Each box is one equally likely fertilisation, so counting boxes gives the expected genotype and phenotype ratios of the offspring. A parent heterozygous for n genes makes 2n kinds of gamete, so a monohybrid square has 4 boxes, a dihybrid 16 and a trihybrid 64.
Mendel's laws (NCERT Class 12)
The NCERT Class 12 chapter Principles of Inheritance and Variation describes Mendel's experiments on the garden pea, Pisum sativum, and the laws drawn from them.
- Law of dominance: characters are controlled by discrete units called factors (genes), which occur in pairs. When the two alleles differ, one (dominant) is expressed and the other (recessive) is not.
- Law of segregation: the two alleles of a pair separate during gamete formation, so each gamete gets only one. This is why Aa × Aa gives 1 AA : 2 Aa : 1 aa.
- Law of independent assortment: in a cross involving two pairs of traits, the segregation of one pair is independent of the other. This gives 9 : 3 : 3 : 1 in a dihybrid F2. It only holds for genes that are not linked on the same chromosome.
Standard ratios to remember
| Cross | Genotype ratio | Phenotype ratio |
|---|---|---|
| Aa × Aa (complete dominance) | 1 : 2 : 1 | 3 : 1 |
| Aa × aa (test cross) | 1 : 1 | 1 : 1 |
| Aa × Aa (incomplete or codominance) | 1 : 2 : 1 | 1 : 2 : 1 |
| AaBb × AaBb | 1 : 2 : 1 : 2 : 4 : 2 : 1 : 2 : 1 | 9 : 3 : 3 : 1 |
| AaBb × aabb (dihybrid test cross) | 1 : 1 : 1 : 1 | 1 : 1 : 1 : 1 |
| AaBbCc × AaBbCc | 27 genotypes | 27 : 9 : 9 : 9 : 3 : 3 : 3 : 1 |
| XBXb × XBY | 1 : 1 : 1 : 1 | daughters all normal (half carriers); half the sons affected |
Worked example: dihybrid cross
Mendel crossed pure round yellow peas (RRYY) with wrinkled green ones (rryy). The F1 were all RrYy, round and yellow. Selfing the F1 means RrYy × RrYy. Each parent makes four gametes in equal numbers: RY, Ry, rY and ry, giving a 4 × 4 square with 16 boxes. Counting them:
- R_Y_ (round, yellow): 9 boxes
- R_yy (round, green): 3 boxes
- rrY_ (wrinkled, yellow): 3 boxes
- rryy (wrinkled, green): 1 box
The probability of a wrinkled green plant is 1/16 = 6.25 %. You can get the same answer without the square by multiplying single-gene probabilities: P(rr) × P(yy) = ¼ × ¼ = 1/16. This product rule is the quick exam method for trihybrid questions.
Incomplete dominance and codominance
In incomplete dominance the heterozygote has an intermediate phenotype. NCERT's example is flower colour in the snapdragon (dog flower, Antirrhinum): RR red × rr white gives Rr pink, and the F2 is 1 red : 2 pink : 1 white. In codominance both alleles are fully expressed together. The ABO blood group is the NCERT example: a person with IAIB makes both A and B antigens and has blood group AB. In both cases the phenotype ratio equals the genotype ratio, because every genotype looks different.
X-linked (sex-linked) inheritance
Red–green colour blindness and haemophilia are caused by recessive alleles on the X chromosome. Females (XX) need two copies to be affected; males (XY) need only one, because the Y chromosome has no matching allele. For a carrier mother and a normal father (XBXb × XBY), each son has a 50 % chance of being affected and each daughter a 50 % chance of being a carrier, with no affected daughters. An affected father passes the allele to all his daughters but to none of his sons.
Common mistakes
- Writing gametes with two alleles of the same gene. A gamete gets one allele per gene: AaBb makes AB, Ab, aB and ab, never Aa.
- Confusing genotype and phenotype ratios. Aa × Aa is 1 : 2 : 1 by genotype but 3 : 1 by phenotype.
- Applying 9 : 3 : 3 : 1 to linked genes. Linked genes give more parental types than expected.
- Reading ratios as guarantees. A 3 : 1 ratio is a probability for each offspring, not a promise that exactly one in four will be recessive.
For population-level allele frequencies, use the Hardy–Weinberg calculator. To see how a gene becomes a protein, try the DNA to protein translator.
Frequently asked questions
What is the 9:3:3:1 ratio?
How do you find gametes for a Punnett square?
Why is a monohybrid genotype ratio 1:2:1 but the phenotype ratio 3:1?
What is a test cross?
Can a colour-blind father have a colour-blind son?
How do you solve a trihybrid cross quickly?
Last reviewed November 2026. Results are estimates for information only — see our disclaimer.