Chi Square Genetics
Enter observed phenotype counts and choose a Mendelian ratio to calculate chi-square, p-value, and whether your cross results match predictions.
Use the Chi Square Genetics
Cross Setup
Critical Values at α = 0.05
| df | χ² critical | Common ratio |
|---|---|---|
| 1 | 3.841 | 3:1, 1:1, 2:1 |
| 2 | 5.991 | 1:2:1 |
| 3 | 7.815 | 9:3:3:1, 1:1:1:1, 3:1:3:1 |
| 4 | 9.488 | Custom 5-class |
Enter observed counts and click Calculate Chi-Square to see results.
χ² Statistic
—
Degrees of Freedom
—
p-value
—
Observed vs. Expected Breakdown
| Class | Observed (O) | Expected (E) | (O−E)²/E |
|---|---|---|---|
| Total |
Interpretation
Summary
The chi-square goodness-of-fit test is the standard statistical method for evaluating whether observed phenotype counts from a genetics cross match the expected Mendelian ratios. You select a ratio (such as 3:1 for a monohybrid dominant cross or 9:3:3:1 for a dihybrid cross), enter your observed counts, and the calculator computes expected counts, the chi-square statistic, degrees of freedom, and the p-value. A p-value below 0.05 indicates a statistically significant departure from the predicted Mendelian ratio.
How it works
- Select a Mendelian ratio preset or enter a custom ratio for your cross.
- Enter the observed count for each phenotype class.
- The tool calculates expected counts based on the total and the chosen ratio.
- Chi-square (χ²) is computed as the sum of (observed − expected)² / expected across all classes.
- Degrees of freedom equal the number of phenotype classes minus one.
- The p-value is derived from the chi-square distribution to determine statistical significance.
Use cases
- Analyze monohybrid cross results against the 3:1 dominant-to-recessive ratio.
- Test dihybrid cross data against the 9:3:3:1 ratio.
- Evaluate codominance or incomplete dominance crosses using the 1:2:1 ratio.
- Verify testcross results against the expected 1:1 ratio.
- Assess lab or classroom genetics experiment data for significant deviation.
- Determine whether observed F2 phenotype counts support Mendelian inheritance.
- Check for linkage or other non-Mendelian effects in experimental crosses.
- Quickly calculate chi-square for any custom phenotype ratio.