Punnett Square Calculator
Punnett square calculator for monohybrid and dihybrid crosses: grid, genotype and phenotype ratios, probabilities and a test cross option, with steps.
Published
Last updated
How the Punnett Square Calculator Formula Works
A Punnett square lists every combination of one gamete from each parent. Each parent passes on one allele of each gene, and genes sort independently, so every box in the square is equally likely. With one gene the square is 2 × 2, with two genes it is 4 × 4, and with three genes it is 8 × 8.
Under complete dominance an uppercase allele hides its lowercase partner. So AA and Aa have the same phenotype. To find a probability you count the boxes in the class you care about and divide by the total number of boxes.
Ratios come from the same counts, divided by their greatest common divisor. Aa x Aa has a 1:2:1 genotype ratio and a 3:1 phenotype ratio. AaBb x AaBb has the 9:3:3:1 phenotype ratio.
chance of a class = boxes in that class / total boxes; total boxes = (2g gametes) × (2g gametes) for g genes- A, aDominant (uppercase) and recessive (lowercase) alleles of one gene.
- gNumber of genes in the cross, 1 to 3 here.
- boxesSquares in the grid, 4, 16 or 64.
- A, a
- n/a
- Dominant (uppercase) and recessive (lowercase) alleles of one gene.
- g
- n/a
- Number of genes in the cross, 1 to 3 here.
- boxes
- n/a
- Squares in the grid, 4, 16 or 64.
Using the Punnett Square Calculator
Enter parent 1 genotype (like aa or aabb)
Type the figure you already have, then press Calculate.
Enter test cross?
Choose from No, I will enter parent 2, Yes, parent 2 is homozygous recessive.
Enter parent 2 genotype (same letters)
Type the figure you already have, then press Calculate.
Read the result
Press Calculate to update the result. Until you do, the last result is dimmed and marked as out of date, so you always know which numbers belong to the values in the boxes.
A Real Worked Example
Cross two plants that are both AaBb, the classic dihybrid. Each parent makes four gametes, AB, Ab, aB and ab, so the square has 4 × 4 = 16 boxes. Counting the boxes gives 9 genotypes and four phenotype classes.
The phenotype ratio is 9:3:3:1. A child showing the dominant trait for both genes has 9 of 16 boxes, which is 56.25%. The fully recessive aabb has 1 of 16, or 6.25%.
A monohybrid cross
Two heterozygous parents, Aa x Aa, make gametes A and a. The four boxes are AA, Aa, Aa and aa, giving a genotype ratio of 1:2:1. AA and Aa look the same, so the phenotype ratio is 3:1.
The chance of the dominant trait is 3 of 4, or 75%, and the chance of the recessive trait is 25%.
A monohybrid test cross by hand
Cross Aa with aa. Parent 1 makes A and a, and parent 2 makes a and a. The boxes are Aa, Aa, aa and aa, so the genotype and phenotype ratios are both 1:1.
This is the pattern a test cross shows when the unknown parent is heterozygous: half the offspring show the dominant trait and half the recessive trait.
A dihybrid test cross
Turn on the test cross option with parent 1 as AaBb. Parent 2 becomes aabb, which makes only ab gametes. Each of the four AaBb gametes pairs with ab, so the 16 boxes collapse into four equally likely genotypes, four boxes each.
The genotype ratio is 1:1:1:1 and the phenotype ratio is 1:1:1:1. Each class has 25%. Because every combination is visible in the offspring, a test cross is a clean way to read out the unknown parent's gametes.
A parent that is homozygous for one gene
AABb x AaBb has a first parent that is AA, so the first gene never shows the recessive trait. The square still has 16 boxes because AA is listed as A and A, and the genotype counts come out as 2, 4, 2, 2, 4, 2, a ratio of 1:2:1:1:2:1.
The phenotype ratio is 3:1: 75% dominant for both genes, 25% recessive for the second gene only, and none fully recessive.
Three genes at once
AaBbCc x AaBbCc has eight gametes per parent, so 8 × 8 = 64 boxes, 27 genotypes and eight phenotypes. The grid is too wide to draw, but the counts are exact.
The phenotype ratio is 27:9:9:3:9:3:3:1. The chance of the dominant trait for all three genes is 27 of 64, or 42.1875%, and the fully recessive class is 1 of 64, or 1.5625%.
What Else to Know
How a Punnett square works
A Punnett square is a grid that shows every way two parents' gametes can combine. Each parent has two alleles for every gene, and a gamete (an egg or sperm cell) gets one of them. OpenStax Biology explains that equal segregation of alleles is the reason the square can predict offspring of parents with known genotypes.

Put one parent's gametes across the top and the other's down the side. Each box is one possible offspring genotype, and every box is equally likely. To get a probability, count the boxes of the type you want and divide by the total.
This Punnett square calculator does the bookkeeping. Enter two genotypes and it builds the gametes, fills the grid, and reports the genotype and phenotype ratios and probabilities. The solution view shows each stage in plain text.

Monohybrid crosses: one gene, a 2 x 2 square
A monohybrid cross follows one gene. The most famous case is Aa x Aa, where each parent makes A and a gametes. The four boxes are AA, Aa, Aa and aa, a 1:2:1 genotype ratio. Because the dominant allele hides the recessive one, AA and Aa look alike, and the phenotype ratio is 3:1.
The table of all six monohybrid crosses shows how the ratios change with the parents. AA x aa gives only Aa offspring. Aa x aa gives half Aa and half aa. Aa x Aa gives the 3:1 pattern that Mendel saw in his pea plants.

If a parent is homozygous, such as AA, both gametes carry the same allele. The square still has four boxes, which keeps the counts correct. The calculator also does the test cross version of this for you.
Dihybrid crosses: two genes, a 4 x 4 square
A dihybrid cross follows two genes at once, such as seed shape and seed color. Mendel's law of independent assortment says the alleles of different genes sort into gametes separately. So an AaBb parent makes four gametes in equal numbers: AB, Ab, aB and ab.

Four gametes per parent give a 4 × 4 square with 16 boxes. For AaBb x AaBb the phenotype ratio is 9:3:3:1, and the genotype counts are 1, 2, 1, 2, 4, 2, 1, 2, 1. OpenStax Biology shows the same 9:3:3:1 result for round yellow peas and notes that it collapses into two separate 3:1 ratios, one per gene.

A useful check: the chance of the dominant trait for both genes is 9/16, the product of 3/4 for each gene. Tables below show the 16-box grid, the gametes and the nine genotype classes.

Test crosses: finding an unknown genotype
An organism that shows the dominant trait could be AA or Aa. A test cross finds out which. Breed it with a homozygous recessive partner, aa. The partner can only pass on a, so each offspring's phenotype shows which allele the unknown parent passed on.
If the unknown parent is AA, every offspring is Aa and shows the dominant trait. If it is Aa, about half the offspring are aa and show the recessive trait (1:1). OpenStax Biology includes the test cross among the standard methods for working out genotypes.

In this calculator, set the test cross option to yes. Parent 2 is filled in as the homozygous recessive for the same genes as parent 1. For two genes, an AaBb parent in a test cross gives 1:1:1:1, since each gamete combination shows up equally.
Genotype and phenotype ratios and probabilities
The genotype ratio counts boxes by exact allele pair. The phenotype ratio counts boxes by how the trait looks. Both are reduced to the smallest whole numbers. For Aa x Aa that is 1:2:1 and 3:1.
Probabilities are the same counts divided by the total. In AaBb x AaBb the all-dominant class is 9 of 16 (56.25%) and the all-recessive class is 1 of 16 (6.25%). The calculator shows these, along with the chance of the most likely phenotype.

A ratio gives the odds for one offspring, not a prediction for a small family. If both parents are Aa, each child has a 25% chance of showing the recessive trait, and that is true for every child separately. Over a large number of offspring, the counts come close to the ratio.
How to use this Punnett square calculator
Type parent 1's genotype. Use uppercase for the dominant allele and lowercase for the recessive allele, and write one pair per gene: Aa for one gene, AaBb for two, AaBbCc for three. Spaces and separators like x are ignored. Parent 2 must use the same letters as parent 1, in any order.
Choose the test cross option if you want parent 2 to be homozygous recessive for the same genes. Then press calculate. The results show the chance of the most likely phenotype, the all-dominant and all-recessive chances, the number of classes and the number of boxes.
The full ratios and the grid appear in the solution view. The grid is drawn for one and two genes, and for three genes the calculator gives counts only because a 64-box grid is too wide to read. The calculator checks your input and explains what is wrong, such as a letter that appears only once.
What a Punnett square cannot do
A Punnett square models the simplest case: two alleles per gene, complete dominance, genes on different chromosomes. OpenStax Biology lists patterns that go beyond it, including incomplete dominance, codominance, recessive lethals, multiple alleles and sex linkage. This calculator does not handle them.
Human traits are mostly more complex than a single gene. Eye color, height and skin color involve several genes and other influences, so a simple square is a teaching model, not a forecast. Blood groups use three alleles. This page is a learning tool. It does not give medical, family or paternity answers, and anyone with a genetic health question should talk to a doctor or a genetic counselor.
The table of patterns beyond this calculator explains what changes in each case. Use it to see when a basic square stops applying.

Common mistakes and where to go next
The most common mistake is putting both alleles of a gene in one gamete. Each gamete carries one allele per gene, so Aa splits into A and a. Another is leaving out repeated gametes for a homozygous parent, which breaks the box counts. A third is counting AA, Aa and aa as three phenotypes when only two look different.
Check your answer by adding up: the boxes in all classes must equal the total, and the probabilities must sum to 100%. The mistakes table lists more.
Probabilities from a Punnett square are simple fractions of equally likely outcomes. For help with percentages, see the percentage calculator. If you are studying for a science exam, the AP Biology score calculator estimates your score from your section results. For animals, the dog gestation calculator and the horse gestation calculator estimate due dates.
Reference Tables
| Cross | Genotype ratio | Phenotype ratio | Dominant trait | Recessive trait |
|---|---|---|---|---|
| AA x AA | 1 | 1 | 100% | 0% |
| AA x Aa | 1:1 | 1 | 100% | 0% |
| AA x aa | 1 | 1 | 100% | 0% |
| Aa x Aa | 1:2:1 | 3:1 | 75% | 25% |
| Aa x aa | 1:1 | 1:1 | 50% | 50% |
| aa x aa | 1:1:1 | 1 | 0% | 100% |
| Gamete | Alleles passed on | Chance |
|---|---|---|
| AB | A for the first gene, B for the second | 25% |
| Ab | A for the first gene, b for the second | 25% |
| aB | a for the first gene, B for the second | 25% |
| ab | a for the first gene, b for the second | 25% |
| AB | Ab | aB | ab | |
|---|---|---|---|---|
| AB | AABB | AABb | AaBB | AaBb |
| Ab | AABb | AAbb | AaBb | Aabb |
| aB | AaBB | AaBb | aaBB | aaBb |
| ab | AaBb | Aabb | aaBb | aabb |
| Class | Description | Boxes of 16 | Probability |
|---|---|---|---|
| A_B_ | Dominant for both traits | 9 | 0.5625 (56.25%) |
| A_bb | Dominant first trait, recessive second | 3 | 0.1875 (18.75%) |
| aaB_ | Recessive first trait, dominant second | 3 | 0.1875 (18.75%) |
| aabb | Recessive for both traits | 1 | 0.0625 (6.25%) |
| Genotype | Boxes of 16 | Probability | Phenotype class |
|---|---|---|---|
| AABB | 1 | 0.0625 | A_B_ |
| AABb | 2 | 0.1250 | A_B_ |
| AAbb | 1 | 0.0625 | A_bb |
| AaBB | 2 | 0.1250 | A_B_ |
| AaBb | 4 | 0.2500 | A_B_ |
| Aabb | 2 | 0.1250 | A_bb |
| aaBB | 1 | 0.0625 | aaB_ |
| aaBb | 2 | 0.1250 | aaB_ |
| aabb | 1 | 0.0625 | aabb |
| Cross | Boxes | Genotype ratio | Phenotype ratio | Note |
|---|---|---|---|---|
| AABB x aabb | 16 | 1 | 1 | Every offspring is AaBb, the F1 generation |
| AaBb x AaBb | 16 | 1:2:1:2:4:2:1:2:1 | 9:3:3:1 | Two F1 plants crossed, the classic 9:3:3:1 |
| AaBb x aabb | 16 | 1:1:1:1 | 1:1:1:1 | Dihybrid test cross, all four classes equal |
| AABb x AaBb | 16 | 1:2:1:1:2:1 | 3:1 | No recessive for the first gene |
| AaBb x AaBB | 16 | 1:1:2:2:1:1 | 3:1 | Second gene always shows the dominant trait |
| Aabb x aaBb | 16 | 1:1:1:1:1:1 | 1:1:1:1 | Each gene is a test cross |
| Unknown parent | Offspring from the test cross | Phenotype ratio |
|---|---|---|
| AA | All Aa, all show the dominant trait | 1 |
| Aa | Half Aa, half aa | 1:1 |
| Genes (n) | Gametes per parent | Boxes | Genotype classes | Phenotype classes | Dominant for all |
|---|---|---|---|---|---|
| 1 | 2 | 4 | 3 | 2 | 0.7500 |
| 2 | 4 | 16 | 9 | 4 | 0.5625 |
| 3 | 8 | 64 | 27 | 8 | 0.4219 |
| Term | Meaning |
|---|---|
| Allele | One version of a gene, written as a letter such as A or a |
| Genotype | The pair of alleles an individual has, such as Aa |
| Phenotype | The visible or measurable trait that results |
| Homozygous | Two identical alleles, AA or aa |
| Heterozygous | Two different alleles, Aa |
| Dominant allele | Shows in the phenotype even with one copy; written in uppercase |
| Recessive allele | Shows only with two copies; written in lowercase |
| Gamete | An egg or sperm cell, carrying one allele of each gene |
| Test cross | A cross with a homozygous recessive individual to reveal an unknown genotype |
| Pattern | What changes | Example |
|---|---|---|
| Incomplete dominance | Heterozygote looks like a blend, ratio becomes 1:2:1 | Red x white flowers giving pink |
| Codominance | Both alleles show at once in the heterozygote | Both versions of a trait visible |
| Multiple alleles | More than two alleles exist in a population | Human ABO blood groups |
| Sex linkage | The gene sits on a sex chromosome, so the cross differs by sex | Some traits in fruit flies and people |
| Linked genes | Genes close on one chromosome do not sort independently | Dihybrid ratios depart from 9:3:3:1 |
| Polygenic traits | Many genes plus environment shape the trait | Height, skin color, eye color shades |
| Mistake | What goes wrong | Fix |
|---|---|---|
| Putting both alleles of a gene in one gamete | A gamete carries one allele per gene | Split Aa into A and a |
| Skipping repeated gametes for homozygous parents | Probabilities come out wrong | List AA as A and A, keep every box |
| Counting AA, Aa and aa as three phenotypes | AA and Aa look the same under complete dominance | Group them as A_ |
| Writing the genotype as aA | Harder to compare and count | Write the uppercase letter first |
| Using one square for two genes | Dihybrid crosses need 16 boxes | List the four gametes AB, Ab, aB, ab |
| Treating the ratio as a guarantee | Small families vary a lot | Ratios describe the odds for each offspring |
| Example | Boxes | Genotype ratio | Phenotype ratio | All dominant | All recessive |
|---|---|---|---|---|---|
| AaBb x AaBb | 16 | 1:2:1:2:4:2:1:2:1 | 9:3:3:1 | 56.25% | 6.25% |
| Aa x Aa | 4 | 1:2:1 | 3:1 | 75% | 25% |
| Aa x aa | 4 | 1:1 | 1:1 | 50% | 50% |
| AaBb x aabb (test cross) | 16 | 1:1:1:1 | 1:1:1:1 | 25% | 25% |
| AABb x AaBb | 16 | 1:2:1:1:2:1 | 3:1 | 75% | 0% |
| AaBbCc x AaBbCc | 64 | 27 classes | 27:9:9:3:9:3:3:1 | 42.1875% | 1.5625% |
Frequently Asked Questions About the Punnett Square Calculator
How do you use a Punnett square calculator?
Type the genotype of parent 1, such as AaBb, and the genotype of parent 2, or switch on the test cross option. Use uppercase for dominant alleles and lowercase for recessive ones. The calculator lists the gametes, draws the square, and gives the genotype and phenotype ratios. For AaBb x AaBb it shows 16 boxes and the 9:3:3:1 phenotype ratio.
What does a Punnett square calculator show?
It shows the possible gametes from each parent, the grid of offspring genotypes, how many boxes there are of each genotype and phenotype, and the matching probabilities. For Aa x Aa the genotype ratio is 1:2:1 and the phenotype ratio is 3:1, so each offspring has a 75% chance of showing the dominant trait.
How do I do a Punnett square for a monohybrid cross?
Write each parent's two alleles, put one parent's alleles across the top and the other's down the side, and fill each box with the matching pair. For Aa x Aa the boxes are AA, Aa, Aa and aa. That is 1:2:1 by genotype and 3:1 by phenotype. The calculator does this for any monohybrid pair and handles the case where a parent is homozygous.
How do I do a dihybrid Punnett square?
Work out the four gametes of each parent, such as AB, Ab, aB and ab for AaBb, and place them along both sides of a 4 × 4 grid. Fill all 16 boxes. AaBb x AaBb gives 9:3:3:1 for the four phenotype classes, as OpenStax Biology shows for the round yellow pea cross. This page's 2x2 and 4x4 squares come from the same method.
Can this calculator do a Punnett square 2x2?
Yes. Any cross with one gene uses a 2 × 2 square, four boxes in total. Enter a pair such as Aa x Aa or Aa x aa. If a parent is homozygous, its gamete is listed twice, so the square still has four boxes. For Aa x aa the four boxes give 1:1 by genotype, which is 50% Aa and 50% aa.
Is there a Punnett square 3x3?
A 3 × 3 square does not come from a standard cross, because each parent makes 2, 4 or 8 equally likely gametes. Three genes need an 8 × 8 square with 64 boxes. This calculator accepts three genes, such as AaBbCc x AaBbCc, and reports the 64-box counts, though the grid is too wide to draw. Phenotype ratio: 27:9:9:3:9:3:3:1.
What is a test cross?
A test cross breeds an individual of unknown genotype with a homozygous recessive one. Because the partner can only pass on the recessive allele, the offspring show which alleles the unknown parent carried. If every offspring shows the dominant trait, the parent is probably AA. If about half show the recessive trait, it is Aa (1:1). Switch on the test cross option here.
How do I find the genotype ratio?
Count the boxes for each genotype and reduce the counts by their greatest common divisor. For Aa x Aa the counts are 1 AA, 2 Aa and 1 aa, so the ratio is 1:2:1. For AaBb x AaBb the nine genotype counts are 1, 2, 1, 2, 4, 2, 1, 2, 1 out of 16. The calculator lists them in textbook order: homozygous dominant first, then heterozygous, then recessive.
How do I find the phenotype ratio?
Group boxes by how the trait looks. Under complete dominance AA and Aa look the same, so Aa x Aa has 3 boxes showing the dominant trait and 1 showing the recessive: 3:1. For two genes, group into four classes and count: AaBb x AaBb gives 9, 3, 3 and 1 out of 16.
What is the probability of a recessive phenotype?
Add the boxes where the recessive trait shows and divide by the total. For Aa x Aa it is 1 of 4, which is 25%. For AaBb x AaBb, a child that is recessive for both traits (aabb) has 1 of 16, or 6.25%. The calculator reports this as the all recessive chance.
What is the difference between genotype and phenotype?
A genotype is the pair of alleles an individual carries, such as Aa. A phenotype is the trait you can observe, such as round or wrinkled seeds. Under complete dominance, AA and Aa have different genotypes but the same phenotype, which is why the genotype ratio 1:2:1 collapses to the phenotype ratio 3:1. Both ratios are shown here.
What does complete dominance mean?
It means one allele, written in uppercase, completely hides the other in a heterozygote. Aa looks the same as AA. This is the model behind Mendel's pea experiments, and it is the only model this calculator uses. Patterns such as incomplete dominance, codominance and sex linkage give different ratios and need different rules.
Can I do a Punnett square calculator for incomplete dominance?
Not here. With incomplete dominance the heterozygote looks like a blend, so Aa x Aa gives three phenotypes in a 1:2:1 ratio instead of 3:1. You can still use the genotype ratio this calculator prints, because that part does not change: it is 1:2:1. Read each genotype as its own phenotype and the incomplete dominance pattern follows.
Can I use it for blood type?
Not directly. Human ABO blood groups use three alleles, so a simple two-allele model does not apply. You can still draw a 2 × 2 square by hand with the alleles each parent carries. The genetics are a classroom exercise only. Blood group results from a real test, not a Punnett square, should be used for any medical or legal question.
Can a Punnett square predict a baby's eye color?
Not reliably. Eye color depends on several genes plus other factors, so a single-gene square is a classroom simplification, not a prediction. A Punnett square is best for traits controlled by one or two genes with clear dominance. Use this calculator to learn and check homework, and do not use it to make medical, family or paternity decisions.
Does it work with other letters, like R and Y?
Yes. Any letters work, with uppercase as the dominant allele. For round and yellow peas use RrYy. Each gene needs two alleles of the same letter, so RrYy is valid and RrAa is also valid as two different genes. Parent 2 must use the same letters as parent 1. RrYy x rryy gives the 1:1:1:1.
How many boxes does a Punnett square have?
One gene gives 4 boxes, two genes give 16 and three genes give 64, since each parent contributes 2 to the power of the number of genes gametes, counting repeats. OpenStax Biology gives the rules for heterozygous pairs: 2n gametes and 3n genotypes. The gene count table on this page shows the sizes.
Why are the genotype classes listed in that order?
They follow the textbook layout: homozygous dominant first, then heterozygous, then homozygous recessive, one gene at a time. For two genes the order is AABB, AABb, AAbb, AaBB, AaBb, Aabb, aaBB, aaBb, aabb. Phenotype classes run from dominant for every gene down to recessive for every gene. This keeps ratios like 9:3:3:1 in the familiar order.
Are the ratios exact for a real family or crop?
No. A ratio describes the chance for each offspring, not a count you will see. A family of four children from Aa x Aa will often not show exactly one recessive child. Ratios like 3:1 appear when you have large numbers of offspring. Mendel's counts were close to, but not exactly, the ideal ratios.
What are the limits of this calculator?
It models complete dominance with up to three unlinked genes, each with two alleles. It does not handle incomplete dominance, codominance, multiple alleles, sex-linked genes, linked genes or mutation. It is a teaching tool. It makes no medical or paternity claims, and genetic questions about a person need a qualified professional.
References
- [1] OpenStax. “Biology 2e, Section 12.2 Characteristics and Traits.” OpenStax, Rice University. Accessed 2026-10-07.
- [2] OpenStax. “Biology 2e, Section 12.3 Laws of Inheritance.” OpenStax, Rice University. Accessed 2026-10-07.
- [3] Wikipedia contributors. “Punnett square.” Wikipedia. Accessed 2026-10-07.
Related calculators
- Amps to Kilowatts CalculatorConvert amps to kilowatts for DC, single-phase and three-phase circuits, with power factor, kVA, kWh per day or month and an optional energy cost.Open
- Binomial Distribution CalculatorBinomial distribution calculator. Enter trials, success probability and successes for exact, at most, at least and between probabilities, plus mean.Open
- Box Plot CalculatorBox plot calculator with steps: get Q1, median, Q3, whiskers, fences and outliers from data or five numbers, with a text box and whisker plot.Open
- Boyle's Law CalculatorBoyle's law calculator: solve P1 V1 = P2 V2 for pressure or volume in atm, kPa, bar, mmHg, psi, L, mL or m3, with gauge pressure and examples.Open
