Worked example
Worked example: Aa × Aa. Gametes A or a from each parent. The square gives AA : Aa : aa = 1 : 2 : 1, and the phenotype ratio is 3 dominant : 1 recessive.
The formula
The method: Mendel's law of segregation, one allele per gene per gamete, combined by the product rule: the probability of a compound genotype is the product of its per-gene probabilities (Mendel, 1866; any genetics text).
How do I write the parents?
Two letters per gene, dominant allele uppercase: Aa, AA, aa, or two genes like AaBb. Order within a pair does not matter.
Can it do dihybrid crosses?
Yes, enter four letters per parent such as AaBb. Each gene segregates independently, so the square covers all combinations.
What if the genes are linked?
The square assumes independent assortment. Linked genes need recombination frequencies, which this simple model does not cover.