No tool matches “”

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

Loading index

↵to open

Scientific Tools · Updated November 10, 2026 · Reviewed by FormatFlow Editorial

Chi-Square Test Calculator

You can run a chi-square test for contingency-table independence or goodness of fit in your browser, with expected counts, degrees of freedom, an upper-tail p-value, Cramér's V or residuals, and the assumptions behind the result.

Runs in your browserFree · No sign-up · No watermark
COUNTS → CHI-SQUARE TESTRuns 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

Key facts

Category
Scientific Tools
Processing
In your browser — nothing is uploaded
Input formats
Counts
Output format
chi-square, p-value and expected counts
Maximum size
Bound by the memory available to your browser tab
Requirements
A modern browser with JavaScript enabled · Whole-number count data for a contingency table, or matched observed and expected counts for the goodness-of-fit mode
Price
Free, no account, no watermark
Last updated
Nov 10, 2026

SummaryChi-Square Test Calculator is a free online scientific tools tool. You can run a chi-square test for contingency-table independence or goodness of fit in your browser, with expected counts, degrees of freedom, an upper-tail p-value, Cramér's V or residuals, and the assumptions behind the result. A chi-square test compares observed categorical counts with the counts expected under a null model. This workspace supports a contingency-table test of independence for tables from 2×2 up to 6×6, and a goodness-of-fit test against fixed expected counts that you supply. It runs in your browser — nothing is uploaded. It accepts Counts and produces chi-square, p-value and expected counts. The maximum size is bound by the memory available to your browser tab. Contingency mode uses the chi-square approximation only; Fisher's exact test and other small-cell exact methods are not included.

At a glance

Works with
COUNTS → CHI-SQUARE TEST
Processing
In your browser
Price
Free, no account
Updated
November 10, 2026
All Scientific Tools

About Chi-Square Test Calculator

A chi-square test compares observed categorical counts with the counts expected under a null model. This workspace supports a contingency-table test of independence for tables from 2×2 up to 6×6, and a goodness-of-fit test against fixed expected counts that you supply.

The contingency mode reports expected counts, chi-square, degrees of freedom, the upper-tail p-value and Cramér's V, and warns when expected cells are small. The fit mode reports standardized residuals. Both modes display their assumptions and a clear note that a p-value is not the probability the null is true and not proof of independence, fit or causation.

What this tool does

The details that matter when you use Chi-Square Test Calculator for real work.
  • Contingency tables up to 6×6

    Choose 2 to 6 rows and columns, enter observed counts, and see the expected count in every cell alongside the observed value.

  • Goodness-of-fit mode

    Paste observed and expected counts for two or more categories; the totals must match and every expected count must be positive.

  • Expected-count warning

    Cells with expected counts below 5 are counted and flagged, because the chi-square approximation can be unreliable with small expected counts.

  • Cramér's V and residuals

    Contingency mode reports Cramér's V for association strength; goodness-of-fit mode reports a standardized residual for each category.

  • Working and degrees of freedom

    The substituted formula shows how chi-square, df = (r−1)(c−1) or k−1, and the upper-tail p-value were obtained.

  • Assumptions and scope panel

    Independence, categorical data, expected-count guidelines and the absence of post-hoc or exact tests are stated next to the result.

How to use Chi-Square Test Calculator

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

    Choose the test mode

    Use the contingency mode to test whether two categorical variables are associated, or goodness of fit to compare one categorical variable with fixed expected proportions.

  2. 02

    Enter the observed counts

    For a contingency table, choose the shape and fill every cell with a whole-number count. For goodness of fit, paste observed and expected counts separated by commas or spaces.

  3. 03

    Check the expected counts

    Review the expected column or the observed (expected) table and the low-expected-count warning before interpreting the p-value.

  4. 04

    Read chi-square, df and p

    The main p-value is the upper-tail probability from the chi-square distribution with the displayed degrees of freedom.

  5. 05

    Interpret within the assumptions

    A small p-value is evidence against the null model under these assumptions, not proof of causation, and a large p-value does not prove independence or a correct fit.

How this tool works

Works with
COUNTS → CHI-SQUARE TEST
Processing
Client-side, in your browser. Nothing is uploaded.
Requirements
A modern browser with JavaScript enabled · Whole-number count data for a contingency table, or matched observed and expected counts for the goodness-of-fit mode

Limitations worth knowing

  • Contingency mode uses the chi-square approximation only; Fisher's exact test and other small-cell exact methods are not included.
  • No post-hoc cell comparisons, adjusted residuals with multiple-testing correction, or effect-size confidence intervals are provided.
  • The test assumes independent observations and a random sample; clustered, repeated-measures or complex-survey data need different methods.
  • A significant result says the counts are unusual under the null model, not that one variable causes the other or that no other explanation exists.

Privacy and file handling

The observed and expected counts are calculated entirely in this browser tab. Nothing is uploaded, stored or logged, and the workspace makes no network request with your table. Closing the page clears the counts and the result.

Read the full privacy policy

Chi-Square Test Calculator FAQ

Short, direct answers to the questions people ask before using this tool.
What is the difference between the contingency and goodness-of-fit modes?
The contingency mode tests whether two categorical variables are independent by comparing each cell's observed count with the count expected from the row and column totals. The goodness-of-fit mode compares one categorical variable with expected counts or proportions that you supply in advance.
How are the expected counts calculated?
For a contingency table, each expected count is row total × column total / N. For goodness of fit, the expected counts are the values you provide, and their total must match the observed total for this form of the test.
What should I do when expected counts are below 5?
The calculator counts and flags expected cells below 5 because the chi-square approximation can be unreliable. It does not include Fisher's exact test or an exact goodness-of-fit test, so for small samples consider merging categories, collecting more data or using a method designed for small counts.
Does a small p-value mean one variable causes the other?
No. It means the observed association would be unusual if the independence model were true under the stated assumptions. Causation requires a design that supports it, and a significant chi-square does not identify which cells or categories are responsible.
Is the p-value the probability that the null hypothesis is true?
No. The p-value is the probability, calculated under the null model, of a statistic at least as extreme as the observed one. It is not the probability that the null is true, and failing to reject the null is not proof that the variables are independent or that the expected distribution is correct.
What does Cramér's V measure?
Cramér's V is a descriptive measure of association strength derived from chi-square and sample size, ranging from 0 to 1. It does not indicate causation or direction, and it should be read together with the table, the p-value and the study design rather than as a stand-alone conclusion.
Can I compare categories after a significant result?
Not with this calculator. It does not run post-hoc cell comparisons or correct for multiple testing. A significant omnibus test says the table is not consistent with independence, but identifying which cells differ requires a separate, properly adjusted follow-up analysis.
Is this a genetics chi-square calculator?
No. This is the generic statistical chi-square test for categorical counts. It does not implement Hardy-Weinberg, genetic linkage or other specialized genetics tests, even though the same chi-square distribution can appear in those contexts.

Background reading

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