PublicSoftTools
Tools16 min read·PublicSoftTools Team·May 2026

Punnett Square Calculator — Predict Genetic Inheritance Ratios

A Punnett square is a grid diagram used to predict the possible genotypes and phenotypes of offspring from a genetic cross. Developed by Reginald Crundall Punnett in the early 20th century, it remains the standard tool for visualising Mendelian inheritance. The free Punnett square calculator on PublicSoftTools generates squares for monohybrid and dihybrid crosses, calculates genotype and phenotype ratios, and works for dominant/recessive and codominant traits.

Key Terminology

Understanding Punnett squares requires understanding the following terms:

How to Use the Punnett Square Calculator

  1. Open the Punnett square calculator.
  2. Select Monohybrid (one gene / 2×2 grid) or Dihybrid (two genes / 4×4 grid).
  3. Enter the parent genotypes. For a monohybrid cross: enter two alleles for each parent (e.g., Aa for parent 1, Aa for parent 2).
  4. Click Generate. The Punnett square fills automatically with all possible offspring genotypes.
  5. The calculator shows the genotype ratio (e.g., 1 AA : 2 Aa : 1 aa) and phenotype ratio (e.g., 3 dominant : 1 recessive).

Monohybrid Cross Outcomes

Parent crossGenotype ratioPhenotype ratioExample
Aa × Aa (heterozygous cross)1 AA : 2 Aa : 1 aa3 dominant : 1 recessiveMendel's pea plant F2 generation
AA × aa (homozygous cross)4 Aa (all heterozygous)4 dominant : 0 recessiveAll offspring express dominant trait
Aa × aa (test cross)2 Aa : 2 aa2 dominant : 2 recessiveTest cross to identify unknown genotype
AA × AA4 AA4 dominant : 0 recessiveTrue breeding line
aa × aa4 aa0 dominant : 4 recessiveBoth parents recessive; all offspring recessive

Dihybrid Cross

A dihybrid cross examines two genes simultaneously. With two heterozygous parents (AaBb × AaBb), there are 16 possible offspring genotype combinations — requiring a 4×4 grid. Mendel's Law of Independent Assortment states that the two genes segregate independently, producing the classic 9:3:3:1 phenotype ratio for two traits.

Trait / geneDominant alleleRecessive allele
Seed shape (dominant)R (round)r (wrinkled)
Seed colour (dominant)Y (yellow)y (green)
Dihybrid F2 ratio9 R_Y_ : 3 R_yy : 3 rrY_ : 1 rryyRound yellow : Round green : Wrinkled yellow : Wrinkled green

The 9:3:3:1 ratio only holds when: (1) the two genes are on different chromosomes (independent assortment), (2) the cross is between two dihybrid parents, and (3) dominance is complete. Linked genes (on the same chromosome) and incomplete dominance produce different ratios.

Types of Inheritance Patterns

PatternWhat it meansExample
Complete dominanceOne allele completely masks the other. Heterozygote looks like homozygous dominant.Brown eyes dominant over blue eyes (simplified)
Incomplete dominanceHeterozygote shows a blended phenotype intermediate between the two homozygotes.Red (RR) × white (WW) flowers → pink (RW) offspring
CodominanceBoth alleles are expressed fully and simultaneously in the heterozygote.Blood type AB: both A and B antigens present
Sex-linkedGene is on the X chromosome (usually). Males (XY) express recessive X-linked traits more often since they have only one X.Colour blindness, haemophilia
Lethal allelesCertain homozygous genotypes are lethal (die during development), changing expected ratios.Yellow coat colour in mice: YY is lethal; only Yy and yy survive

Mendelian Genetics: Mendel's Laws

Law of Segregation

Each organism has two alleles for each gene, one inherited from each parent. During gamete formation (meiosis), these two alleles separate (segregate), so each gamete carries only one allele. This is why the Punnett square places one allele from each parent along the rows and columns — each gamete carries exactly one.

Law of Independent Assortment

The alleles for different genes on different chromosomes segregate independently of one another during meiosis. This is the basis of the dihybrid 9:3:3:1 ratio. The law applies to genes on different chromosomes; genes close together on the same chromosome are linked and do not assort independently — they tend to be inherited together.

Sex-Linked Inheritance

Sex-linked traits are carried on the sex chromosomes — most commonly on the X chromosome (X-linked traits). Males have one X and one Y chromosome (XY); females have two X chromosomes (XX). An X-linked recessive trait (like haemophilia or red-green colour blindness) is expressed in males who carry even one copy of the recessive allele (X^a Y), but in females it is only expressed if both X chromosomes carry the recessive allele (X^a X^a).

For X-linked crosses, the Punnett square uses X^A and X^a notation (or X^H and X^h) to track which chromosome carries which allele. The Y chromosome is written as Y — it does not carry a corresponding allele for most X-linked genes.

Probability vs. Ratios

Punnett square ratios (3:1, 9:3:3:1) are probability predictions, not guarantees. For a single offspring, the 3:1 ratio means each individual offspring has a 75% chance of showing the dominant phenotype and a 25% chance of showing the recessive phenotype — not that exactly 3 out of 4 will show each. For large populations, observed outcomes approach the theoretical ratio.

Each gamete combines independently of previous combinations — producing an offspring with genotype aa does not change the probability that the next offspring will also have genotype aa. This is a common misconception: if parents Aa × Aa have already had three children with the dominant phenotype, the probability that their fourth child shows the recessive phenotype is still 25%, not "greater because we are overdue."

Punnett Squares in Human Genetics

Autosomal recessive conditions

Conditions like cystic fibrosis, phenylketonuria (PKU), and sickle cell anaemia follow autosomal recessive patterns. Two carrier parents (Aa × Aa) have a 25% chance with each pregnancy of producing an affected child (aa), a 50% chance of a carrier (Aa), and a 25% chance of a non-carrier (AA). Genetic counsellors use these probabilities when advising couples who carry recessive disease alleles.

Autosomal dominant conditions

Huntington's disease and familial hypercholesterolaemia are autosomal dominant — a single copy of the mutant allele produces the disease phenotype. For an affected parent (Aa) and unaffected parent (aa), 50% of offspring are expected to inherit the condition.

ABO blood types

ABO blood type is an example of codominance and multiple alleles. There are three alleles (I^A, I^B, i) and four phenotypes (A, B, AB, O). The Punnett square must represent all three alleles — the calculator handles this with the codominance option, showing all possible offspring blood types and their probabilities.

Common Questions

Can Punnett squares predict sex of offspring?

Yes. Cross the mother's sex genotype (XX) with the father's (XY). The gametes are X from the mother, and either X or Y from the father. The 2×2 grid produces XX (female) and XY (male) in a 1:1 ratio — each pregnancy has approximately a 50% chance of producing a male or female offspring. This ratio holds theoretically; in practice human sex ratios are slightly skewed by other biological factors.

What is a test cross?

A test cross determines whether an organism with the dominant phenotype is homozygous dominant (AA) or heterozygous (Aa) by crossing it with a homozygous recessive organism (aa). If any offspring show the recessive phenotype (aa), the parent was heterozygous. If all offspring show the dominant phenotype, the parent was likely homozygous dominant (though a small sample size limits certainty). Mendel used test crosses extensively in his pea plant experiments.

Why doesn't the observed ratio always match the expected Punnett square ratio?

Punnett square ratios are statistical probabilities. Small sample sizes produce high variance — a cross expected to give 3:1 might yield 4:0 or 2:2 in a litter of four, by chance alone. With large enough samples, observed ratios converge on theoretical ratios. Gene linkage, epistasis (one gene affecting another), incomplete penetrance, and environmental effects can also cause observed ratios to deviate from simple Mendelian predictions.

Can Punnett squares handle three genes simultaneously?

A trihybrid cross (three genes) produces an 8×8 grid with 64 combinations — complex but mathematically tractable. The calculator handles monohybrid and dihybrid crosses. For trihybrid and higher, use the probability multiplication rule: since genes assort independently, the probability for three genes is the product of the individual probabilities for each gene separately.

Build Your Punnett Square

Enter parent genotypes to generate a Punnett square with genotype and phenotype ratios — free, no signup, instant results.

Open Punnett Square Calculator