Punnett Square Calculator: Monohybrid, Dihybrid and X-Linked Crosses
By FindMySum · Last reviewed
This Punnett square calculator draws the square for a genetic cross and counts the outcomes for you. Type the two parents' genotypes, such as AaBb × AaBb, and it lists each parent's gametes, fills in every box, and gives the genotype and phenotype ratios with the probability of each. It handles one gene (monohybrid), two genes (dihybrid) and three genes (trihybrid), lets you set each gene to complete dominance, incomplete dominance or codominance, and has an X-linked mode for traits carried on the X chromosome.
Worked example: AaBb × AaBb
The calculator opens with Mendel's classic dihybrid cross, two parents heterozygous for two genes, for example seed shape (A, round, dominant over a, wrinkled) and seed colour (B, yellow, over b, green).
- Gametes. Each parent passes one allele of each gene. Because the genes sort independently, each parent makes four kinds of gamete in equal numbers: AB, Ab, aB and ab.
- The square. Four gametes along the top and four down the side give 16 boxes, each with a probability of 1/16 = 6.25%.
- Genotypes. The 16 boxes contain 9 different genotypes. AABB, AAbb, aaBB and aabb appear once each; AABb, AaBB, Aabb and aaBb twice; AaBb four times. In order, that is 1:2:1:2:4:2:1:2:1.
- Phenotypes. With complete dominance, any box with at least one A is round and any with at least one B is yellow. Counting gives 9 round yellow, 3 round green, 3 wrinkled yellow and 1 wrinkled green: the famous 9:3:3:1 ratio.
The chance of a plant that is wrinkled and green (aabb) is 1 in 16, or 6.25%. Mendel's own counts from 556 seeds, 315:108:101:32, are close to the 9:3:3:1 prediction of 312.75:104.25:104.25:34.75.
The two laws behind the square
The Punnett square is a way of applying two rules Gregor Mendel inferred from his pea experiments.
Segregation. Each individual carries two alleles of every gene, one from each parent, and passes only one of them to each offspring, chosen at random. An Aa parent passes A half the time and a half the time.
Independent assortment. Genes on different chromosomes are passed on independently of each other, so knowing that a gamete got A tells you nothing about whether it got B or b. That is why AaBb makes four gametes in equal numbers.
Every box in the square is therefore equally likely, and the probability of any outcome is the number of boxes showing it divided by the total.
Dominance changes the phenotypes, not the genotypes
The genotypes in the square never depend on dominance; what changes is how they look.
- Complete dominance: one dominant allele is enough, so AA and Aa look the same. Aa × Aa gives 3 dominant to 1 recessive.
- Incomplete dominance: the heterozygote is in between. Red (RR) and white (rr) snapdragons give pink (Rr) offspring, and crossing two pinks gives red, pink and white in a 1:2:1 ratio.
- Codominance: both alleles show. A roan cow carries red and white hairs side by side.
Set the dominance for each gene in the advanced options and the phenotype table updates. A dihybrid cross with the first gene incompletely dominant gives six phenotypes instead of four: AA, Aa and aa in 3/16, 6/16 and 3/16 of the offspring with the dominant B trait, and in 1/16, 2/16 and 1/16 with bb.
X-linked traits
Some genes sit on the X chromosome. Females have two X chromosomes and males have an X and a Y, so the square looks different: the mother's gametes are her two X chromosomes, and the father's are his X and his Y. Daughters get an X from each parent; sons get their only X from their mother.
Take a mother who carries a recessive allele (XAXa) and an unaffected father (XAY). The four boxes are XAXA, XAXa, XAY and XaY. Every daughter is unaffected, half of them carriers; half the sons show the recessive trait. This is the pattern of red-green colour blindness and haemophilia A, and why these conditions are much more common in men. If the mother shows the trait (XaXa), every son shows it and every daughter is a carrier.
Three genes and beyond
A trihybrid cross AaBbCc × AaBbCc has 8 gametes per parent and 64 boxes. The 27 genotypes and 8 phenotypes follow the pattern 27:9:9:9:3:3:3:1, which is (3:1) multiplied by itself three times. With four genes the square would have 256 boxes, so geneticists switch to the product rule: work out each gene on its own and multiply the probabilities.
Limits of the model
The calculator assumes what Mendel's laws assume: genes that are not linked, two alleles per gene, no interaction between genes (epistasis), and offspring that survive equally whatever their genotype. Real traits such as height, skin colour and most diseases involve many genes and the environment. For the ABO blood groups, which have three alleles, use the blood type calculator instead.
More questions
Who invented the Punnett square?
Reginald Punnett, a British geneticist at Cambridge, introduced the diagram in the early 1900s to teach Mendel's results. Mendel himself, working in the 1860s, described his crosses with algebra rather than a grid.
Can I use the product rule instead of a Punnett square?
Yes, and for three or more genes it is faster. Work out each gene separately and multiply. For AaBbCc × AaBbCc, the chance of aabbcc is ¼ × ¼ × ¼ = 1/64, and the chance of showing all three dominant traits is ¾ × ¾ × ¾ = 27/64. The calculator's square gives the same numbers by counting boxes.
What does a ratio like 1:2:1 mean as a probability?
Add the parts to get the total (1 + 2 + 1 = 4) and divide each part by it: 1/4 (25%), 2/4 (50%) and 1/4 (25%). The calculator lists each genotype and phenotype as a fraction and a percentage.
Why don't linked genes follow 9:3:3:1?
Genes close together on the same chromosome tend to be inherited together, so parental combinations show up more often than independent assortment predicts, and recombinant ones less often. How much less depends on the distance between the genes, measured by the recombination frequency, which a simple Punnett square cannot show.
Is codominance the same as incomplete dominance?
No, although both give a 1:2:1 phenotype ratio in an Aa × Aa cross. In incomplete dominance the heterozygote is a blend (red and white snapdragons give pink). In codominance both alleles show fully (a roan cow has red and white hairs; AB blood carries both A and B antigens).
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.