# Epistasis Ratio Calculator (modified dihybrid ratios)

Compute modified F2 phenotypic ratios from two-locus gene interaction: 9:7, 9:3:4, 12:3:1, 13:3, 15:1, 9:6:1 or 9:3:3:1, with expected counts and optional chi-square goodness-of-fit. Derived from Mendel 1866, Bateson & Punnett 1905, Griffiths, Hartl & Clark 2007. Educational use only.

> Canonical page: https://elysiatools.com/en/tools/epistasis-ratio-calculator

- **Category:** Education

- **Keywords:** epistasis, epistasis ratio calculator, modified dihybrid ratio, 9:7 ratio, 9:3:4 ratio, 12:3:1 ratio, 13:3 ratio, 15:1 ratio, 9:6:1 ratio, gene interaction, complementary genes, mendelian genetics

## Overview

The Epistasis Ratio Calculator computes expected F2 phenotypic ratios and counts for an AaBb × AaBb cross under independent assortment or six common two-locus interaction models: 9:7, 9:3:4, 12:3:1, 13:3, 15:1, and 9:6:1. Enter optional observed phenotype counts to perform a chi-square goodness-of-fit test. Educational use only.

## Inputs

- **Interaction Type** (select): Type of gene interaction between the two loci.
- **Total F2 offspring** (number): Total number of F2 individuals used to convert ratios into expected counts.
- **Observed phenotype counts** (text): Optional comma-separated observed counts, one per phenotypic class, for a chi-square goodness-of-fit test.
- **Decimal Places** (number)

## When to use

- Calculate expected phenotype counts from a selected modified dihybrid ratio and total F2 offspring.
- Compare observed phenotype counts with an independent 9:3:3:1 expectation or an epistasis ratio.
- Review whether observed counts show a significant chi-square deviation from the selected theoretical ratio.

## How it works

- Select the interaction type, such as complementary genes, recessive epistasis, or no interaction.
- Enter the total number of F2 offspring to convert ratio parts into expected phenotype counts.
- Optionally enter comma-separated observed counts in the same order as the phenotype classes.
- The calculator returns JSON with the ratio, phenotype classes, expected counts, and optional chi-square goodness-of-fit results.

## Use cases

- Teaching how two-locus gene interactions modify the classic Mendelian dihybrid ratio.
- Estimating phenotype counts for classroom genetics exercises and F2 cross planning.
- Testing example breeding data against a proposed epistasis model with chi-square goodness of fit.

## Frequently asked questions

### What cross does the calculator use?

It models an AaBb × AaBb F2 cross with two loci.

### Which ratios are supported?

It supports 9:3:3:1, 9:7, 9:3:4, 12:3:1, 13:3, 15:1, and 9:6:1.

### What should I enter for total F2 offspring?

Enter the total number of F2 individuals used to calculate expected counts.

### How do I enter observed counts?

Enter comma-separated counts, one for each phenotype class, following the listed class order.

### Is the calculator intended for clinical or research decisions?

No. It is provided for educational use only.

## Related tools

- [Absorbance↔Transmittance Converter (A = −log₁₀T)](https://elysiatools.com/en/tools/absorbance-transmittance-converter): Convert A ↔ %T ↔ T with A = −log₁₀(T) and %T = 100·T; returns all three representations for spectrophotometry work.
- [PCR Annealing Temperature Calculator (Ta = Tm − 5°C)](https://elysiatools.com/en/tools/annealing-temperature-calculator): PCR Ta by the simple rule (lower primer Tm − 5°C) or the Rychlik 1990 formula (0.3·Tm_primer + 0.7·Tm_product − 14.9), with a ±3°C gradient window and primer-Tm mismatch warning. Derived from Rychlik 1990, Innis & Gelfand 1990, Lorenz 2012. Lab-planning use only.
- [Autosomal Dominant Pedigree Analyzer](https://elysiatools.com/en/tools/autosomal-dominant-pedigree): Compute AD offspring risk (Aa×aa 1:1, Aa×Aa 3:1, AA×any all affected), chi-square fit of observed children, and hallmark checks including male-to-male transmission that rules out X-linked dominant. Derived from Griffiths, Hartl & Clark 2007, StatPearls, OMIM. Educational use only.
- [Autosomal Recessive Inheritance Risk Calculator](https://elysiatools.com/en/tools/autosomal-recessive-risk): Compute per-child and cumulative autosomal recessive disease risk from parental statuses (carrier / affected / non-carrier / unknown via population carrier rate), including the 2/3 carrier rule. Derived from Griffiths, Hartl & Clark 2007, StatPearls. Educational use only.
- [Hemocytometer Cell Counter (cells/mL)](https://elysiatools.com/en/tools/cell-counting-hemocytometer): Turns Neubauer grid counts into cells/mL with dilution factor, total-count option, and 20–100 cells/square density advice. Educational use only.
- [Cell Density Unit Converter (cells/mL↔cells/µL↔10⁶/mL↔10¹²/L)](https://elysiatools.com/en/tools/cell-density-unit-converter): Convert cell density across cells/L, cells/mL, cells/µL, 10³/µL, 10⁶/mL, 10⁹/L and 10¹²/L for cell culture and hematology reports.
- [Cell Doubling Time Calculator (t_d = ln2·t/ln(Nₜ/N₀))](https://elysiatools.com/en/tools/cell-doubling-time): Doubling time, doublings, and specific growth rate from two exponential-phase cell counts, in h/min/day. Educational use only.
- [Trypan Blue Cell Viability Calculator](https://elysiatools.com/en/tools/cell-viability-trypan-blue): Viability % and live/dead/total cells per mL from trypan blue exclusion counts, with culture-health interpretation. Educational use only.

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Rust Samples](https://elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion

## Related content

- [Audio Encoding and Format Conversion Tools](https://elysiatools.com/en/hubs/audio-convert): Compare audio format conversion, bitrate changes, sample-rate conversion, codec swaps, and export tools in one hub for delivery and archive workflows.
- [Image Format Conversion and Animated Export Tools](https://elysiatools.com/en/hubs/image-convert): Compare image format converters for JPG, PNG, GIF, AVIF, WebP, TIFF, ICO, base64, and animation-friendly exports in one hub.
- [JSON Interchange and Format Translation Tools](https://elysiatools.com/en/hubs/json-convert): Compare JSON conversion tools for CSV, YAML, TOML, GraphQL, XML, Markdown, Excel, BSON, EDN, and related structured formats in one hub.
- [Color Space Conversion Tools for Web and Print](https://elysiatools.com/en/hubs/design-convert): Curated tools for web-to-print color space conversion in one hub.
