Skip to content
MasterMath

Punnett Square Calculator

A Punnett square crosses the gametes of two parents and counts how many boxes give each genotype. Write each genotype with a capital letter for the dominant allele and lowercase for the recessive one: "Aa", "AaBb".

Phenotype ratio

—

Phenotype ratio—
Genotype ratio—
Show the dominant trait—
Show the recessive trait—
Gametes being crossed—
Boxes in the square—

How this was worked out

    The formula

    Gametes of one parent × gametes of the other

    What it means

    Each parent passes one allele of each gene to every gamete, so an "Aa" produces "A" and "a" gametes in equal numbers while an "AA" produces only "A". The square puts one parent's gametes across the top and the other's down the side, and every box is a possible child. You do not have to remember the famous ratios: they fall out of counting boxes. A monohybrid "Aa × Aa" gives 3 to 1 in phenotype and 1:2:1 in genotype; a dihybrid "AaBb × AaBb" gives 9:3:3:1 across sixteen boxes.

    How to work it out by hand

    1. Write out each parent's gametes: one for every allele of every gene
    2. Put one parent's gametes across the top and the other's down the first column
    3. Fill each box by joining the alleles from its row and its column
    4. Count how many boxes repeat each genotype and each phenotype

    What is worth knowing

    A 3 to 1 ratio does not promise that three out of four children will show the dominant trait: it is the probability of each pregnancy on its own, and each one starts from scratch. The square also assumes the genes assort independently, which happens when they sit on different chromosomes; two genes close together on the same chromosome are inherited together and the ratios fall apart. It does not cover cases where one allele does not fully win either: with incomplete dominance the heterozygote is intermediate (the pink flower from a red and a white parent), and with codominance both show, as in blood type AB.

    Frequently asked questions

    Capitals or lowercase?

    The capital is the dominant allele and lowercase the recessive one, and they have to be the same letter: "Aa", not "Ab". For two genes, write them one after another: "AaBb".

    Can I cross two genes at once?

    Yes. "AaBb × AaBb" builds a four by four square and the 9:3:3:1 ratio comes out without anyone writing it down.

    Why does an "AA" produce two identical gametes?

    Because the square counts boxes, and a homozygote contributes the same allele through both routes. Removing the duplicate would change the ratios.

    Does this work for eye colour?

    Not reliably. Eye colour depends on several genes at once, and the single dominant gene taught in class is a simplification.

    What if both parents are "aa"?

    Every child is "aa". A recessive trait does not turn dominant: if both parents only carry recessive alleles, there is nowhere for the dominant one to come from.