Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Statistics›McNemar's test
Hypothesis test

McNemar's test

Also known as: McNemar chi-square test, test for correlated proportions, paired binary test, McNemar Testi

McNemar's test is a nonparametric hypothesis test that compares two paired (correlated) binary proportions, such as a yes/no measurement taken on the same subjects before and after an intervention. It was introduced by Quinn McNemar in 1947 and works on the 2×2 table of matched outcomes.

ScholarGate
  1. Hypothesis test
  2. v1
  3. 1 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

McNemar's test
Binomial TestChi-square testCochran Q TestPaired t-testWilcoxon signed-rank testChi-square goodness-of-f…Cohen's KappaFisher's exact test

When to use it

Use it for paired binary data arranged in a 2×2 table — typically a pre/post design or a matched case-control study where each subject contributes two related yes/no observations. The data must be genuinely paired and dichotomous. A sample of at least about 20 is recommended; when the number of discordant pairs (b + c) is too small the asymptotic chi-square approximation breaks down and an exact binomial test should be used instead.

Strengths & limitations

Strengths
  • Correctly handles the dependence in paired binary measurements that an ordinary chi-square test would ignore.
  • Simple to compute from just the two discordant cell counts of a 2×2 table.
  • Has an exact binomial form for small samples, so it stays valid when discordant pairs are few.
Limitations
  • Restricted to two conditions and binary outcomes in a single 2×2 table.
  • The asymptotic chi-square version becomes unreliable when the discordant total (b + c) is very small.
  • Uses no information from the concordant pairs, so subjects who did not change do not contribute to the test.

Frequently asked

How is this different from a regular chi-square test?

The ordinary chi-square test assumes the two samples are independent. McNemar's test is built for paired data — the same subjects measured twice — and focuses only on the discordant pairs, so it accounts for the correlation that the standard test would wrongly ignore.

What if I have very few discordant pairs?

When b + c is small (roughly when the sample is below about 20 or the discordant total is tiny), the chi-square approximation is unreliable. Use the exact binomial version of the test instead, which is valid regardless of sample size.

What about three or more conditions?

McNemar's test handles exactly two paired conditions. For three or more repeated binary measurements on the same subjects, use Cochran's Q test, which is the direct multi-condition extension.

Can I report an effect size?

Yes. The odds ratio b/c summarizes the direction and magnitude of the shift between the two discordant cells, and a confidence interval can be added with an exact 2×2 procedure.

Sources

  1. McNemar, Q. (1947). Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika, 12(2), 153–157. DOI: 10.1007/BF02295996 ↗

How to cite this page

ScholarGate. (2026, June 1). McNemar's test. ScholarGate. https://scholargate.app/en/statistics/mcnemar-test

Related methods

Binomial TestChi-square testCochran Q TestPaired t-testWilcoxon signed-rank test

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Binomial TestStatistics↔ compare
  • Chi-square testStatistics↔ compare
  • Cochran Q TestStatistics↔ compare
  • Paired t-testStatistics↔ compare
  • Wilcoxon signed-rank testStatistics↔ compare
Compare side by side →

Referenced by

Chi-square goodness-of-fit testChi-square testCochran Q TestCohen's KappaFisher's exact test

Similar methods

Cochran Q TestChi-square testChi-square goodness-of-fit testFisher's exact testFriedman testBarnard's Exact TestPaired t-testWilcoxon signed-rank test

Related reference concepts

Chi-Squared and Fisher Exact TestsCategorical Data AnalysisContingency Tables and 2×2 TablesMantel-Haenszel and Stratified AnalysisPermutation TestsRisk Ratios and Odds Ratios: Computation and Interpretation

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — McNemar's test (McNemar's test). Retrieved 2026-07-21 from https://scholargate.app/en/statistics/mcnemar-test · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Quinn McNemar
Year
1947
Family
Hypothesis test
Type
Nonparametric test for paired binary data
Groups
2 paired conditions
Outcome
binary (2×2 table)
Parametric
No
Distribution
Chi-square
Df
1
Related methods
Binomial TestChi-square testCochran Q TestPaired t-testWilcoxon signed-rank test
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account