Punnett Square Calculator

Predict offspring genotype and phenotype frequencies using Mendelian inheritance. Enter parental genotypes (e.g., Aa, AaBb, aaBB) and instantly generate a complete Punnett square with gamete combinations, genotypic ratios, and phenotypic distributions.

Use letters for each gene locus (uppercase = dominant, lowercase = recessive). Locus order is preserved. Spaces are ignored.
Same number of loci as Parent 1. Example: both monohybrid (Aa) or dihybrid (AaBb).
? Monohybrid (Aa × Aa)
? Pure cross (AA × aa)
? Test cross (Aa × aa)
?? Dihybrid (AaBb × AaBb)
? Two‑trait (AABb × aaBb)
? Three‑loci (advanced)
100% local processing – No genetic data leaves your browser. All calculations are performed offline, respecting your privacy.

Understanding the Punnett Square: Principles & Applications

The Punnett square, devised by British geneticist Reginald C. Punnett (1875–1967), is a visual diagram used to predict the probability of an offspring inheriting a particular genotype. It represents all possible gamete combinations from two parents and serves as a cornerstone of classical Mendelian genetics. This calculator extends the concept to monohybrid (single trait), dihybrid (two traits), and even multi‑locus crosses, making it an indispensable resource for students, breeders, and researchers.

Mendel’s law of segregation: Each parent contributes one allele per locus. The Punnett square enumerates every union, yielding precise genotypic ratios (e.g., 1:2:1 for Aa × Aa) and phenotypic ratios (3:1 for complete dominance).
Step‑by‑Step Example: Dihybrid Cross AaBb × AaBb

Step 1 – Determine possible gametes from each parent: For a dihybrid AaBb, each parent produces 4 gametes: AB, Ab, aB, ab (independent assortment).

Step 2 – Set up a 4×4 grid: Place paternal gametes on top, maternal gametes on left.

Step 3 – Fill each cell by combining alleles from both gametes: e.g., AB (from father) + ab (from mother) → AaBb.

Step 4 – Count genotype frequencies: 1 AABB, 2 AABb, 1 AAbb, 2 AaBB, 4 AaBb, 2 Aabb, 1 aaBB, 2 aaBb, 1 aabb → ratio 1:2:1:2:4:2:1:2:1.

Step 5 – Determine phenotypes: Assuming complete dominance (A = dominant, a = recessive; B = dominant, b = recessive). Any genotype with at least one A and one B shows both dominant traits. The classic 9:3:3:1 ratio appears: 9 A_B_ (dominant/dominant), 3 A_bb (dominant/recessive), 3 aaB_ (recessive/dominant), 1 aabb (recessive/recessive).

Connecting Punnett squares to probability rules:
The probability of a specific offspring genotype equals the product of independent probabilities of receiving each allele. For a monohybrid cross Aa × Aa, the chance of aa = P(receive a from father) × P(receive a from mother) = 0.5 × 0.5 = 0.25. The Punnett square visually confirms 1 out of 4 squares = aa. For dihybrid crosses, the multiplication rule extends: probability of AaBb = P(Aa) × P(Bb) = (1/2)×(1/2)=1/4, which matches the 4/16 count. The addition rule is used for mutually exclusive outcomes.

How to Use the Interactive Punnett Square Tool

  • Enter parental genotypes using standard genetic notation: uppercase = dominant allele, lowercase = recessive. For multiple loci, concatenate letters (e.g., AaBb). The number of loci must be identical for both parents.
  • Predefined examples — click on any example button to instantly load monohybrid, dihybrid, or test crosses.
  • Interpretation — the interactive grid shows all zygote combinations. Below the grid, you get detailed genotype frequencies (counts and ratios) as well as a phenotype breakdown based on dominant/recessive rules.
  • Advanced usage — the tool supports up to 3 independent loci (e.g., AaBbCc). Gamete generation automatically handles allele segregation and independent assortment.

The Science Behind the Calculation

Given two parental genotypes, the algorithm first parses each genotype into individual gene loci (pairs of alleles). For each locus, it extracts the two alleles; then it generates all possible gametes using the Cartesian product of alleles across loci. The Punnett square is built by pairing each maternal gamete with each paternal gamete. Offspring genotype is obtained by merging gamete alleles per locus (one from each parent).

Phenotypes are computed per locus: if at least one dominant allele (uppercase) is present, the dominant trait is expressed; otherwise the recessive trait appears. For multiple loci, the overall phenotype is a tuple of traits (e.g., "Dominant, Recessive"). The calculator aggregates identical phenotype combinations to provide intuitive ratios.

All results are expressed both as raw counts and simplified fractions/percentages, ensuring full transparency for educational or research contexts.

Real‑World Applications

  • Agriculture & plant breeding: Predict traits like flower color, seed shape, disease resistance. F1 hybrids (Aa) often display hybrid vigor; breeders use F2 crosses (Aa × Aa) to recover homozygous recessive (aa) or homozygous dominant (AA) lines.
  • Genetic counseling: Estimate recurrence risks for autosomal dominant/recessive disorders. Example: Cystic fibrosis (autosomal recessive). Two carriers (Cc) have a 25% chance of having an affected child (cc).
  • Animal husbandry: Optimize mating strategies to achieve desired coat color, size, or production traits. Example: Brown eyes (B) dominant over blue eyes (b) in dogs. Two brown‑eyed Bb parents can produce a blue‑eyed bb puppy with 25% probability.
  • Classroom education: Demonstrates Mendel’s laws interactively, reinforcing probability concepts.

Advanced Concepts & Tool Limitations

Polygenic Traits

Many traits (height, skin color, intelligence) are influenced by multiple genes. This tool assumes single‑gene (monogenic) inheritance. Polygenic traits produce continuous variation and cannot be predicted with a simple Punnett square.

Sex‑Linked Inheritance

X‑linked recessive disorders (e.g., hemophilia, color blindness) follow different patterns because males have only one X chromosome. This calculator is designed for autosomal genes. A future version will include sex‑linked cross support.

Penetrance & Expressivity

Even with a given genotype, the phenotype may not be fully expressed (incomplete penetrance) or may vary in severity (variable expressivity) due to environmental factors or modifier genes. This calculator assumes 100% penetrance and uniform expressivity, which is true for many Mendelian traits but not all.

Case Study: Mendel’s Pea Plant Dihybrid Cross

Gregor Mendel crossed pea plants that were heterozygous for seed shape (Rr) and seed color (Yy): RrYy × RrYy. Using our calculator, enter both parents as AaBb (mapping A = round dominant, a = wrinkled; B = yellow dominant, b = green). The Punnett square yields 16 boxes with a classic 9:3:3:1 phenotypic ratio: 9 round yellow : 3 round green : 3 wrinkled yellow : 1 wrinkled green. This interactive tool confirms Mendel’s principle of independent assortment and provides a hands‑on validation.

Genotype vs. Phenotype: Clarifying Terminology

Term Definition Example (Monohybrid)
Genotype Genetic constitution of an individual at a specific locus AA, Aa, aa
Phenotype Observable physical/physiological trait Purple flowers (dominant) vs white flowers (recessive)
Homozygous Two identical alleles AA or aa
Heterozygous Two different alleles Aa

Frequently Asked Questions

Currently, the calculator assumes complete dominance (dominant allele masks recessive). However, you may interpret heterozygote phenotypes separately by inspecting genotype frequencies (e.g., 1:2:1 ratio for incomplete dominance). A future upgrade will include explicit codominance options.

The tool will show an error message. Both parents must have the same number of gene loci (e.g., both monohybrid or both dihybrid) to generate valid gamete combinations.

Up to 3 independent loci are supported (e.g., AaBbCc). For 3 loci, the grid may become large (8×8 = 64 cells), but the calculator handles it efficiently, displaying scrollable tables.

Yes, the calculations follow Mendelian segregation and independent assortment. For linked genes (genetic linkage) results may differ; this tool assumes independent assortment (loci on different chromosomes or far apart).

The phenotype string lists dominant/recessive status for each locus in order. For example, “Dominant, Recessive” means the first trait shows dominant form, the second trait shows recessive form. The ratio shows the expected fraction among all offspring.

Trusted genetics resource — This tool is built on established genetic principles from Mendel (1865), refined by Punnett (1905), and validated against standard genetics textbooks (Campbell Biology, Griffiths et al.). Regular updates ensure accuracy. Reviewed by the GetZenQuery Tech team. Last update: April 2026. Accuracy validated against multiple test cases (monohybrid, dihybrid, test cross, three‑loci).