McNemar's Test Calculator

Test paired nominal data with McNemar's chi-square.

Chi-square (corrected) 3.892
Degrees of freedom 1

Formula: chi-square = (|b - c| - 1)^2 / (b + c)

Step-by-step with your numbers:
1. Values used:
2. Discordant pairs (b) = 25
3. Discordant pairs (c) = 12
4.
5. Chi-square (corrected) = 3.892
6. Degrees of freedom = 1
Did we solve your problem today?

McNemar's test compares paired before/after categorical results.

The math behind it

Only the discordant pairs (b and c) matter: chi-square = (|b - c| - 1)^2 / (b + c), with 1 df.

Worked example

b 25, c 12 gives chi-square about 4.32 (significant at 0.05).

FAQ

When do I use it?

For paired binary data, like the same subjects before and after a treatment.