Punnett Square Calculator
Dihybrid cross — predict offspring genotype and phenotype probabilities for two independent traits.
💡 Quick Summary
Predict offspring genotype and phenotype probabilities for a dihybrid (two-trait) cross. Select parental genotypes using radio buttons or custom input, define your allele symbols, and instantly see the 4×4 Punnett square, all 9 possible genotypes, ratios, and researcher-grade insights including parental gametes, heterozygosity metrics, chi-square goodness-of-fit, and expected offspring counts.
📋 How to Use
- Select or enter the Mother's Traits: choose a preset for Trait 1 (e.g. Aa) and Trait 2 (e.g. Bb), or type a full 4-character custom genotype (e.g. AaBb) in the custom input field.
- Repeat for the Father's Traits in the same way.
- Confirm or update the allele symbols: enter the dominant letter (e.g. A) and recessive letter (e.g. a) for each trait. They must each be unique single characters.
- The 4×4 Punnett square, all genotype chances, ratios, and researcher insights update automatically as you type.
- Scroll to the Researcher Insights sections to see parental gametes, heterozygosity metrics, and the chi-square analysis where you can enter your own observed offspring counts.
- Use Expected Offspring to enter a total count and calculate how many offspring of each phenotype class to expect.
- Click Download results as PDF to open a print-ready version of all results in a new window.
- Click Clear all changes to reset everything to the default AaBb × AaBb cross.
🧮 Formulas & Logic
📊 Result Interpretation
The classic result of an AaBb × AaBb (dihybrid) cross. Arises when the two genes assort independently and dominance is complete at both loci.
Produced by a dihybrid × double recessive (AaBb × aabb) test cross. Confirms independent assortment and reveals the gamete frequencies of the dihybrid parent.
When both parents share the same homozygous allele at one locus, that locus has no variation in offspring, collapsing the cross effectively to a monohybrid ratio.
If both parents are homozygous at both loci (e.g. AABB × aabb), all offspring are identical dihybrids — this is an F₁ generation with 100% heterozygosity.
No statistically significant deviation from expected Mendelian ratios. Your data are consistent with the theoretical model.
Statistically significant deviation. Possible causes: linked genes, selection, small sample size, or non-Mendelian inheritance.
All offspring at this locus are homozygous — either because one or both parents are homozygous.
Half of all offspring are heterozygous at this locus — typical of a Aa × AA or Aa × aa cross.
All offspring are heterozygous at this locus (e.g. AA × aa cross).
🔬 Applications
- Plant and animal breeding — predicting phenotype frequencies in F₂ and back-cross generations
- Genetic counselling — estimating probability of offspring inheriting combinations of two recessive disorders
- Teaching Mendel's Law of Independent Assortment (Second Law)
- Experimental design — calculating minimum sample sizes needed to detect deviations from expected ratios
- Test-cross analysis — confirming the genotype of an organism expressing a dominant phenotype at both loci
- Agricultural genetics — selecting for or against specific trait combinations in crop improvement
- Conservation genetics — estimating heterozygosity to predict fitness and genetic diversity in managed populations
⚠️ Common Mistakes & Warnings
This calculator models two genes that segregate independently — located on different chromosomes or far apart on the same chromosome. Linked genes violate this assumption and will produce ratios that deviate from the 9:3:3:1 classic pattern.
The phenotype model used here assumes complete dominance: any organism carrying at least one dominant allele expresses the dominant phenotype. It does not model codominance, incomplete dominance, or epistasis.
The ratios shown are expected probabilities from random fertilisation. Actual offspring counts in small litters or samples will deviate due to chance. The chi-square section helps you assess whether observed deviations are within expected statistical variation.
Each allele symbol (d1, r1, d2, r2) must be a single unique character. Using the same letter for dominant and recessive, or for both traits, will prevent calculation.