The Calc Guide › Calculator
Punnett Square Calculator
A Punnett square calculator pairs the gametes of two parents and counts the offspring. Aa x Aa gives AA, Aa, Aa and aa: a genotype ratio of 1:2:1 and a phenotype ratio of 3:1 (75% dominant, 25% recessive). AaBb x AaBb fills a 16-cell square and gives phenotypes in the ratio 9:3:3:1.
Last updated: November 29, 2026
Build the square for one gene or two, with genotype and phenotype ratios counted for you
Type one gene as two letters (Aa) or two genes as four (AaBb). A capital letter is the dominant allele and the small letter is the recessive allele of the same gene; both parents must use the same letters in the same order. A homozygous parent passes only one kind of gamete, so its side of the square has one row or column; the proportions are the same either way.
How this is worked out
Each parent contributes one allele per gene to each offspring.
The square pairs every gamete from one parent with every gamete from the other.
Next: put numbers on chance with the Probability Calculator
Free. No sign-up. Calculated in your browser; nothing is sent to our servers.
What this calculator does
A Punnett square predicts how the alleles of two parents can combine in their offspring. Each parent passes one allele per gene. The square pairs every gamete from one parent with every gamete from the other, and counting the cells gives the expected proportions.
The share percentages are shown to six significant figures. Counts and ratios are exact whole numbers.
Type the two genotypes and the calculator prints the square. It then prints every genotype with its count (“1 of 4”), ratio part and percent, and every phenotype the same way. It works under complete dominance, the pattern the textbook square assumes. Capital letters are dominant alleles and small letters recessive. Offspring genotypes are written with the dominant allele first in each pair, so aA and Aa count together.
If a genotype breaks the rules, the calculator shows a sentence naming the problem instead of a guessed square.
Worked example: Aa x Aa, the textbook cross
A parent of Aa passes A or a. Pairing the two parents’ gametes fills four cells:
Scroll sideways to see all columns →
| Aa x Aa | A | a |
|---|---|---|
| A | AA | Aa |
| a | Aa | aa |
Counting genotypes gives one AA, two Aa and one aa.
Scroll sideways to see all columns →
| Genotype | Count | Share |
|---|---|---|
| AA | 1 of 4 | 25% |
| Aa | 2 of 4 | 50% |
| aa | 1 of 4 | 25% |
The genotype ratio is 1:2:1. Grouping by what shows instead of what is carried, AA and Aa both show the dominant trait.
Scroll sideways to see all columns →
| Phenotype | Count | Share |
|---|---|---|
| Dominant | 3 of 4 | 75% |
| Recessive | 1 of 4 | 25% |
The phenotype ratio is 3:1. These are the values the tool prints at its defaults.
Four more crosses to try
Type any of these pairs into the tool. The ratio fields print what the table shows. When the square has a single cell, each ratio field reads 1.
Scroll sideways to see all columns →
| Cross | Cells | Genotype ratio | Phenotype ratio |
|---|---|---|---|
| Aa x aa (test cross) | 2 | 1:1 | 1:1 |
| AA x aa | 1 | 1 (all Aa, 100%) | 1 (all dominant, 100%) |
| AaBb x AaBb (dihybrid) | 16 | 1:2:1:2:4:2:1:2:1 | 9:3:3:1 |
| AaBb x aabb (dihybrid test cross) | 4 | 1:1:1:1 | 1:1:1:1 |
Dihybrid example: AaBb x AaBb
Each parent makes four gametes: AB, Ab, aB and ab. The square has 16 cells.
Scroll sideways to see all columns →
| AaBb x AaBb | AB | Ab | aB | ab |
|---|---|---|---|---|
| AB | AABB | AABb | AaBB | AaBb |
| Ab | AABb | AAbb | AaBb | Aabb |
| aB | AaBB | AaBb | aaBB | aaBb |
| ab | AaBb | Aabb | aaBb | aabb |
Nine distinct genotypes appear. Each share is its count divided by 16.
Scroll sideways to see all columns →
| Genotype | Count | Share |
|---|---|---|
| AABB | 1 of 16 | 6.25% |
| AABb | 2 of 16 | 12.5% |
| AAbb | 1 of 16 | 6.25% |
| AaBB | 2 of 16 | 12.5% |
| AaBb | 4 of 16 | 25% |
| Aabb | 2 of 16 | 12.5% |
| aaBB | 1 of 16 | 6.25% |
| aaBb | 2 of 16 | 12.5% |
| aabb | 1 of 16 | 6.25% |
The counts 1, 2, 1, 2, 4, 2, 1, 2, 1 add to 16 and give the ratio 1:2:1:2:4:2:1:2:1. Grouped by what shows, they give four phenotypes.
Scroll sideways to see all columns →
| Phenotype | Count | Share |
|---|---|---|
| A dominant, B dominant | 9 of 16 | 56.25% |
| A dominant, b recessive | 3 of 16 | 18.75% |
| a recessive, B dominant | 3 of 16 | 18.75% |
| a recessive, b recessive | 1 of 16 | 6.25% |
The phenotype ratio is 9:3:3:1.
In the dihybrid test cross AaBb x aabb, the aabb parent passes only “ab”, so the grid is 4 cells. The four offspring genotypes are AaBb, Aabb, aaBb and aabb, each 1 of 4 (25%). The four phenotypes are also each 1 of 4, so both ratios are 1:1:1:1.
How a Punnett square works
Each offspring takes one allele per gene from each parent. Counting the equally likely cells gives the expected proportions. The square is a bookkeeping device for one fact of meiosis: a parent passes exactly one of its two alleles for each gene to each offspring, and which one is chance. Four conventions do the work on this page.
- Gametes are the parents’ halves. Aa makes gametes A and a in equal shares. AaBb makes AB, Ab, aB and ab.
- A homozygous parent makes one kind of gamete. AA passes only A and aa passes only a, so the calculator draws a one-row or one-column side. A grid drawn with repeated identical gametes has more cells but the same proportions.
- Dominant first, so matches merge. An offspring that gets a from one parent and A from the other is Aa. Without this, one genotype would be counted twice under two spellings and the ratios would be wrong.
- Phenotypes group by what shows. Under complete dominance, AA and Aa look the same, so the phenotype tally merges them. One-gene labels read Dominant and Recessive. Two-gene labels name the letter, like “A dominant, b recessive”. Real trait names are never attached, because the same letters stand for any gene in any species.
Sources and method
The method is the standard treatment of gamete pairing, the monohybrid 1:2:1 and dihybrid 9:3:3:1 ratios, and the test cross in OpenStax Biology 2e, Chapter 12, sections 12.2 and 12.3.
The conventions are stated, not hidden:
- Complete dominance only. Incomplete dominance, codominance and sex-linked inheritance are out of scope.
- Gametes are deduplicated.
- Genotypes are normalized dominant first.
- Both parents must describe the same genes in the same order.
Ratios are the cell counts reduced by their greatest common divisor. Percents are counts over the total cells. A genotype that breaks the rules gets a sentence naming the problem. Figures checked November 2026.
Sources
Change log
15 November 2026: This page was revised against its sources. The crosses table heading now counts four crosses, its AA x aa row shows the ratio the tool prints, and a Cells column was added. A dihybrid worked example was added, with the 16-cell grid, the nine genotypes and the four phenotypes, and the dihybrid test cross now states four cells. The conventions list now names four conventions, the one-gene and two-gene phenotype labels were corrected, and an overbroad claim about the size of the two-gene square was narrowed. Unsupported history claims, a popularity claim, a prevalence claim and a claim about other tools’ grids were removed, and the related-calculator text was made neutral. A question on invalid genotypes was added to the frequently asked questions, which now number seven. The OpenStax citation was corrected to Chapter 12, sections 12.2 and 12.3, and the sentence on meiosis was restored in How a Punnett square works, sourced to OpenStax Biology 2e, section 12.3. The stored answer block was replaced with the corrected text and its date stamp removed.
Related calculators
- For the chance arithmetic behind the ratios, see the Probability Calculator.
- Ratios of this kind can also be worked on the Proportion Calculator.
- Another science calculator on the site is the Molarity Calculator.
Frequently asked questions
What is a Punnett square?
A diagram that predicts the genotypes of offspring from two parents’ genotypes. Each parent contributes one allele per gene, so the rows and columns are the parents’ possible gametes and each cell is one possible offspring. Counting the cells gives the expected proportions: Aa x Aa fills four cells with AA, Aa, Aa and aa.
What ratio does Aa x Aa give?
A genotype ratio of 1:2:1 and a phenotype ratio of 3:1. The four equally likely cells are AA, Aa, Aa and aa, so one quarter of offspring are AA, half are Aa and one quarter are aa. Under complete dominance AA and Aa both show the dominant trait, so three quarters (75%) show it and one quarter (25%), the aa offspring, show the recessive one. These are expectations over many offspring, not a promise about any four.
What is a test cross?
A test cross pairs a parent that shows the dominant trait with a homozygous recessive parent, to reveal whether the first parent carries a hidden recessive allele. If the dominant-looking parent is Aa, Aa x aa gives two cells, Aa and aa, a 1:1 ratio in both genotype and phenotype. Any recessive offspring shows that the parent carried the recessive allele. If the parent is AA, every offspring is Aa and shows the dominant trait, and no recessive offspring can appear.
What does AaBb x AaBb give?
The classic dihybrid result: a phenotype ratio of 9:3:3:1. Each parent makes four gametes (AB, Ab, aB and ab), so the square has sixteen cells holding nine distinct genotypes in the ratio 1:2:1:2:4:2:1:2:1. Grouped by appearance, nine sixteenths show both dominant traits, three sixteenths show each single recessive trait, and one sixteenth shows both recessive traits: 56.25%, 18.75%, 18.75% and 6.25%.
Why does AA x aa show a one-cell square?
Each parent can pass only one kind of gamete. AA passes A and aa passes a, so there is exactly one combination, Aa, at 100% (1 of 1). A grid drawn with repeated gametes, four cells with Aa in each, gives the same proportions. The calculator draws the single cell, and both ratio fields read 1. Swapping the parents (aa x AA) gives the same all-Aa result.
Does the square predict an actual offspring?
No. It gives expected proportions over many offspring, not the genotype of any single one. Each offspring is a separate chance draw from the same square, so a small family or litter can land well away from 3:1 by ordinary chance. The calculator models one or two genes under complete dominance. Traits that depend on more genes, on incomplete dominance, codominance, sex linkage or the environment are outside it. Inside those assumptions the ratios are exact, because they are counts of equally likely cells. It is a teaching model, not a medical or genetic testing tool.
What happens if my genotype is not valid?
The calculator shows a sentence naming the problem instead of a guessed square. It catches:
- a genotype that is not two letters (one gene) or four letters (two genes);
- parents with different numbers of genes;
- characters that are not letters;
- a pair that mixes two different letters;
- the same letter used for both genes;
- parents that use different gene letters.
Spaces are ignored.
Educational tool only. Results are estimates based on the numbers you enter and the assumptions explained on this page, not financial advice.