Trihybrid Cross Calculator
Sixty-four boxes and twenty-seven genotypes, which is why nobody draws this one by hand.
The formula
gametes are one allele per gene; offspring are every pairing of one gamete from each parent
The ratios are results, not rules
This page builds the square from first principles for any number of genes: it works out every gamete each parent can make, pairs them all, and tallies what comes out. The familiar 3:1, 9:3:3:1 and 27:9:9:9:3:3:3:1 are not written into the code anywhere — they emerge from the counting, which is the only honest way to present them.
Independent assortment is an assumption
The dihybrid ratio requires the two genes to assort independently, which is true only if they sit on different chromosomes or far enough apart on the same one. Genes close together are linked and inherited together far more often than chance allows, and the observed ratio then departs from 9:3:3:1 in a way that measures how close they are. Mendel's seven pea traits happened to assort independently, which was a considerable piece of luck.
Complete dominance is also an assumption
The phenotype counts here assume one allele completely masks the other. Where dominance is incomplete the heterozygote looks like neither parent and the phenotype ratio becomes 1:2:1, matching the genotypes. Where both alleles show, as in AB blood type, the same thing happens for a different reason.
Ratios are expectations, not promises
Every genetic ratio on these pages is a probability distribution, not a guarantee. A 3:1 cross does not produce three dominant offspring for every recessive one in a litter of four — it produces each offspring independently with a three-quarters chance. Small families depart from the expected ratio routinely, and that is the reason Mendel needed thousands of pea plants rather than dozens.