How to use the punnett square generator
- Type the genotype of Parent 1 and Parent 2 with two letters per gene, such as Aa for one gene or AaBb for two. Capital letters are dominant alleles. Up to three genes are allowed, and both parents must list the same genes in the same order.
- Choose Dominance: complete dominance (a capital letter hides the lower-case allele) or no dominance (each genotype looks different).
- Read the ratios in the stats, then the Punnett square (for one or two genes) and the tables of genotypes and phenotypes with each chance.
- For three genes the square is too large to show, so the tables carry the answer.
Formula
gametes = every combination of one allele from each gene of a parent
each box of the square = one gamete from parent 1 joined with one gamete from parent 2
chance of an outcome = boxes with that outcome / total boxes
Genes are assumed to sort independently, so every gamete combination is equally likely. A parent with n heterozygous genes makes 2^n gamete types, and the square has 4^n boxes for two such parents.
Crossing two double heterozygotes
AaBb x AaBb makes four gamete types from each parent (AB, Ab, aB, ab), so the square has 16 boxes. With complete dominance the phenotype ratio is 9:3:3:1 and the genotype ratio, from most to least common, is 4:2:2:2:2:1:1:1:1. The genotype AaBb fills 4 of the 16 boxes, a chance of 25%.
For one gene, Aa x Aa gives a 3:1 phenotype ratio and genotypes AA, Aa and aa in the ratio 1:2:1. With no dominance, the heterozygote Aa is its own phenotype and the ratio is 2:1:1. A test cross AaBb x aabb gives 1:1:1:1, and AaBbCc x AaBbCc gives 27:9:9:9:3:3:3:1.
Reading the square
The row labels are the gametes of parent 1 and the column labels are the gametes of parent 2. Each cell shows the genotype of a child who received those two gametes. Counting equal cells gives the genotype ratio, and sorting them by what they look like gives the phenotype ratio.
These are chances for each child separately. Two parents with a 25% chance of a recessive child can have no such children in a family of four, or several, because each child is a fresh draw.
What this model leaves out
Real inheritance has more cases: genes close together on a chromosome travel together, some traits depend on many genes, and some genotypes only partly show their trait. None of that is modeled here. The page is for teaching and for working through standard problems. To test whether a population fits expected proportions, use the Hardy-Weinberg Calculator, and for other chances see the Probability Calculator.
More genetics tools
For population genetics and sequences, try the DNA Sequence Toolkit and Hardy-Weinberg Calculator.
Assumptions and limits
- Each gene has two alleles, written with the same letter in upper and lower case.
- Genes sort independently of each other, and there is no linkage.
- In the complete dominance model, an offspring shows the dominant trait when it has at least one capital letter for that gene.
- Each gamete type is equally likely, and a repeated allele (as in AA) is counted twice so the boxes stay equally likely.
- The example genotypes are an illustration. Replace them with your own.
Frequently asked questions
Why does AA x aa give only one genotype?
Every gamete from the first parent carries A and every gamete from the second carries a, so all children are Aa. With complete dominance they all show the dominant trait.
What does the ratio 9:3:3:1 mean?
Out of 16 equally likely boxes, 9 show both dominant traits, 3 show the first dominant and the second recessive, 3 the reverse and 1 shows both recessive.
Can I enter lower case first, like aA?
Yes. The two letters can be in either order, and the table writes each pair with the capital letter first.
Why is the third gene missing from the square?
Three genes make an 8 by 8 square with 64 boxes, which is too big to read. The tables of genotypes and phenotypes still count all 64.