Punnett Square Calculator
A Punnett square pairs every gamete of one parent with every gamete of the other. For Aa × Aa that gives four squares, AA, Aa, Aa and aa: a 1 : 2 : 1 genotype ratio and a 3 : 1 phenotype ratio (see the square). The calculator also handles two and three genes, X-linked traits and blood types.
Make a Punnett square
Enter both parents. One to three genes, X-linked genes or blood types. The square updates as you type.
Letter pairs, capital letter for the dominant allele: Aa, AaBb or AaBbCc. For a gene on the X chromosome, write XAXa and XAY.
Each blood type comes with its genotype. Type A can be IAIA or IAi; if you are not sure, try both.
Check the genotypes
- Genotype ratio
- 0
- Squares
- 0
- Phenotypes
- 0
Punnett square
Phenotypes
Pick one to find its squaresGenotypes
| Genotype | Phenotype | Squares | Chance |
|---|
How to Use This Calculator
-
Enter both parents
Type each genotype as letter pairs, such as Aa or AaBb, or XBXb and XBY for a gene on the X chromosome. For blood types, switch to Blood type and pick each parent.
-
Say how each gene works
Every gene starts with complete dominance. Change it to incomplete dominance or codominance if the heterozygote looks different, and name the traits if you like.
-
Read the square
You get the phenotype and genotype ratios, the grid and the chance of each outcome. Pick a phenotype to see which squares it fills.
What a Punnett Square Shows
A Punnett square is a small grid that lists every way two parents can pass on their alleles. The British geneticist Reginald Punnett came up with it in the early 1900s, and it is still the first tool most biology students learn for predicting the offspring of a cross.
Each gene comes in versions called alleles, and every individual carries two of them, one from each parent. When a parent makes eggs or sperm (gametes), each gamete gets only one of the two. The square puts one parent's gametes along the side and the other parent's along the top, so each square is one possible child. Because every square is equally likely, counting squares gives you probabilities: two squares out of four is a 50% chance.
How to Do a Punnett Square
Take two pea plants that are both heterozygous for flower color, Pp × Pp, where purple (P) is dominant over white (p).
- Write the genotypes with a capital letter for the dominant allele and the same letter in lower case for the recessive one.
- Find the gametes. Each Pp parent makes two kinds, P and p, in equal numbers.
- Draw a grid with one parent's gametes down the side and the other's across the top. Two gametes on each side give a 2 × 2 grid with four squares.
- Fill each square with the allele at the start of its row and the allele at the top of its column: PP, Pp, Pp and pp.
- Count the squares. One PP, two Pp and one pp is a 1 : 2 : 1 genotype ratio. PP and Pp both look purple, so three squares are purple and one is white: a 3 : 1 phenotype ratio.
So each seedling has a 3 in 4 (75%) chance of purple flowers and a 1 in 4 (25%) chance of white ones.
Genotype Ratio and Phenotype Ratio
The genotype is the pair of alleles a child carries, such as AA, Aa or aa. The phenotype is what you can see or measure, such as flower color or blood type. Two children can have different genotypes and the same phenotype, which is why a Punnett square usually gives you two ratios.
The genotype ratio counts each genotype separately. AA and aa are homozygous (two copies of the same allele) and Aa is heterozygous (one of each). The phenotype ratio groups the genotypes that look the same. With complete dominance, AA and Aa look alike, so the 1 : 2 : 1 genotype ratio becomes a 3 : 1 phenotype ratio. A heterozygous child that looks dominant still carries the recessive allele and can pass it on, which is what people mean by a carrier.
These are the crosses that come up again and again in class and in homework:
| Cross | Squares | Phenotype ratio | Genotype ratio | What it shows |
|---|---|---|---|---|
| AA × aa | 4 | all dominant | 1 (all Aa) | Two pure lines: every child is a heterozygous carrier. |
| Aa × Aa | 4 | 3 : 1 | 1 : 2 : 1 | Mendel's classic monohybrid cross. |
| Aa × aa | 4 | 1 : 1 | 1 : 1 | The test cross for a heterozygous parent. |
| AA × Aa | 4 | all dominant | 1 : 1 | No recessive child is possible. |
| AaBb × AaBb | 16 | 9 : 3 : 3 : 1 | 1 : 2 : 1 : 2 : 4 : 2 : 1 : 2 : 1 | The classic dihybrid cross. |
| AaBb × aabb | 16 | 1 : 1 : 1 : 1 | 1 : 1 : 1 : 1 | A dihybrid test cross. |
| AaBbCc × AaBbCc | 64 | 27 : 9 : 9 : 9 : 3 : 3 : 3 : 1 | 27 genotypes | The trihybrid cross. |
Monohybrid, Dihybrid and Trihybrid Crosses
A monohybrid cross follows one gene, a dihybrid cross follows two and a trihybrid cross follows three. The calculator works out which one you mean from the genotypes you type, so Aa gives a 2 × 2 square, AaBb a 4 × 4 square and AaBbCc an 8 × 8 square.
The size grows fast because of Mendel's law of independent assortment: genes on different chromosomes are sorted into gametes separately. A parent that is AaBb can pass on A or a and, on its own, B or b, so it makes four kinds of gametes: AB, Ab, aB and ab. In general, a parent heterozygous for n genes makes 2n kinds of gametes, and two such parents fill a square of 4n cells.
Crossing two AaBb parents gives the famous 9 : 3 : 3 : 1 ratio. You can reach it without drawing all 16 squares: each gene alone gives a 3/4 chance of the dominant trait, and chances for independent genes multiply, so both dominant traits come up 3/4 × 3/4 = 9/16 of the time, and both recessive ones 1/4 × 1/4 = 1/16. That shortcut is how geneticists handle crosses with many genes, where the grid would be far too big to draw.
Incomplete Dominance and Codominance
Some genes have no allele that fully hides the other. In incomplete dominance, the heterozygote sits between the two parents. The textbook case is the snapdragon: red (RR) crossed with white (rr) gives pink (Rr) flowers. Cross two pink plants and you get red, pink and white in a 1 : 2 : 1 ratio, the same as the genotype ratio, because each genotype now looks different.
Show the pink snapdragon cross
In codominance, both alleles show up in full, side by side. Roan cattle are the usual example: a calf with one allele for red hair and one for white has a coat with both red and white hairs mixed together. The ratios work out the same as for incomplete dominance; only the description of the middle phenotype changes.
In the calculator, set each gene to complete, incomplete or codominant. You can mix them in a dihybrid cross, for example one gene with complete dominance and one with incomplete dominance, which turns the 9 : 3 : 3 : 1 pattern into 3 : 6 : 3 : 1 : 2 : 1.
Blood Type Punnett Square
ABO blood types are controlled by one gene with three alleles. IA and IB are codominant, and both are dominant over i. That gives four blood types from six genotypes: type A is IAIA or IAi, type B is IBIB or IBi, type AB is IAIB, and type O is ii.
Since type A and type B can each hide an O allele, a blood type alone does not tell you the genotype. A type A parent who is IAi and a type B parent who is IBi can have a child of any of the four types, each with a 25% chance.
The table lists which blood types are possible for a child, assuming the parents carry any hidden O allele:
| Parent 1 | Parent 2 | Child can be |
|---|---|---|
| A | A | A or O |
| A | B | A, B, AB or O |
| A | AB | A, B or AB |
| A | O | A or O |
| B | B | B or O |
| B | AB | A, B or AB |
| B | O | B or O |
| AB | AB | A, B or AB |
| AB | O | A or B |
| O | O | O |
Two type A parents can have a type O child only when both are IAi, and then the chance is 1 in 4 for each child. The Rh factor (the plus or minus in A+ or O−) comes from a different gene, so it needs a cross of its own.
X-Linked (Sex-Linked) Punnett Squares
Some genes sit on the X chromosome. Females have two X chromosomes (XX) and males have one X and one Y (XY), and the Y does not carry a copy of these genes. That is why X-linked recessive traits, such as red-green color blindness and hemophilia, are much more common in males: a single recessive allele on their only X is enough for the trait to show.
Write the allele as a letter after the X. A carrier mother is XBXb and a father with normal color vision is XBY. Their square gives four equally likely children: a daughter XBXB, a carrier daughter XBXb, a son XBY with normal vision and a color-blind son XbY. Each son has a 50% chance of being color blind, and no daughter is, although half of them carry the allele.
Show the color blindness cross
With the roles reversed, the result changes: a color-blind father (XbY) and a mother with two normal alleles (XBXB) have no color-blind children at all, but every daughter is a carrier, because she gets her father's only X. The calculator shows the chance for sons and for daughters separately, since that is usually the question being asked.
The Test Cross
A plant or animal with the dominant phenotype can be AA or Aa, and you cannot tell by looking. A test cross pairs it with a homozygous recessive partner (aa). If the unknown parent is AA, every offspring shows the dominant trait. If it is Aa, about half the offspring show the recessive trait, a 1 : 1 ratio. A single recessive offspring is enough to prove that the parent is heterozygous. Breeders still use this simple idea to check animals and plants before breeding from them.
What a Punnett Square Cannot Tell You
A Punnett square gives the chance for each child. A 3 : 1 ratio means each child has a 75% chance of the dominant trait, and every child is a fresh draw, like a coin toss. Real families and small litters often land far from the ratio; it only shows up reliably across large numbers of offspring, as in Mendel's thousands of pea plants.
The simple square also rests on a few assumptions that real genes do not always meet:
- Genes on the same chromosome tend to be inherited together (linkage), so they do not sort independently and the 9 : 3 : 3 : 1 ratio breaks down.
- Height, skin color and eye color are shaped by many genes and by the environment, so a one-gene square cannot predict them. Brown versus blue eyes is a common classroom example, but real eye color is more complicated.
- Genes can interact. In epistasis one gene masks another, which changes the ratios (for example 9 : 3 : 4 or 9 : 7).
- Some genes have more than two alleles. ABO is one, and the calculator handles it as its own mode.
For genetic conditions in a real family, a genetic counselor looks at the whole family history and, where needed, at genetic test results.
Sources
- MedlinePlus Genetics, What are the different ways a genetic condition can be inherited?, on dominant, recessive, X-linked and codominant inheritance.
- MedlinePlus Genetics, Color vision deficiency, on the X-linked inheritance of red-green color blindness.
- Dean L., Blood Groups and Red Cell Antigens, chapter 5: The ABO blood group, NCBI Bookshelf, 2005.
Frequently Asked Questions
How do you do a Punnett square?
Split each parent into the gametes it can make (Aa makes A and a), write one parent's gametes down the side of a grid and the other's across the top, then fill each square with the allele from its row plus the allele from its column. Count the squares: each one is an equal share of the chances. For Aa × Aa the four squares are AA, Aa, Aa and aa.
What is the phenotype ratio of Aa × Aa?
The phenotype ratio of Aa × Aa is 3 : 1. Three of the four squares (AA, Aa, Aa) carry at least one dominant A and look dominant, and one square (aa) looks recessive. The genotype ratio is 1 : 2 : 1, because the two Aa squares are the same genotype.
What does a 9 : 3 : 3 : 1 ratio mean?
It is the phenotype ratio of a dihybrid cross between two parents that are heterozygous for both genes (AaBb × AaBb). Out of 16 squares, 9 show both dominant traits, 3 show the first dominant and the second recessive, 3 show the reverse, and 1 shows both recessive traits. It only holds when the genes sort independently and dominance is complete.
Can two parents with blood type A have a child with type O?
Yes, but only if both parents carry the O allele, so both are IAi. Then each child has a 1 in 4 (25%) chance of being type O (ii) and a 3 in 4 chance of being type A. If either parent is IAIA, every child has at least one IA and is type A.
Why do X-linked recessive traits show up more often in boys?
Boys have one X chromosome and one Y. A recessive allele on their only X has no second copy to hide it, so it shows. Girls have two X chromosomes and usually need the recessive allele on both. With a carrier mother (XBXb) and an unaffected father (XBY), each son has a 50% chance of having the trait, and no daughter has it, though half of the daughters are carriers.
How big is a Punnett square for three genes?
A parent who is heterozygous for three genes makes 2 × 2 × 2 = 8 kinds of gametes, so the square is 8 × 8 with 64 squares. For AaBbCc × AaBbCc the phenotype ratio is 27 : 9 : 9 : 9 : 3 : 3 : 3 : 1. Many people skip the big grid and multiply the single-gene chances instead.
Does a Punnett square tell you how many children will have a trait?
No. It gives the chance for each child, not a count. A 3 : 1 ratio means each child has a 75% chance of the dominant trait, and every child is a new roll of the dice. A family with four children can easily have two, three or even all four with the recessive trait.