Dihybrid Cross Punnett Square Calculator
Builds the 4 × 4 Punnett square for two independently inherited genes. Choose each parent's genotype for gene A (AA, Aa or aa) and gene B (BB, Bb or bb); the calculator lists each parent's four gametes, fills all 16 boxes, and gives the probability of all nine genotypes and four phenotypes along with the reduced genotypic and phenotypic ratios, such as 9 : 3 : 3 : 1 for AaBb × AaBb.
- Two autosomal genes, each with one dominant and one recessive allele.
- The genes assort independently (unlinked) and each gamete combination is equally likely.
- Complete dominance at both genes and no interaction between them.
- No mutation, selection or lethal genotypes; probabilities apply to each offspring independently.
Formula
Gametes per parent = 2 × 2 = 4 (one allele of each gene). Boxes = 4 × 4 = 16. P(genotype) = boxes with that genotype ÷ 16 = P(gene A genotype) × P(gene B genotype). Ratio = box counts ÷ their greatest common divisor
- Each parent's gametes pair every allele of gene A with every allele of gene B (the FOIL method): AaBb gives AB, Ab, aB and ab. Homozygous genes repeat a gamete, so every cross still uses 16 equally likely boxes.
- The mother's gametes head the columns and the father's gametes head the rows. In each box the dominant allele of each gene is written first.
- Phenotypes assume complete dominance: a box shows the dominant form of a gene if it has at least one capital letter for that gene. AB means dominant for both traits; ab means recessive for both.
- Because the genes assort independently, each probability equals the product of the two single-gene probabilities (for example ¾ × ¾ = 9/16 for the AB phenotype in AaBb × AaBb).
- Percentages are rounded to 2 decimal places; the box counts in brackets are exact. Ratios list only outcomes that can occur.
Classic double heterozygote cross (AaBb × AaBb)
Inputs
- Gene A: Aa
- Gene B: Bb
- Gene A: Aa
- Gene B: Bb
Both parents make AB, Ab, aB and ab gametes. Of the 16 boxes, AABB, AAbb, aaBB and aabb appear once each, AABb, AaBB, Aabb and aaBb twice each and AaBb four times, so the genotypic ratio is 1 : 2 : 1 : 2 : 4 : 2 : 1 : 2 : 1. Grouping by appearance gives 9 AB : 3 Ab : 3 aB : 1 ab, so 56.25% show both dominant traits and 6.25% show both recessive traits.
Sources & references
Frequently asked questions
Why is the dihybrid ratio 9 : 3 : 3 : 1?
For AaBb × AaBb, each gene on its own gives a 3 : 1 split of dominant to recessive phenotypes. Multiplying the two independent splits gives (3 : 1) × (3 : 1) = 9 : 3 : 3 : 1. Any other parental genotypes give different ratios, which the calculator works out from the grid.
How do I find the gametes of a parent?
Take one allele of gene A and one allele of gene B in every combination. For AaBb these are AB, Ab, aB and ab. For AAbb every gamete is Ab, which is why a homozygous parent's row or column labels repeat.
Can I calculate a dihybrid probability without the square?
Yes. Use the single-gene probabilities and multiply. For Aabb × AaBb, P(aabb) = P(aa from Aa × Aa) × P(bb from bb × Bb) = ¼ × ½ = ⅛, or 12.5%. The square shows the same answer box by box.
When does a dihybrid Punnett square give the wrong answer?
It assumes the two genes are on different chromosomes or far apart on the same one. Linked genes travel together, so recombinant gametes are rarer than the square predicts. It also assumes complete dominance and no gene interaction (epistasis), which changes ratios like 9 : 3 : 3 : 1 into 9 : 3 : 4 or 9 : 7.
What is a test cross?
Crossing an individual that shows both dominant traits with a double recessive (aabb) reveals its genotype. If it is AaBb, the offspring appear in a 1 : 1 : 1 : 1 ratio of AB, Ab, aB and ab; if it is AABB, all offspring show both dominant traits.
Related calculators
Punnett Square Calculator Builds the 2 × 2 Punnett square for a single gene. Pick each parent's genotype (AA, Aa or aa) and the calculator lists the gametes, fills the grid, and gives the chance of every offspring genotype and phenotype with the genotypic and phenotypic ratios. It handles complete dominance and incomplete dominance or codominance, and shows how many offspring with the dominant trait are hidden carriers. Trihybrid Cross Punnett Square Calculator Builds the full 8 × 8 Punnett square for three independently inherited genes. Set each parent's genotype for genes A, B and C (homozygous dominant, heterozygous or homozygous recessive) to see each parent's eight gametes, all 64 boxes, the probability of every offspring genotype and phenotype that can occur, and the reduced genotypic and phenotypic ratios, such as 27 : 9 : 9 : 9 : 3 : 3 : 3 : 1 for AaBbCc × AaBbCc. Hardy–Weinberg Equilibrium Calculator Applies the Hardy–Weinberg principle in three ways. Enter allele frequencies (two to five alleles) to get every expected genotype frequency; start from one known genotype or phenotype frequency, such as the share of people affected by a recessive disease or the share who are carriers, to recover p, q, p², 2pq and q² and the carrier rate as '1 in X'; or enter observed AA, Aa and aa counts to get allele frequencies, expected counts and a chi-square test of whether the sample is in equilibrium. Allele Frequency Calculator Works out allele frequencies three ways. From the prevalence of a recessive condition (as '1 in N' or a percentage) it finds the disease allele frequency q, the normal allele frequency p, the share of non-carriers, carriers and affected people, and the carrier rate as '1 in X'. From AA, Aa and aa genotype counts it counts alleles to get p, q and the minor allele frequency, and from raw allele counts it handles up to five alleles.