← Biology

Genetics Test

Mendelian ratio chi-square test calculator

From observed counts and expected ratios (e.g., 3:1, 9:3:3:1), compute χ², df, and p-value. View expected counts, per-category contributions, and observed vs expected charts.

All calculations run in your browser. Your data is never sent.

Other languages ja | en

How to use (3 steps)

  1. Select a ratio preset (3:1, etc.) or enter a custom ratio.
  2. Enter observed counts for each category (use an example to start quickly).
  3. Results (χ², p-value, expected counts, charts) appear; with auto update on, they refresh as you type.

Results are guides. Check contributions and charts together.

Inputs (ratio & observed counts)

Only available for 2 categories (df=1).

Current ratio: / Total N:

Category Observed Actions
Paste (TSV/CSV)

You can paste 2 columns (category, observed) or 1 column (observed only). 3 columns (category, observed, ratio) also work.

Results (χ² & p-value)

χ²
df
p-value
α (guide)

Observed vs expected (table & charts)

Observed Expected
Category Observed Expected O−E Contribution Pearson residual Ratio

Observed vs expected

Contribution

How it’s calculated

“Guide” on this page is not a definitive judgement. Review assumptions (e.g., how categories are grouped) as needed.

FAQ

What if expected counts are small?

Small expected counts can make the χ² approximation rough. This page shows a warning (guide).

Does p<0.05 mean it does not fit?

It is a common guideline, but interpretation depends on context. We show it as a reference only.

What should I enter for category names?

Anything is fine (e.g., dominant/recessive, AA/Aa/aa). It works even if blank.

Does the share URL include data?

You can choose to include or exclude it. Data stays in your browser and is not sent.

Where are observed data sent?

All calculations run in your browser. Inputs are not sent anywhere.

Related tools

Comments (optional)

To reduce load, comments are fetched only when needed.