Chi-Square Distribution Calculator
Enter a chi-square statistic and degrees of freedom to get the PDF, CDF (p-value), and critical value at any significance level.
Parameters
The observed chi-square test statistic value.
Positive integer; typically (categories − 1) for goodness-of-fit.
Critical Value Finder
Right-tail probability; common values: 0.10, 0.05, 0.01.
Critical value (χ²α, df)
Quick Presets
Results at χ² = x
Enter parameters and press Calculate.
Distribution Statistics
Enter parameters and press Calculate.
Key Formulas
- PDF:
- f(x) = xdf/2−1 e−x/2 / (2df/2 Γ(df/2))
- CDF:
- F(x) = P(df/2, x/2) — regularized incomplete gamma
- p-value:
- 1 − F(x) = P(χ² ≥ x)
- Mean:
- df
- Variance:
- 2 · df
- Mode:
- max(df − 2, 0)
Summary
Enter a chi-square statistic and degrees of freedom to get the PDF, CDF (p-value), and critical value at any significance level.
How it works
- Enter the chi-square statistic (χ² value) — must be ≥ 0.
- Enter the degrees of freedom (df) — a positive integer, typically n−1 for goodness-of-fit tests.
- Press Calculate to get the PDF and CDF at your statistic.
- The p-value shown is P(χ² ≥ x) — the right-tail probability used in most hypothesis tests.
- Enter a significance level α (e.g. 0.05) to find the critical value x such that P(χ² ≥ x) = α.
- Use the preset buttons to load common textbook examples instantly.
Use cases
- Chi-square goodness-of-fit tests to check if observed counts match expected distributions.
- Chi-square test of independence for contingency tables.
- Confidence intervals for a population variance or standard deviation.
- Likelihood-ratio tests in regression and model comparison.
- Quality control: checking whether process variance exceeds a specification limit.
- Genomics: testing Hardy-Weinberg equilibrium in allele frequency data.
- Statistics coursework: verifying p-values and critical values from textbook problems.
- Machine learning: feature selection using chi-square statistics for categorical data.
Frequently Asked Questions
Related tools
Last updated: 2026-05-23 ·
Reviewed by Nham Vu