Chi Square Test Calculator

Perform a chi-square test for independence or goodness of fit. Enter observed and expected frequencies to compute the chi-square statistic, degrees of freedom, and p-value.

isCalculator Editorial Team Published by:
Reviewed by: Review Board
Last Updated:

Was this calculator helpful?

How to use this tool?

How to Use the Chi-Square Test Calculator

  1. Enter Observed Frequencies: In the first text area, type your observed counts separated by commas (e.g., 10, 20, 30).
  2. Enter Expected Frequencies: In the second text area, type your expected counts separated by commas (e.g., 15, 15, 30). The number of values must match the observed values.
  3. Select Test Type: Choose either Goodness of Fit (for one variable) or Test of Independence (for two variables).
  4. Choose Significance Level (α): Pick a value (commonly 0.05) from the dropdown.
  5. Click “Calculate Chi-Square”: The calculator will compute the chi-square statistic, degrees of freedom (df = number of categories - 1), and p-value.
  6. Interpret Results: If the p-value is less than α, the result is statistically significant (reject null hypothesis). Otherwise, it is not significant.

Note: All frequencies must be positive numbers. The calculator automatically shows the formula and step-by-step calculations.

Previous Results

Generate Charts
Result Inputs Date

Frequently Asked Questions

A chi-square test is used to determine if there is a significant difference between observed and expected frequencies in one or more categories.

If the p-value is less than your chosen significance level (e.g., 0.05), you reject the null hypothesis, indicating a significant difference.

Goodness of fit test (compares observed to expected for a single categorical variable) and test of independence (for two variables).

Reviewed by Experts

Eurico José Kiala

Eurico José Kiala

Mathematician

Teacher

LinkedIn
João Lino

João Lino

Mathematician

LinkedIn
Quick Convert
Length Converter
0
Weight/Mass Converter
0
Area Converter
0
Volume Converter
0
Speed Converter
0
Temperature Converter
0
Pressure Converter
0
Energy Converter
0
Power Converter
0
Force Converter
0
Time Converter
0
Angle Converter
0
Fuel Consumption Converter
0
Data Storage Converter
0
Base Numbers Converter
0
Dry Volume Converter
0
Currency Converter
0
Text Case Converter
0