Skip to content

Punnett Square Calculator

Make a Punnett square for monohybrid, dihybrid, trihybrid or X-linked crosses, with genotype and phenotype ratios, probabilities and incomplete dominance.

Calculator Details

Phenotype ratio:9:3:3:1See results ↓

Autosomal genes (any chromosome but X and Y), or one gene on the X chromosome

One letter per gene, capital = dominant: Aa, AaBb, AaBbCc. X-linked: the mother, e.g. XAXa

Same genes as parent 1: AaBb, aabb. X-linked: the father, e.g. XAY or XaY

Your Results

Phenotype ratio: 9:3:3:1

Phenotype ratio

9:3:3:1

A_ B_ : A_ bb : aa B_ : aa bb

Genotype ratio

1:2:1:2:4:2:1:2:1

9 genotypes

Cross

Dihybrid

16 equally likely boxes

Chance of aabb

6.25%

Dihybrid cross AaBb × AaBb: phenotype ratio 9:3:3:1 and genotype ratio 1:2:1:2:4:2:1:2:1 over 16 equally likely boxes. The chance of aabb is 6.25%.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Offspring by phenotype

Offspring by phenotype

Detailed Breakdown

Punnett square: AaBb × AaBb (16 boxes, each 6.25%)
P1 \ P2ABAbaBab
ABAABBAABbAaBBAaBb
AbAABbAAbbAaBbAabb
aBAaBBAaBbaaBBaaBb
abAaBbAabbaaBbaabb
Phenotypes
PhenotypeBoxesFractionProbability
A_ B_ (dominant A, dominant B)99/1656.25%
A_ bb (dominant A, recessive b)33/1618.75%
aa B_ (recessive a, dominant B)33/1618.75%
aa bb (recessive a, recessive b)11/166.25%
Genotypes
GenotypeBoxesFractionProbability
AABB11/166.25%
AABb21/812.5%
AAbb11/166.25%
AaBB21/812.5%
AaBb41/425%
Aabb21/812.5%
aaBB11/166.25%
aaBb21/812.5%
aabb11/166.25%

How This Calculator Works

How it's calculated

Each parent passes one allele of each gene, each with probability ½ (segregation)

Genes sort independently, so a parent with n heterozygous genes makes 2ⁿ gametes (independent assortment)

Probability of an offspring type = boxes with that type ÷ total boxes

Your numbers: AaBb makes the gametes AB, Ab, aB, ab and AaBb makes AB, Ab, aB, ab. Combining every pair gives 4 × 4 = 16 equally likely boxes, with 9 genotypes (1:2:1:2:4:2:1:2:1) and 4 phenotypes (9:3:3:1).

Frequently Asked Questions

How do you make a Punnett square?

List each parent’s possible gametes (the alleles it can pass on), put one parent’s along the top and the other’s down the side, and fill each box with the combination. For Aa × Aa the gametes are A and a on each side, giving AA, Aa, Aa and aa: genotype ratio 1:2:1, phenotype ratio 3:1.

Why is a dihybrid cross 9:3:3:1?

Each AaBb parent makes four gametes (AB, Ab, aB, ab), so the square has 16 boxes. 9 show both dominant traits (A_B_), 3 only the first (A_bb), 3 only the second (aaB_) and 1 both recessive traits (aabb). It is the 3:1 ratio of each gene multiplied together: (3:1) × (3:1).

What is the difference between genotype and phenotype?

The genotype is the pair of alleles (AA, Aa or aa); the phenotype is the trait you see. With complete dominance AA and Aa look the same, so a 1:2:1 genotype ratio gives a 3:1 phenotype ratio. With incomplete dominance the heterozygote looks different and the phenotype ratio is also 1:2:1.

How do I enter genotypes?

Use one letter per gene, a capital for the dominant allele and lower case for the recessive one, with each gene’s two letters together: Aa, AaBb, AaBbCc. Both parents need the same genes. For X-linked traits enter the mother as XAXa and the father as XAY.

What is a test cross?

Crossing an individual with the dominant phenotype to a homozygous recessive one (aa or aabb) to find out its genotype. If AaBb × aabb gives four phenotypes in a 1:1:1:1 ratio, the first parent was heterozygous for both genes; if all offspring show both dominant traits, it was AABB.

How does X-linked inheritance work in a Punnett square?

Daughters get one X from each parent; sons get their mother’s X and their father’s Y. So a carrier mother (XAXa) and an unaffected father (XAY) have sons with a 50% chance of the recessive trait and daughters who are unaffected, half of them carriers. This is why conditions such as red-green colour blindness are more common in males.

What is a trihybrid cross?

A cross involving three genes, such as AaBbCc × AaBbCc. Each parent makes 8 gametes, so the square has 64 boxes, 27 genotypes and 8 phenotypes in the ratio 27:9:9:9:3:3:3:1.

Do real families follow Punnett square ratios exactly?

No. The square gives probabilities for each child, not a guaranteed split: a couple who are both Aa has a 25% chance of an aa child at every birth, whatever earlier children were. Ratios show up only across many offspring, as in Mendel’s thousands of pea plants.

Follows Mendel's laws of segregation and independent assortment as taught in OpenStax Biology 2e ch. 12–13 and Concepts of Biology §8.2. Assumes every gene sorts independently (no linkage or crossing-over), each gene has two alleles with one dominant (capital letter) and one recessive (lower case) unless you choose incomplete dominance or codominance, and all offspring survive equally. X-linked mode covers one gene on the X chromosome with an XX mother and an XY father. Not included: linked genes and recombination frequency, multiple alleles (for ABO blood groups use the blood type calculator), epistasis, polygenic traits, Y-linked and mitochondrial inheritance, and population frequencies (see the allele frequency calculator). For education only, not genetic counselling.

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).

  1. 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.
  2. The square. Four gametes along the top and four down the side give 16 boxes, each with a probability of 1/16 = 6.25%.
  3. 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.
  4. 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.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy