Boneyard Tools

Punnett Square Calculator

This calculator crosses two parents for a single gene and draws the classic 2x2 Punnett square. Type each parent as a two-letter genotype, using a capital letter for the dominant allele and lower case for the recessive one. It fills the grid, counts the genotype ratio and works out how many of the four offspring show the dominant trait.

How to use a Punnett square

  1. Type parent 1 as a two-letter genotype in the first box, for example Aa, BB or aa.
  2. Type parent 2 the same way in the second box, using the same trait letter as parent 1.
  3. Use a capital letter for the dominant allele and lower case for the recessive allele.
  4. Or click one of the preset crosses such as Aa x Aa or AA x aa to fill both boxes.
  5. Read the filled 2x2 grid, the genotype ratio line and the dominant to recessive phenotype split, then copy the result.

Examples

Heterozygous cross (the 3:1)

Aa x Aa
grid AA Aa / Aa aa, genotypes 1 AA : 2 Aa : 1 aa, phenotype 3 dominant : 1 recessive

Homozygous dominant crossed with recessive

AA x aa
grid Aa Aa / Aa Aa is all Aa, genotype 4 Aa, phenotype 4 dominant : 0 recessive

Test cross of a heterozygote

Aa x aa
genotypes 2 Aa : 2 aa, phenotype 2 dominant : 2 recessive

Frequently asked questions

What does this calculator actually build?

It builds a monohybrid Punnett square, a cross for one gene with two alleles. Each parent passes one of its two alleles into every gamete, and the 2x2 grid pairs each allele from parent 1 with each allele from parent 2 to list all four possible offspring.

How do I write a genotype?

Use exactly two letters of the same trait, such as Aa, BB or aa. A capital letter marks the dominant allele and lower case the recessive allele. Both parents must use the same letter, so Aa crossed with Bb is rejected because they describe different genes.

Does the order of the two alleles matter?

No. The tool normalises every offspring cell so the dominant allele comes first, turning aA into Aa. That is why an entry like aA and a tidy Aa produce the same grid and the same ratios.

What does Aa crossed with Aa give?

The classic heterozygous cross gives a 1:2:1 genotype ratio of AA to Aa to aa, which the tool reports as 1 AA : 2 Aa : 1 aa. Because one dominant allele is enough to show the dominant trait, the phenotype ratio is 3 dominant to 1 recessive.

How does it decide the phenotype split?

It scans each of the four grid cells for a capital letter. Any cell with at least one capital counts as showing the dominant phenotype, and cells with two lower case letters count as recessive. The tally is reported out of four, for example 3 dominant to 1 recessive.

Can it do a dihybrid or two-gene cross?

No. This tool is strictly monohybrid, one gene at a time, so it always draws a 2x2 grid. A dihybrid cross tracks two genes together and needs a 4x4 grid of sixteen cells, which is a different calculation.

Does it handle incomplete or codominance?

Not directly. It classifies a phenotype as dominant whenever a capital allele is present, which is the simple complete-dominance model. For incomplete dominance or codominance the heterozygote shows its own blended or joint phenotype, so read the genotype ratio and interpret the middle class yourself.

What inputs are rejected?

Anything that is not two letters of one trait. A single letter, three letters, a digit or a symbol is rejected, and two different trait letters like Aa and Bb are refused. Spaces are ignored, so A a is read as Aa.

Does anything leave my browser?

No. The cross is computed locally with plain string logic, so the genotypes you enter stay on your device and nothing is sent to a server.

Learn more

Related tools