FormatFlow

No tool matches “”

Try a format (“webp”, “mp3”) or a verb (“merge”, “compress”).

Loading index

↵to open

Biology Tools · Updated October 21, 2026 · Reviewed by FormatFlow Editorial

Chi-Square Genetics Calculator

You can test observed genetic counts against an expected ratio or expected counts with a chi-square goodness-of-fit test, and see χ², degrees of freedom, a p-value and critical values.

Runs in your browserFree · No sign-up · No watermark
COUNTS + RATIO → χ²Runs in your browser
Loading the tool…

Everything runs locally in this tab. No file is uploaded while the tool loads.

This tool runs in your tab. Nothing is uploaded and no copy is stored.

How files are handled

At a glance

Works with
COUNTS + RATIO → χ²
Processing
In your browser
Price
Free, no account
Updated
October 21, 2026
All Biology Tools

About Chi-Square Genetics Calculator

A chi-square goodness-of-fit test asks whether observed counts are close enough to an expected genetic ratio to be explained by chance. It is the standard follow-up to a Punnett square: the square predicts 3 : 1 or 9 : 3 : 3 : 1, and the test turns the gap between prediction and data into a p-value.

This calculator accepts observed counts with either expected counts or an expected ratio, derives expected counts from the observed total, and reports χ², degrees of freedom, the p-value and critical values at α = 0.05 and 0.01. The p-value is computed from the chi-square survival function, and the conclusion is worded as fail to reject or reject rather than as proof.

What this tool does

The details that matter when you use Chi-Square Genetics Calculator for real work.
  • Ratio or expected counts

    Enter a ratio such as 3:1 or 9:3:3:1 and expected counts are calculated from the observed total, or type expected counts for each class directly.

  • Every class contribution

    χ² = Σ (O − E)² / E is shown with a table of observed, expected and per-class contributions that add up to the statistic.

  • p-value without lookup tables

    The p-value comes from the regularized upper incomplete gamma function, implemented in the tool, so no distribution table or external library is needed.

  • Critical values

    Critical χ² values at α = 0.05 and α = 0.01 are computed for the actual degrees of freedom and compared with the statistic.

  • Cautious conclusion

    The result says reject or fail to reject at each level and states that failing to reject is not proof that the data fit the expected ratio.

  • Input validation

    Mismatched class counts, zero expected counts and non-integer observed counts are caught with clear messages before the test runs.

How to use Chi-Square Genetics Calculator

No account, no installation — the whole job happens in this browser tab.
  1. 01

    Enter the observed counts

    Type one whole-number count per class, separated by lines or commas; zero is allowed for a class with no observations.

  2. 02

    Choose expected ratio or counts

    Switch modes and either type a ratio such as 3:1 or enter an expected count for every class.

  3. 03

    Check that the class counts match

    The ratio or expected list must have the same number of values as the observed list, otherwise the tool explains the mismatch.

  4. 04

    Read χ², degrees of freedom and p

    The summary shows the statistic, degrees of freedom and p-value, with the substitution written out in full.

  5. 05

    Interpret the conclusion

    Compare the statistic with the critical values, read the cautious conclusion and check the assumptions before reporting it.

How this tool works

Works with
COUNTS + RATIO → χ²
Processing
Client-side, in your browser. Nothing is uploaded.
Requirements
Chrome, Edge, Firefox or Safari · JavaScript enabled

Limitations worth knowing

  • Assumes independent observations and a fixed total; it does not apply a continuity correction or an exact test for small expected counts.
  • A p-value does not prove or disprove a model, and small samples have low power to detect real deviations from the expected ratio.
  • Only the standard Pearson goodness-of-fit test is implemented; Yates correction, Monte Carlo tests and homogeneity tests for contingency tables are not included.

Privacy and file handling

The counts you enter stay in this browser tab. Parsing, the chi-square statistic, the p-value and the critical values all run with JavaScript on your device, so nothing is uploaded, stored or logged, and closing the page discards the data.

Read the full privacy policy

Chi-Square Genetics Calculator FAQ

Short, direct answers to the questions people ask before using this tool.
How is the chi-square statistic calculated?
For each class, subtract the expected count from the observed count, square the difference and divide by the expected count. Adding those values gives χ² = Σ (O − E)² / E. A small statistic means the observations are close to the expectation.
What are the degrees of freedom for a genetic cross?
Degrees of freedom equal the number of classes minus one. A 3:1 cross has two classes, so df = 1; a 9:3:3:1 dihybrid cross has four classes, so df = 3. The calculator derives this from the number of counts you enter.
How are expected counts obtained from a ratio?
Multiply the observed total by each part of the ratio and divide by the sum of the parts. For a 3:1 ratio and 400 offspring, the expected counts are 400 × 3/4 = 300 and 400 × 1/4 = 100, and the calculator applies exactly that step.
What does the p-value mean in this test?
It is the probability of getting a chi-square statistic at least as large as the observed one if the null hypothesis (the expected ratio) were true. A small p-value means the data are unlikely under that model, not that the model is certainly wrong.
What does it mean to fail to reject the null hypothesis?
It means the observed counts are statistically consistent with the expected ratio at the chosen significance level. It is not proof that the model is correct: a small sample has little power to detect a real difference, and other models may fit equally well.
Why do expected counts need to be reasonably large?
The chi-square p-value is an approximation that works best when expected counts are large; a common rule of thumb is at least five per class. With smaller expected counts the approximation is poorer and an exact test is safer.
Does the calculator apply a continuity correction?
No. It uses the standard Pearson chi-square statistic without Yates' continuity correction. For two-class crosses some textbooks apply that correction, which makes the statistic slightly smaller and the p-value slightly larger.
Are my observed and expected counts uploaded anywhere?
No. Parsing, the statistic, the p-value and the critical values are all computed with JavaScript in this browser tab, so the counts are never uploaded, stored or logged.

Background reading

Format guides that explain the trade-offs behind Chi-Square Genetics Calculator.