UTILS.
100% in-browser
🧬

Punnett Square Calculator

Cross two genotypes to build a Punnett square with genotype and phenotype ratios for monohybrid and dihybrid crosses.

Uppercase = dominant, lowercase = recessive. Use 1 gene (Aa) or 2 genes (AaBb).

About this tool

Enter the two parent genotypes (for example Aa or AaBb) and this tool builds the full Punnett square, then tallies every offspring genotype and phenotype. It supports one-gene (monohybrid) and two-gene (dihybrid) crosses. Everything runs in your browser — nothing is uploaded.

Each genotype is split into allele pairs by gene. The gametes are the Cartesian product of picking one allele from each gene, so a heterozygous single gene gives two gametes and a double heterozygote gives four. Every gamete of parent one is combined with every gamete of parent two to fill the grid; each offspring gene pair is written with the uppercase (dominant) allele first. Genotypes are then counted and the ratio is reduced by the greatest common divisor. A gene shows the dominant phenotype whenever at least one uppercase allele is present, which is how the phenotype ratio is built.

A classic monohybrid cross Aa × Aa yields a 1:2:1 genotype ratio (AA:Aa:aa) and a 3:1 phenotype ratio, while the dihybrid AaBb × AaBb gives the famous 9:3:3:1 phenotype ratio. Use uppercase letters for dominant alleles and lowercase for recessive, and keep the same gene letters in both parents.

Frequently asked questions

How do I write a genotype?
Use two letters per gene, uppercase for the dominant allele and lowercase for the recessive one — for example Aa for one gene, or AaBb for two genes. Both parents must use the same gene letters.
Which crosses are supported?
Monohybrid (one gene, a 2×2 square) and dihybrid (two genes, a 4×4 square). Trihybrid and larger crosses are not supported.
How is the phenotype ratio determined?
For each gene an offspring shows the dominant phenotype if it carries at least one uppercase (dominant) allele; otherwise it shows the recessive phenotype. The counts are then reduced to their simplest ratio.
Is my data sent anywhere?
No. The Punnett square and all ratios are computed entirely in your browser with plain string combinatorics — nothing leaves your device.

More tools