McNemar's Test χ² from a Paired 2×2 Table Calculator
χ² = (b − c)² / (b + c); Yates: (|b − c| − 1)² / (b + c).
Compute McNemar's chi-square statistic for paired-categorical data (e.g. yes/no before vs after a treatment in the same subjects). Uses only the off-diagonal counts b and c. χ² = (b − c)² / (b + c) tested with df = 1; Yates' continuity correction (|b − c| − 1)² / (b + c) for small counts.
How to use this calculator
- Fill in the inputs above using the units you already have.
- Values update automatically as you type — no submit button needed.
- Hover any result row for the underlying formula and intermediate values.
Formula
χ² = (b − c)² / (b + c).
In depth
Compute McNemar's chi-square statistic for paired-categorical data (e.g. yes/no before vs after a treatment in the same subjects). Uses only the off-diagonal counts b and c. χ² = (b − c)² / (b + c) tested with df = 1; Yates' continuity correction (|b − c| − 1)² / (b + c) for small counts.
Spot an issue or have a suggestion?
Our editors read every message. If the math looks off, tell us the inputs you used and what you expected.