Punnett Square Calculator

Enter two parent genotypes to draw the Punnett square, with genotype and phenotype ratios, probabilities and options for incomplete dominance, codominance and sex-linked traits.

Free, no sign-upRuns in your browserUpdated November 2026
Cross type
Capital = dominant allele, small = recessive. Keep each gene's two alleles together: Aa, AaBb, AaBbCc.
Phenotype ratio
—
Punnett square
Phenotypes
PhenotypeRatioProbability
Genotypes
GenotypeRatioProbability

How to use the Punnett Square Calculator

  1. Choose Autosomal or X-linked. For autosomal genes, also choose complete dominance, incomplete dominance or codominance.
  2. 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.
  3. Read the phenotype ratio at the top (for example 9 : 3 : 3 : 1). Each colour in the Punnett square is one phenotype.
  4. 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.

Probability of an outcome = boxes with that outcome ÷ total boxes Gamete types from a parent heterozygous for n genes = 2ⁿ

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

CrossGenotype ratioPhenotype ratio
Aa × Aa (complete dominance)1 : 2 : 13 : 1
Aa × aa (test cross)1 : 11 : 1
Aa × Aa (incomplete or codominance)1 : 2 : 11 : 2 : 1
AaBb × AaBb1 : 2 : 1 : 2 : 4 : 2 : 1 : 2 : 19 : 3 : 3 : 1
AaBb × aabb (dihybrid test cross)1 : 1 : 1 : 11 : 1 : 1 : 1
AaBbCc × AaBbCc27 genotypes27 : 9 : 9 : 9 : 3 : 3 : 3 : 1
XBXb × XBY1 : 1 : 1 : 1daughters 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?
It is the phenotype ratio of a dihybrid cross between two double heterozygotes (AaBb × AaBb) with complete dominance. Out of 16 boxes, 9 show both dominant traits, 3 show only the first, 3 show only the second and 1 shows both recessive traits.
How do you find gametes for a Punnett square?
Take one allele from each gene in every possible combination. AaBb gives AB, Ab, aB and ab. A parent heterozygous for n genes gives 2ⁿ gamete types, and homozygous genes contribute the same allele to every gamete.
Why is a monohybrid genotype ratio 1:2:1 but the phenotype ratio 3:1?
AA and Aa look the same when A is dominant, so the 1 AA and 2 Aa boxes merge into 3 dominant-looking offspring against 1 aa. With incomplete dominance or codominance, Aa looks different, so the phenotype ratio stays 1:2:1.
What is a test cross?
Crossing an individual that shows the dominant phenotype with a homozygous recessive (aa). If any offspring are recessive, the parent must be Aa; a 1:1 ratio is expected. If all offspring show the dominant trait, the parent is very likely AA.
Can a colour-blind father have a colour-blind son?
Not through him. A son gets his Y chromosome from his father and his X from his mother, so a colour-blind son inherits the allele from his mother. All daughters of a colour-blind father receive his X and are at least carriers.
How do you solve a trihybrid cross quickly?
Treat each gene separately and multiply. For AaBbCc × AaBbCc, the chance of A_B_C_ is ¾ × ¾ × ¾ = 27/64, and of aabbcc is ¼ × ¼ × ¼ = 1/64. The full 64-box square on this page confirms the 27:9:9:9:3:3:3:1 ratio.

Last reviewed November 2026. Results are estimates for information only — see our disclaimer.