A Punnett square is the grid geneticists use to predict the offspring of a cross: the gametes of one parent run down the side, those of the other across the top, and each box is a possible child. This calculator builds the grid for you from the parents’ genotypes and counts every box, so you get the genotype ratio, the phenotype ratio and the probability of each outcome.
It handles monohybrid crosses (one gene, e.g. Aa × Aa), dihybrid crosses (AaBb × AaBb — Mendel’s famous 9:3:3:1), and trihybrid crosses with three genes and an 8 × 8 grid of 64 boxes. Choose incomplete dominance when heterozygotes have an intermediate or mixed appearance (pink snapdragons, roan cattle, AB blood group), and switch to X-linked for traits carried on the X chromosome, such as colour blindness or haemophilia, where sons and daughters inherit differently.
Ideal for biology homework, breeding plans and checking textbook answers.
How to use this calculator
- Keep Autosomal genes for ordinary genes.
- Type each parent’s genotype: two letters per gene, uppercase for the dominant allele. Examples:
Aa,AaBb,AABbcc. Both parents must use the same letters; their order does not matter. - Choose Complete dominance (A hides a) or Incomplete / co-dominance (AA, Aa and aa all look different).
- Read the phenotype and genotype ratios, the probabilities under the result, and the full Punnett grid in the table.
- For a sex-linked trait, select X-linked and pick the mother’s and the father’s genotype: the calculator gives the share of affected sons, affected daughters and carrier daughters.
The formula
Each parent passes on one allele of each gene, chosen at random (Mendel’s law of segregation). A parent heterozygous for genes therefore makes equally likely gametes, and the grid has boxes.
Genes on different chromosomes are inherited independently (law of independent assortment), so probabilities multiply — the product rule:
For a dihybrid cross the four phenotype classes are , hence 9:3:3:1. In the notation used here, “A_” means “at least one dominant A” (AA or Aa).
For X-linked recessive traits, a father gives his X to every daughter and his Y to every son, so a son’s phenotype depends only on the X he gets from his mother.
Worked example
Monohybrid cross Aa × Aa. Each parent makes A and a gametes. The four boxes give 1 AA : 2 Aa : 1 aa — and, since A is dominant, 3 A_ : 1 aa.
Dihybrid cross AaBb × AaBb. Each parent makes four gametes (AB, Ab, aB, ab), so the grid has 16 boxes holding 9 different genotypes. The phenotypes come out as 9 A_B_ : 3 A_bb : 3 aaB_ : 1 aabb, i.e. 9:3:3:1: a child shows both dominant traits with probability 9/16 = 56.25%.
Incomplete dominance Rr × Rr (red × white snapdragons giving pink): 1 RR : 2 Rr : 1 rr — one red, two pink, one white.
Common crosses at a glance
| Cross | Genotype ratio | Phenotype ratio |
|---|---|---|
| AA × aa | all Aa | all dominant |
| Aa × aa (test cross) | 1 Aa : 1 aa | 1 : 1 |
| Aa × Aa | 1 AA : 2 Aa : 1 aa | 3 : 1 |
| AaBb × aabb | 1 : 1 : 1 : 1 | 1 : 1 : 1 : 1 |
| AaBb × AaBb | 9 genotypes (1:2:1:2:4:2:1:2:1) | 9 : 3 : 3 : 1 |
| AaBbCc × AaBbCc | 27 genotypes | 27 : 9 : 9 : 9 : 3 : 3 : 3 : 1 |
A test cross with a homozygous recessive partner reveals whether a dominant-looking individual is AA (all offspring dominant) or Aa (half recessive).
Limits of the Punnett square
The grid assumes genes assort independently. Genes that are close together on the same chromosome are linked and tend to be inherited together, which distorts the ratios unless crossing-over separates them. Ratios are probabilities, not guarantees: a family of four children from Aa × Aa parents can easily have no recessive child. Many traits (height, skin colour) depend on many genes plus environment and do not follow simple Mendelian ratios.
Frequently asked questions
What does a 9:3:3:1 ratio mean?
In a dihybrid cross between two double heterozygotes, 9 of 16 offspring show both dominant traits, 3 show only the first, 3 only the second and 1 shows both recessive traits.
How do I find the gametes of a parent?
Take one allele from each gene in every possible combination. AaBb gives AB, Ab, aB and ab. A parent with n heterozygous genes makes 2ⁿ kinds of gamete.
What is the difference between genotype and phenotype ratios?
The genotype ratio counts allele combinations (AA, Aa, aa); the phenotype ratio counts what you can observe. With complete dominance, AA and Aa look the same, so 1:2:1 becomes 3:1.
Can a carrier mother have an affected son?
Yes. For an X-linked recessive trait, a carrier mother (XᴬXᵃ) and an unaffected father give each son a 50 % chance of being affected and each daughter a 50 % chance of being a carrier.
Does the calculator handle incomplete dominance and codominance?
Yes. Choose Incomplete / co-dominance: each genotype then has its own phenotype, so Aa × Aa gives 1:2:1 for both ratios.
Sources
- OpenStax Biology 2e, §12.1 Mendel’s Experiments and the Laws of Probability
- OpenStax Biology 2e, §12.2 Characteristics and Traits (Punnett squares, incomplete dominance, X-linked traits)
- OpenStax Biology 2e, §12.3 Laws of Inheritance (independent assortment, forked-line method)
Last updated: