Everyday tools ↗

Study & statistics / FREE BROWSER TOOL

Chi-square test.

Test independence in a contingency table of nonnegative whole counts; report expected-count limitations.

YOUR EVERYDAY DESKKeep your
next task close.
Switch between tools ↗
Chi-square test
See result ↓● Live result
01 / YOUR INPUTS

One group per row, columns separated by commas/spaces. 2–20 rows and columns; nonnegative whole counts.

Processed on this device.

02 / YOUR RESULT

Your answer

ON YOUR DEVICE

Your result will appear here.

Adjust a field to calculate.

LOCAL INPUTS / CLEAR WORKING / USEFUL OUTPUTNothing to sign in to.

Built and maintained by Operance Labs · Report a calculation or documentation issue

A LITTLE KNOW-HOW

How to use
this tool.

  1. Enter the values for your task.
  2. Adjust the settings and inspect the live result and working.
  3. Copy the result or save a local report.

What the inputs mean

Contingency table
One group per row, columns separated by commas/spaces. 2–20 rows and columns; nonnegative whole counts.
A WORKED STARTING POINT

See the working.

Inputs used in this example

These are example values, not a current price, tariff or personal recommendation. Reset example restores them in the workspace.

InputExample value
Contingency table20,30 30,20

Chi-square independence p-value

0.0455002639

χ² = Σ(observed−expected)²/expected; expected = row total × column total / grand total

  • χ²: 4; df: 1; minimum expected count: 25.
  • 0 of 4 expected counts are below 5.
  • No continuity correction is applied. Counts must be independent mutually exclusive observations.
  • Floating-point probabilities are numerical approximations. Interpret tests with their sampling/model assumptions; a p-value is not the probability that a hypothesis is true.

Method references

Background reading for the calculation. These sources do not endorse PixelDesk or verify an individual result.

Your inputs stay here

Your input is processed on this device. PixelDesk does not upload it to a calculation or file-processing server. Copying and downloading are deliberate actions. Closing the page clears the in-memory inputs; the app remembers only its theme and public reference-rate cache.

Methods and public data ↗

Keep a useful
thing close.

All study & statistics ↗

Questions, answered.

What can I do with chi-square test?

Test independence in a contingency table of nonnegative whole counts; report expected-count limitations.

What does the chi-square test example show?

With Contingency table: 20,30 30,20, the example returns 0.0455002639. The workspace shows the substituted formula and its assumptions; Reset example restores these inputs.

What should I check before using the result?

χ²: 4; df: 1; minimum expected count: 25. 0 of 4 expected counts are below 5.