Free Genetics tool
Punnett Square Calculator
The Punnett Square Calculator generates complete monohybrid ($2\times2$) and dihybrid ($4\times4$) cross matrices to determine genotypic and phenotypic Mendelian ratios. Enter two parent genotypes: one gene (Bb × bb) or two genes (BbRr × BbRr). This calculator builds the complete Punnett square, then reports genotype and phenotype ratios assuming complete dominance. It is the same grid you would draw by hand, expanded automatically so a 16-cell dihybrid cross takes seconds instead of minutes.
Punnett Square Calculator: result
| B | b | |
|---|---|---|
| B | BB | Bb |
| b | Bb | bb |
Genotype ratios
- Bb2/4 (50%)
- BB1/4 (25%)
- bb1/4 (25%)
Phenotype ratios
- B3/4 (75%)
- b1/4 (25%)
Phenotypes assume complete dominance: any uppercase allele masks the lowercase allele.
At a glance
- What it does: Builds the complete Punnett grid for one or two genes and turns the cells into genotype and phenotype ratios.
- Who it is for: Made for students, breeders and counsellors checking a 3:1 or 9:3:3:1 expectation against real offspring.
- Typical result: Returns cell-by-cell probabilities, percentage ratios and a plain reading of what each outcome means.
How to use the punnett square calculator
- Type Parent 1's genotype using gene letters: a capital and lowercase letter for a heterozygote (Bb), two capitals or two lowercase letters for homozygotes (BB or bb). prefill →
- Add a second gene by concatenating pairs, e.g. BbRr for a dihybrid parent. Parent 2 must use the same number of genes. prefill →
- Choose complete dominance for standard Mendelian traits, or the codominance option when heterozygotes show their own phenotype (blood types, roan coats).
- Read the grid: rows are Parent 1's gametes, columns are Parent 2's. Each cell is one possible offspring genotype.
- Use the ratio lists beneath the grid for probability statements: e.g. 'a 25% chance of bb'.
Punnett Square: the formula & its source
Each parent produces gametes by the law of segregation: for every heterozygous locus, half the gametes carry the dominant allele and half carry the recessive allele. A parent with n heterozygous loci produces 2n equally frequent gametes. The cross is the Cartesian product of the two parental gamete sets, so a one-gene cross is a 2×2 grid (4 cells), a two-gene cross is a 4×4 grid (16 cells), and every cell is equally probable.
Genotype ratios are the counts of each allele combination divided by the total number of cells. Phenotype ratios collapse genotypes that express the same trait: under complete dominance, Bb and BB map to the same phenotype, giving the classic 3:1 ratio for a monohybrid heterozygous cross.
| Symbol | Meaning | Unit | Typical range |
|---|---|---|---|
p1 | Parent 1 genotype written along the grid rows | gene letters | BB, Bb or bb; up to two genes |
p2 | Parent 2 genotype written along the grid columns | gene letters | same gene count as Parent 1 |
n | heterozygous loci set in one parent | count | 0 to 2 per cross |
2^n | gamete types that parent contributes | types | 2 for one gene, 4 for two genes |
Punnett Square: worked example
Worked example: Bb × Bb. Both parents are heterozygous, so each makes two gametes: B and b. The 2×2 grid yields BB, Bb, Bb, bb. Genotypes are 1 BB : 2 Bb : 1 bb (25% / 50% / 25%). Phenotypes are 3 dominant : 1 recessive, a 75% chance the offspring shows the dominant trait and 25% the recessive trait.
Example B: test cross against bb
Example B: test cross against bb. Set Parent 1 to Bb and Parent 2 to bb with complete dominance. The grid halves to four cells, two of them Bb, so half the offspring show the dominant trait and half show the recessive one. This is how breeders read the hidden genotype of a dominant-looking parent, and the same reasoning works for a carrier test in a human pedigree. A litter of four can still come back all dominant, so score dozens of offspring before you conclude anything.
How the grid builds the ratio
Each parent carries two alleles at a locus, and segregation hands exactly one of them to each gamete. A heterozygote therefore produces two equally frequent gamete types, while a homozygote produces one. Heterozygous loci multiply: a parent with n of them makes 2n gamete kinds, which is why BbRr contributes B, b, R and r in all four combinations.
The square is simply the full pairing of one parent's gametes against the other's. One gene fills a 2 by 2 grid of four equally likely cells; a second gene grows each edge to four and fills sixteen. Because every gamete is common and the loci combine freely, each cell carries the same weight: one quarter on the small grid, one sixteenth on the large one. Tally the cells and the ratios fall out on their own.
Rows and columns follow a fixed convention: Parent 1's gametes label the rows and Parent 2's label the columns, so any cell is read as one allele from each side. A two-gene parent writes its pairs concatenated, as in BbRr, and the calculator splits them back into loci before pairing anything, which is why both sides must carry the same number of pairs. Because the grid is the full Cartesian product of the two gamete sets, every combination appears exactly once and nothing appears twice. That single property is what lets a count of cells stand in for a probability: four cells means one quarter each, sixteen cells means one sixteenth each, and the ratio lists underneath are just those cell counts grouped by phenotype.
What each cell is worth
Genotype ratios count allele combinations directly. Phenotype ratios merge the genotypes that look identical, which is what hides the 1:2:1 genotype split inside the classic 3:1 phenotype result. Switch the inheritance setting to codominance and the heterozygote gets its own label, so both ratios stay visible side by side.
Every figure on the page is a long-run frequency rather than a promise about one family. Two carrier parents (Aa × Aa) hold a one-in-four chance per pregnancy of an affected child, a half of a carrier child and a quarter of a child who inherited neither copy. Those are the same numbers a counselling session quotes, and they apply whether you imagine four offspring or four hundred, provided the sample is large enough for the counts to settle near the expectation.
The probability lists beneath the grid exist for careful wording. Where the output reads 25% bb, the safe sentence is that a quarter of many such offspring would be bb; the unsafe one is that the fourth child will be. For Bb × Bb the four cells read BB, Bb, Bb and bb, giving 25%, 50% and 25% genotypes and a 75% against 25% phenotype split. Switching the inheritance setting to codominance leaves those counts untouched and only relabels the middle class, which is what you want for blood-type style questions where the heterozygote is its own phenotype rather than a copy of the dominant one.
Assumptions
The calculator runs on Mendel's two rules. Segregation keeps the alleles of a locus apart so every gamete receives one, and independent assortment (or calculate linked genes with our recombination frequency calculator) lets genes on different chromosomes pair without preference. It also assumes every gamete is functional, every fertilisation succeeds and every genotype survives to be scored, so all cells start out equally likely.
Dominance is treated as complete unless you select the codominance option, where heterozygotes keep their own label. Genotypes are parsed as letters in gene order, both parents must carry the same number of allele pairs, and each locus is assumed to hold two alleles only. Sex linkage, imprinting and maternal effects sit outside the model, since the grid always treats both parents as equivalent contributors.
Biological limits
Real litters drift away from the printed ratios whenever an assumption fails. Genes on the same chromosome travel together, so linked loci push counts toward the parental combinations. Lethal genotypes delete cells after fertilisation, incomplete penetrance hides phenotypes the genotype predicts, and unequal embryo or gamete viability means the survivors no longer stand for the original grid.
Sample size draws a hard boundary too. A one-in-four expectation swings widely across litters of four or five, so a single family rarely lands on the ratio. Past two genes the grid reaches 64 cells and then 256, and beyond that the ratio tables carry the same information far more clearly than a wall of cells. Use the square for one or two loci, then fall back on observed counts when biology starts pushing back.
What your punnett square result means
Each cell is a probability, not a promise. A 25% recessive outcome means that across many offspring a quarter will be recessive. In a single litter of four you could still see zero, one, or four. Ratios converge on the expected values as sample size grows.
For humans the same grid applies to single-gene conditions: two carrier parents (Aa × Aa) have a 25% chance per pregnancy of an affected child, a 50% chance of a carrier, and 25% chance of a non-carrier: the numbers behind every genetic-counselling session for autosomal recessive traits.
How to read the output:| Result range | What it means | What to do next |
|---|---|---|
| 3 : 1 | both parents heterozygous at one gene | Expect one recessive in every four |
| 1 : 2 : 1 | genotype counts before phenotypes merge | Compare with genotypes you actually scored |
| 9 : 3 : 3 : 1 | two independent genes in one grid | A skewed tally suggests linkage |
| 50% recessive | test cross against a homozygote | The unknown parent carried one recessive copy |
Common mistakes with the punnett square
- Describing the trait ("tall") instead of entering its alleles: Write gene letters such as Tt; the grid parses allele pairs only, so phenotype wording gives it nothing to cross.
- Expecting a 25% outcome in every four-offspring litter: Treat ratios as long-run frequencies. Small litters scatter widely, so compare counts across dozens of offspring first.
- Feeding it genes that sit on the same chromosome: Linked loci break independent assortment, so read the output as a starting point and judge it against observed counts.
- Giving the two parents a different number of genes: Match the gene count on both sides, for example BbRr against bbRr, so every locus lines up with its partner.
Limits of the punnett square calculator
This calculator assumes independent assortment, equal gamete viability, and no lethal genotypes. Real data drifts from 3:1 when alleles are linked on the same chromosome, when some genotypes die before birth, or when penetrance is incomplete. For three or more genes, extend the same logic manually. A 64-cell grid is rarely worth automating.
Research note from Dr. Dinesh A. Nagegowda, PhD: Punnett square grids provide visual clarity for tracking allele combinations, but their output represents probabilistic expectations across infinite progeny. In actual experimental crosses with small sample sizes, random segregation variance produces natural deviations from the expected 3:1 or 1:2:1 ratios. We instruct students and researchers to perform chi-square testing on raw counts rather than percentages to verify genetic models.
Sources
- Campbell Biology (Pearson), Mendel's principles of inheritance (used for: law of segregation and independent assortment behind every grid)
- OpenStax Biology 2e, Laws of Inheritance (used for: monohybrid 3:1 and dihybrid 9:3:3:1 ratio derivations)
- Edwards (2012), Punnett's square, Studies in History and Philosophy of Science (used for: history of the grid method this calculator automates)
- Punnett, Mendelism, full text (Project Gutenberg) (used for: original presentation of genotype ratios from paired crosses)
Cite This Calculator
For laboratory course reports, academic papers, or institutional protocols (APA format):
Punnett Square: frequently asked questions
What does the Punnett square actually predict?
It predicts probabilities for offspring genotypes and phenotypes from two parents. Each cell is one equally likely combination; ratios are those cells expressed as fractions or percentages.
Can I use it for two traits at once?
Yes. Enter four letters per parent, such as BbRr × BbRr. The calculator builds the full 16-cell dihybrid grid and reports both genotype and combined-phenotype ratios.
Why does my 3:1 ratio not match my litter?
Small samples vary widely. A 25% expected outcome falls outside a four-offspring litter more often than not; ratios only converge over dozens of observations.
Does it work for blood type or codominance?
Use the codominance option for heterozygotes that express their own phenotype (AB blood type, roan coats). The grid is identical. Only how heterozygotes are labelled changes.
Found a number that does not match its source? Report a mistake. Corrections are published in place and the page date is updated.
Something on this page not matching its cited source? Report it.