basic

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.

Published Last reviewed 1 min read

Inputs

Results

Enter values and click Calculate to see results.
Was this helpful?

How to use this calculator

  1. Fill in the inputs above using the units you already have.
  2. Values update automatically as you type — no submit button needed.
  3. 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.