Epistasis Calculator
An epistasis calculator is an interactive genetics tool that predicts the phenotypic ratios of a dihybrid cross when one gene masks or modifies the expression of another. Use it to work out the offspring of crosses that show modified Mendelian ratios like 9 to 3 to 4, 12 to 3 to 1, 9 to 7, or 15 to 1 instead of the classic 9 to 3 to 3 to 1.
Epistasis Calculator
Pick the parental genotypes, choose an epistasis mode, and see the 4 by 4 Punnett square with the modified 9 to 3 to 4, 12 to 3 to 1, 9 to 7, or 15 to 1 ratio for each offspring.
Punnett Square
How to Use the Epistasis Calculator
- Pick the epistasis mode: choose Recessive (9 to 3 to 4), Dominant (12 to 3 to 1), Duplicate Recessive (9 to 7), or Duplicate Dominant (15 to 1) based on the gene interaction you are studying.
- Set the father’s genotype: choose from 9 options covering homozygous dominant, heterozygous, and homozygous recessive for both genes.
- Set the mother’s genotype: same 9 options. The dihybrid cross calculator will combine these to predict offspring.
- Read the 4 by 4 Punnett square: each cell shows the offspring genotype, the underlying 9 to 3 to 3 to 1 base class (A_B_, A_bb, aaB_, aabb), and the merged phenotype after epistasis is applied.
- Use a preset chip to load a real biological cross (Labrador coat color, summer squash color, sweet pea color, wheat seed color) for instant analysis with the correct epistasis mode pre-selected.
What Is Epistasis?
Epistasis happens when the allele at one gene masks or modifies the expression of alleles at a different gene. In a standard dihybrid cross of two heterozygous parents (AaBb x AaBb), you expect the classic 9 to 3 to 3 to 1 phenotypic ratio. When epistasis is involved, some of those four phenotypic classes merge into each other, producing a modified Mendelian ratio that reveals how the two genes interact.
Use this epistasis calculator to work out the four standard epistasis modes. Each one corresponds to a different biological mechanism, and the modified Mendelian ratio you get from a cross is a strong clue to which mechanism is at work.
The Four Standard Epistasis Modes
Each mode modifies the classic 9 to 3 to 3 to 1 ratio in a specific way:
- Recessive epistasis (9 to 3 to 4): a homozygous recessive genotype at one gene (aa) masks the phenotype of the other gene. The 3 and 1 classes collapse into a single 4 class. Classic example: Labrador coat color, where the ee genotype prevents any pigment deposition regardless of the B locus.
- Dominant epistasis (12 to 3 to 1): a dominant allele at one gene (A_) masks the other gene. The 9 and 3 classes collapse into a single 12 class. Classic example: summer squash color, where the dominant A allele blocks pigment production entirely, producing white fruit.
- Duplicate recessive epistasis (9 to 7): homozygous recessive at EITHER gene blocks the pathway. The 3, 3, and 1 classes collapse into a single 7 class. Classic example: sweet pea flower color, where both genes are needed in working form to produce purple pigment.
- Duplicate dominant epistasis (15 to 1): a working dominant allele at EITHER gene is enough for the phenotype. Only the double homozygous recessive (aabb) lacks the trait. Classic example: wheat seed color, where two redundant genes both contribute to red pigment production.
How the Epistasis Calculator Works
The epistasis calculator builds a 4 by 4 Punnett square from the parental genotypes. The father contributes one allele from each gene per gamete; the mother does the same. With two heterozygous parents, there are 16 possible offspring genotypes.
These 16 genotypes fall into four base classes under standard independent assortment:
- A_B_: dominant at both genes (9 of 16 in a standard cross)
- A_bb: dominant at gene 1, homozygous recessive at gene 2 (3 of 16)
- aaB_: homozygous recessive at gene 1, dominant at gene 2 (3 of 16)
- aabb: homozygous recessive at both genes (1 of 16)
When epistasis is active, the calculator merges these four classes according to the selected mode. The recessive epistasis 9 to 3 to 4 calculator merges the 3 and 1 classes into a single masked class, giving 9 + 3 + 4 = 16. The dominant epistasis 12 to 3 to 1 calculator merges the 9 and 3 classes. And so on.
Worked Examples
Example 1: Recessive Epistasis 9 to 3 to 4 (Labrador Coat Color)
Labrador coat color is controlled by two genes. The B gene produces black pigment (B_) or brown pigment (bb). The E gene controls pigment deposition. Dogs with the ee genotype are yellow regardless of their B genotype, because no pigment gets deposited in the hair.
Setup: Father BbEe, Mother BbEe, recessive epistasis mode.
Grid:
Row 1 (mother BE): BEBE, BEBe, BEbE, BEbe
Row 2 (mother Be): BeBE, BeBe, BebE, Bebe
Row 3 (mother bE): bEBE, bEBe, bEbE, bEbe
Row 4 (mother be): beBE, beBe, bebE, bebe
Results: 9 black (B_E_) : 3 brown (E_bb) : 4 yellow (eeB_ and eebb merged). The recessive epistasis 9 to 3 to 4 ratio is the hallmark of this interaction. Cross two heterozygous black Labs and you get 9 black : 3 brown : 4 yellow puppies on average.
Example 2: Dominant Epistasis 12 to 3 to 1 (Summer Squash)
Summer squash color is controlled by two genes. The B gene produces yellow pigment (B_) or green (bb). But if a dominant A allele is present, it blocks pigment production entirely, producing white squash. The dominant A allele is epistatic to both B and bb combinations.
Setup: Father AaBb, Mother AaBb, dominant epistasis mode.
Grid:
Each cell combines one allele from each gene. The 9 A_B_ and 3 A_bb classes merge into 12 white (A__) because the dominant A allele blocks pigment. The 3 aaB_ stays as yellow and the 1 aabb stays as green.
Results: 12 white : 3 yellow : 1 green. This dominant epistasis 12 to 3 to 1 ratio is what you see when one dominant allele can override the entire downstream pathway.
Example 3: Duplicate Recessive Epistasis 9 to 7 (Sweet Pea)
Sweet pea flower color requires two enzymes working in sequence to produce purple pigment. If either enzyme is missing (homozygous recessive at either locus), the pathway is blocked and the flowers are white.
Setup: Father AaBb, Mother AaBb, duplicate recessive epistasis mode.
Grid:
Standard 9 to 3 to 3 to 1 base classes. The A_bb (3), aaB_ (3), and aabb (1) classes all merge into a single mutant (no pigment) class because any homozygous recessive blocks the pathway.
Results: 9 purple : 7 white. The duplicate recessive epistasis 9 to 7 ratio tells you that both genes are needed in working form to produce the trait.
Example 4: Duplicate Dominant Epistasis 15 to 1 (Wheat Seed Color)
Red pigment in wheat seeds requires the function of either one of two redundant genes. Either dominant allele alone is enough to produce red color. Only the double homozygous recessive (aabb) lacks red pigment.
Setup: Father AaBb, Mother AaBb, duplicate dominant epistasis mode.
Grid:
Standard 9 to 3 to 3 to 1 base classes. The A_B_ (9), A_bb (3), and aaB_ (3) classes all merge into a single normal (red) class because any working dominant allele produces pigment.
Results: 15 red : 1 white. The duplicate dominant epistasis 15 to 1 ratio is the signature of redundant gene function.
When to Use This Calculator
Use this epistasis calculator as a gene interaction calculator whenever you are working through a dihybrid cross and the offspring ratios do not match the classic 9 to 3 to 3 to 1. The four standard epistasis modes cover most textbook scenarios where two genes interact to produce a single trait.
For more complex scenarios like incomplete dominance, codominance, or polygenic traits, you need different tools. For autosomal monohybrid crosses, see our main Punnett Square Calculator. For sex-linked crosses, see the X-Linked Punnett Square Calculator. For multi-generation family tree analysis, see the Pedigree Analyzer.
Limits of the Epistasis Calculator
Like all Punnett square calculators, this tool assumes complete penetrance, simple Mendelian inheritance, and discrete phenotypes. Real-world gene interactions can be more complex:
- Incomplete penetrance: some individuals with the disease genotype may not show symptoms
- Variable expressivity: the same genotype can produce different severity in different individuals
- Three or more genes: this calculator handles two gene crosses. For more genes, the grid grows exponentially and the math gets more complex
- Multiple alleles: this calculator assumes two alleles per gene. Blood type (three alleles) needs a different approach
- Linkage: this calculator assumes independent assortment. Genes on the same chromosome may be linked and assort together
For clinical or breeding decisions, always consult a qualified genetic counselor or breeding specialist who can account for the full complexity of the trait.
Related Genetics Resources
Frequently Asked Questions
An epistasis calculator is a genetics tool that predicts offspring phenotypes for a two gene cross when one gene masks or modifies the expression of another. It generates a 4 by 4 Punnett square from the parental genotypes, then collapses the four base classes (A_B_, A_bb, aaB_, aabb) according to the selected epistasis mode to produce the modified Mendelian ratio.
Each epistasis mode merges the 9 to 3 to 3 to 1 base classes in a different way. Recessive epistasis merges the 3 and 1 classes into a 4, giving 9 to 3 to 4. Dominant epistasis merges the 9 and 3 classes into a 12, giving 12 to 3 to 1. Duplicate recessive epistasis merges the 3, 3, and 1 classes into a 7, giving 9 to 7. Duplicate dominant epistasis merges the 9, 3, and 3 classes into a 15, giving 15 to 1.
A standard Punnett square calculator assumes two genes assort independently and produce four distinct phenotypic classes in a 9 to 3 to 3 to 1 ratio. An epistasis calculator accounts for gene interactions where one gene modifies the expression of another, producing modified Mendelian ratios. For autosomal crosses without gene interaction, use our main Punnett Square Calculator.
Recessive epistasis 9 to 3 to 4 occurs when a homozygous recessive genotype at one gene (aa) masks the phenotype of the other gene entirely. The classic example is Labrador retriever coat color, where the ee genotype prevents pigment deposition regardless of the B locus genotype. Cross two heterozygous parents and you get 9 of one phenotype : 3 of a second : 4 of the masked phenotype.
Dominant epistasis 12 to 3 to 1 occurs when a dominant allele at one gene masks the other gene. The classic example is summer squash color, where the dominant A allele blocks pigment production entirely. Cross two heterozygous parents (AaBb x AaBb) and you get 12 white : 3 yellow : 1 green offspring. The 9 and 3 classes collapse into the 12 class because any dominant A allele produces white regardless of the B locus.
Duplicate recessive epistasis 9 to 7 occurs when homozygous recessive at EITHER gene blocks the pathway. The classic example is sweet pea flower color, where both genes are needed to produce purple pigment. Cross two heterozygous parents (AaBb x AaBb) and you get 9 purple : 7 white. The 3, 3, and 1 classes all merge into the 7 class because any homozygous recessive blocks pigment production.
Duplicate dominant epistasis 15 to 1 occurs when either dominant allele alone is enough for the phenotype, meaning the two genes have redundant functions. The classic example is wheat seed color, where two redundant genes both contribute to red pigment. Cross two heterozygous parents (AaBb x AaBb) and you get 15 red : 1 white. Only the double homozygous recessive (aabb) lacks the trait.
No. This calculator is for educational purposes and basic pattern recognition. Clinical decisions about genetic conditions require consultation with a qualified genetic counselor who can integrate molecular testing, family history, Bayesian risk calculation, and analysis of penetrance and variable expressivity.
This free online epistasis calculator is part of BioExplorer’s suite of genetics education tools. It works as a dihybrid cross calculator and an epistasis ratio predictor for the four standard gene interaction modes. The tool models two gene crosses with parents at any combination of homozygous dominant, heterozygous, or homozygous recessive genotypes, and applies the selected epistasis rule to collapse the 16 offspring genotypes into the correct modified Mendelian ratio.
The calculator includes six preset crosses drawn from real biological examples (Labrador coat color, summer squash color, sweet pea color, wheat seed color, and two diagnostic test crosses) and explains the underlying mechanism for each modified ratio.
Last updated: July 2, 2026
Cite this page
BioExplorer. (2026, July 3). Epistasis Calculator. https://www.bioexplorer.net/epistasis-calculator/
