Home › Calculators › Punnett Square Calculator

Punnett Square Calculator

Type the genotypes of two parents, such as AaBb and aaBb, to draw the Punnett square and get every offspring genotype and phenotype with its ratio, fraction and percentage. Works for one to four genes, with complete, incomplete or codominant alleles.

Last updated:

Examples:

Two letters per gene, same letter for both alleles: capital = dominant allele, lowercase = recessive (e.g. Aa, AaBb, AABbcc). Up to 4 genes.

Punnett square

Genotype ratio

Phenotype ratio

Advertisement
Advertisement

How to use the Punnett Square Calculator

  1. Enter Parent 1's genotype, two letters per gene: a capital letter for the dominant allele and a lowercase letter for the recessive one, e.g. AaBb.
  2. Enter Parent 2's genotype using the same gene letters, e.g. aaBb. The order of the genes does not matter.
  3. Optionally name the traits and set the dominance type for each gene (complete, incomplete or codominant).
  4. Press Calculate cross (results also update as you type) to see the Punnett square, genotype ratio and phenotype ratio.
  5. Copy or download the results as text or CSV for homework, lab reports or breeding notes.

How the Punnett square works

Each parent carries two alleles for every gene and passes exactly one of them to each offspring. By Mendel's law of segregation the two alleles separate into gametes with equal probability, and by the law of independent assortment alleles of different genes are sorted independently. A parent with n genes therefore produces 2n equally likely gametes (some may be identical), and the square has 2n × 2n boxes:

  • Monohybrid (1 gene): 2 gametes per parent, 4 boxes, each worth 1/4 = 25%.
  • Dihybrid (2 genes): 4 gametes, 16 boxes, each 1/16 = 6.25%. For AaBb the gametes are AB, Ab, aB and ab.
  • Trihybrid (3 genes): 8 gametes, 64 boxes, each 1/64 ≈ 1.56%.

The probability of a genotype is simply (number of boxes with that genotype) ÷ (total boxes). The same answer comes from the product rule: for AaBb × aaBb, P(aabb) = P(aa) × P(bb) = 1/2 × 1/4 = 1/8, which the calculator shows as 2 of 16 boxes.

Classic crosses and their ratios

CrossGenotype ratioPhenotype ratio (complete dominance)Typical use
AA × aaall Aa100% dominantP generation of a true-breeding cross
Aa × Aa1 : 2 : 13 : 1Mendel's F1 self-cross
Aa × aa1 : 11 : 1Test cross on a heterozygote
AaBb × AaBb1:2:1:2:4:2:1:2:19 : 3 : 3 : 1Dihybrid F1 self-cross
AaBb × aabb1 : 1 : 1 : 11 : 1 : 1 : 1Dihybrid test cross
AaBb × aaBb1:2:1:1:2:13 : 3 : 1 : 1Mixed cross (one gene test-crossed)
AaBbCc × AaBbCc27 genotypes27 : 9 : 9 : 9 : 3 : 3 : 3 : 1Trihybrid self-cross
Rr × Rr (incomplete)1 : 2 : 11 red : 2 pink : 1 whiteSnapdragon flower color

Tips for writing genotypes

  • Use one letter per gene and the same letter for both alleles: Bb, not Bc. Capital = dominant allele, lowercase = recessive.
  • Homozygous dominant is two capitals (AA), homozygous recessive two lowercase (aa), and heterozygous one of each (Aa).
  • For incomplete dominance or codominance (like flower color or roan coats), still use R/r and pick the matching dominance option so the heterozygote gets its own phenotype.
  • Blood types involve three alleles (IA, IB, i), which a two-allele square can't show; use the Blood Type Calculator for those.
  • Checking lab data? Compare your observed offspring counts to the expected ratio with the Chi-Square Calculator.

Frequently asked questions

How do you fill in a Punnett square?

List every gamete Parent 1 can make across the top and every gamete Parent 2 can make down the side. Each gamete carries one allele of each gene. Then fill each box by combining the row gamete with the column gamete. Each box is one equally likely offspring, so a 2 × 2 square gives 25% per box and a 4 × 4 square gives 6.25% (1/16) per box.

What is the phenotype ratio of a dihybrid cross AaBb × AaBb?

With complete dominance for both genes the phenotype ratio is 9:3:3:1: 9/16 show both dominant traits, 3/16 show dominant A with recessive b, 3/16 show recessive a with dominant B, and 1/16 show both recessive traits. The genotype ratio is 1:2:1:2:4:2:1:2:1 across nine genotypes.

What is the ratio for a monohybrid cross Aa × Aa?

The genotype ratio is 1 AA : 2 Aa : 1 aa. With complete dominance the phenotype ratio is 3 dominant : 1 recessive (75% and 25%). With incomplete dominance or codominance the heterozygote looks different, so the phenotype ratio becomes 1:2:1, the same as the genotype ratio.

What is a test cross?

A test cross breeds an individual showing the dominant trait with a homozygous recessive individual (aa) to find out whether it is AA or Aa. If any offspring show the recessive trait, the parent must be Aa; an Aa × aa cross gives a 1:1 ratio, while AA × aa gives 100% dominant-looking Aa offspring.

What is the difference between incomplete dominance and codominance?

In incomplete dominance the heterozygote shows a blend of the two traits, such as pink snapdragons from red and white parents. In codominance both alleles are fully expressed side by side, such as AB blood type or roan cattle with both red and white hairs. In both cases a heterozygote looks different from either homozygote.

Does this calculator assume genes are unlinked?

Yes. Like a textbook Punnett square, it assumes Mendel's law of independent assortment, meaning each gene is on a different chromosome or far enough apart that they are inherited independently. Linked genes, sex-linked traits and traits controlled by many genes do not follow these simple ratios.

Why are the real offspring counts different from the predicted ratio?

A Punnett square gives probabilities, not guarantees. Each offspring is an independent random event, so a litter of 8 from Aa × Aa parents will not always contain exactly 6 dominant and 2 recessive. With large numbers the observed ratio gets close to the prediction, and a chi-square test can tell whether a difference is likely due to chance.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Blood Type CalculatorPossible child blood types and their odds from both parents' ABO and Rh types, with Punnett squares.Chi-Square CalculatorChi-square goodness-of-fit and independence tests with p-value and expected counts.Probability CalculatorFind and, or, not, conditional and at-least-once probabilities from P(A) and P(B).Ratio CalculatorSimplify, solve and scale ratios with step-by-step working.DNA Reverse ComplementGet the reverse, complement or reverse complement of DNA/RNA, FASTA and IUPAC codes supported.DNA to Protein TranslatorTranslate DNA or RNA into protein in all six reading frames with stop codons highlighted.GC Content CalculatorDNA/RNA GC %, AT %, base counts, GC skew and a sliding-window GC plot from any sequence or FASTA.Lewis Structure GeneratorDraw Lewis dot structures with valence electrons, lone pairs, formal charges and VSEPR shape.Molar Mass CalculatorMolar mass of any chemical formula with an element-by-element mass % breakdown.Interactive Periodic TableAll 118 elements with colour modes, filters, search and full element details.Chemical Equation BalancerBalance chemical, ionic and redox equations with the matrix method and steps.Molarity CalculatorSolve mass, volume, molarity or molar mass, and C1V1 = C2V2 dilutions with units.pH CalculatorConvert pH, pOH, [H+] and [OH-], or find the pH of strong and weak acids and bases.Dilution CalculatorSolve C1V1 = C2V2 for any variable: stock volume, final volume or concentration, with units.Percent Yield CalculatorPercent yield from actual and theoretical yield, or theoretical yield from moles and formulas.PPM CalculatorConvert ppm to mg/L, %, ppb and mg/kg, find ppm of a solution, or ppm to mg/m³ for gases.Grams to Moles CalculatorConvert grams to moles and back from a chemical formula, with molar mass and atom counts.Buffer pH CalculatorBuffer pH from pKa and acid/base concentrations, or the recipe for a target pH.Combined Gas Law CalculatorSolve P1V1/T1 = P2V2/T2 for any variable, with Boyle's, Charles's and Gay-Lussac's modes.Electron Configuration CalculatorFull and noble-gas shorthand electron configuration, orbital diagram and valence electrons.Empirical Formula CalculatorElement percentages or grams to mole ratios, empirical formula and molecular formula.Gibbs Free Energy CalculatorΔG from ΔH, ΔS and temperature, with spontaneity, crossover temperature and K.Mass Percent CalculatorMass percent of a solution, percent composition of a formula, or mass for a target %.Molality CalculatorMolality from grams or moles of solute and solvent mass, or solve for either one.Moles to Atoms CalculatorConvert moles, grams and atoms or molecules with Avogadro's number, atoms per element.Protons Neutrons Electrons CalculatorCount protons, neutrons and electrons for any element, isotope or ion, with isotope notation.Serial Dilution CalculatorConcentration, transfer and diluent volume for every tube of a dilution series.Soap Lye CalculatorNaOH or KOH and water for a soap recipe from oil SAP values, superfat and water ratio.Theoretical Yield CalculatorTheoretical yield in grams and moles from limiting reagent mass and mole ratio.Titration CalculatorAnalyte concentration or equivalence volume from a titration, with pH curve and indicator.Stoichiometry CalculatorFrom one known mass or mole amount, get moles and grams of every reactant and product.Six Sigma CalculatorDPMO, yield and sigma level from defects, with the 1.5 sigma shift and a conversion table.Beer-Lambert Law CalculatorSolve A = εlc for absorbance, concentration, molar absorptivity or path length; %T conversion.Boyle's Law CalculatorSolve P1V1 = P2V2 for any missing pressure or volume, with units, gauge option and steps.Centrifuge RPM to RCF CalculatorConvert centrifuge RPM to RCF (× g) or RCF to RPM from rotor radius, with an RPM chart.Charles's Law CalculatorSolve V1/T1 = V2/T2 for volume or temperature, with °C, °F or K converted to kelvin.Hardy-Weinberg CalculatorAllele frequencies, expected genotypes and a chi-square equilibrium test from counts or p, q.Normality CalculatorFind normality from mass or molarity, and how much solid or stock acid makes an N solution.Oxidation Number CalculatorEnter a formula or ion to get the oxidation state of every element, with the rules used.Percent Solution CalculatorHow much solute and solvent for a w/v, w/w or v/v % solution, plus % from amounts and dilutions.Valence Electrons CalculatorValence electrons for any element, ion or molecule formula, with group-by-group working.
See all 35 Chemistry & Biology Calculators →