Statistics

Chi-Square Goodness-of-Fit Calculator

Calculate the chi-square goodness-of-fit statistic from observed and expected category counts.

Statistics

Move between weighted summaries, t statistics, chi-square goodness-of-fit and one-way ANOVA calculations.

Share this calculator
WhatsApp

Calculate the chi-square goodness-of-fit statistic from observed and expected category counts.

How it works

Enter compatible statistical values. The calculator validates the inputs and applies χ² = Σ((Oᵢ − Eᵢ)² / Eᵢ), with df = k − 1 when no parameters are estimated from the data.

The formula

χ² = Σ((Oᵢ − Eᵢ)² / Eᵢ), with df = k − 1 when no parameters are estimated from the data

Variables: Oᵢ = Observed counts; Eᵢ = Expected counts.

Worked example

Example: Observed counts 20, 30, 50 and expected counts 25, 25, 50 give χ²=2 with 2 degrees of freedom.

Frequently asked questions

What is this Statistics calculator intended for?

It is an educational tool for descriptive and inferential statistical calculations from supplied values or summary statistics.

Does this calculator make a complete statistical decision?

No. Where a test statistic is calculated, the tool does not automatically replace study design, assumption checks, p-value interpretation, confidence intervals or subject-matter judgment.

Last content reviewSeptember 26, 2026
Editorial reviewHe-Sab Editorial Review

Sources and references

These sources are used to verify terminology, formulas, and information related to this calculator.