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.
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.
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).
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.
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.
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.
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.
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.
| 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 |