Home / McNemar Test Calculator

McNemar Test Calculator

Compare two paired binary measurements, such as before/after classifications, using the counts that changed in each direction. The tool shows the method and key assumptions so you can inspect how the input values lead to the estimate.

How to use this calculator

  1. Enter a to b changed from 0 to 1 using the unit and definition shown beside the input.
  2. Enter a to b changed from 1 to 0 using the unit and definition shown beside the input.
  3. Check that all values refer to the same time period and scenario.
  4. Review the outputs alongside the assumptions before using them in a decision.

Formula and assumptions

χ²=(max(0, |b−c|−1))²/(b+c); p≈χ² survival probability with 1 degree of freedom.

  • Use only the discordant-pair counts; concordant pairs do not contribute to the McNemar statistic. This large-sample p-value is an approximation and can be unreliable for very small discordant totals.
  • The estimate is calculated from values you enter. It does not connect to external accounts, obtain live prices, or validate local regulations or engineering specifications.

Worked examples

Worked example

With 25 changes in one direction and 10 in the other, the continuity-corrected statistic is about 5.6 and the approximate two-sided p-value is around 0.018.

b = 25; c = 10; continuity-corrected χ² is computed from the two discordant counts.

Use the result as a statistical summary, not as a substitute for study design or expert review.

Understanding the result

Use only the discordant-pair counts; concordant pairs do not contribute to the McNemar statistic. This large-sample p-value is an approximation and can be unreliable for very small discordant totals.

Change one input at a time to see how sensitive the output is to that assumption.

Important notes

Use only the discordant-pair counts; concordant pairs do not contribute to the McNemar statistic. This large-sample p-value is an approximation and can be unreliable for very small discordant totals.

Frequently asked questions

What formula does the McNemar Test Calculator use?

χ²=(max(0, |b−c|−1))²/(b+c); p≈χ² survival probability with 1 degree of freedom.

What should I verify before relying on the result?

Use only the discordant-pair counts; concordant pairs do not contribute to the McNemar statistic. This large-sample p-value is an approximation and can be unreliable for very small discordant totals.

Can I compare different scenarios?

Yes. Change one assumption at a time, keep units and definitions consistent, and save the inputs used for each comparison.

Affiliate recommendations

Tools related to McNemar Test Calculator

These tools are selected for the calculator topic. The Calc Studio may earn a commission from purchases made through affiliate links.

  • Growth Wise SAT & ACT prep Visit partner ↗

    SAT and ACT study tools, flashcards, and preparation resources for students.

See the Affiliate Disclosure for details.

Related calculators

  • Paired t-Test Calculator — Calculate a paired-samples t statistic, degrees of freedom and two-sided p-value from sample summary statistics.
  • A/B Test Sample Size Calculator — Estimate per-variant sample size for a two-sided conversion-rate A/B test using a normal approximation, baseline rate and relative minimum detectable lift.
  • Test Grade Calculator — Calculate the score needed on a final assessment to reach a target overall grade.
  • Two-Proportion Z-Test Calculator — Compare two independent success proportions using a pooled z statistic and a two-sided normal approximation.
  • Finite Population Correction Calculator — Calculate the finite population correction factor for simple random sampling without replacement.
  • Fisher Exact Test Calculator — Estimate a two-sided Fisher exact p-value for a 2×2 table of integer counts, using fixed margins.

Related explanations

Learn the method behind the number or compare the terminology before using the calculator.

  • How to Calculate a Z-Score — Learn how a z-score shows how far a value is from the mean in standard-deviation units.
  • How to Calculate Salary from an Hourly Rate — Convert hourly pay into weekly, monthly, and annual estimates and understand the assumptions behind the result.
  • Percentage Change — Learn what percentage change means, how to calculate increases and decreases, and how the original value affects the result.

This page provides a calculation tool plus explanatory information so you can understand what the result means and when the underlying method may not fit your situation.

Explore more calculation resources

Keep exploring related tools, explanations, conversions, and topic pages in The Calc Studio. These links are selected around the subject of this page so you can move to the next useful calculation without returning to search.

Related calculators

  • Paired t-Test Calculator — Calculate a paired-samples t statistic, degrees of freedom and two-sided p-value from sample summary statistics.
  • A/B Test Sample Size Calculator — Estimate per-variant sample size for a two-sided conversion-rate A/B test using a normal approximation, baseline rate and relative minimum detectable lift.
  • Mann–Whitney U Calculator — Calculate a Mann–Whitney U statistic and an approximate two-sided normal p-value from sample sizes and the rank sum for sample one.
  • Two-Proportion Z-Test Calculator — Compare two independent success proportions using a pooled z statistic and a two-sided normal approximation.
  • Fisher Exact Test Calculator — Estimate a two-sided Fisher exact p-value for a 2×2 table of integer counts, using fixed margins.
  • Test Grade Calculator — Calculate the score needed on a final assessment to reach a target overall grade.
Browse by categoryMath CalculatorsScience & Electronics CalculatorsBusiness CalculatorsFinancial CalculatorsConstruction CalculatorsDate & Time Calculators

Task collections

  • Calculators for Students — Free student calculators for grades, percentages, fractions, probability, normal distributions, matrices, vectors, complex numbers, statistics, geometry, and scientific math.
  • Home Project Calculators — Free home and construction calculators for square footage, roofing, stairs, tile, concrete, framing stud counts, steel plate weight, siding, countertops, insulation, and material estimates.
  • Business & Work Calculators — Free business and work calculators for ROI, markup, break-even, sales commission, DSO/DPO, customer-acquisition payback, weighted sales pipelines, labour cost per unit, FTE staffing, email growth, and creator RPM.
  • Everyday Money Calculators — Free money and operating calculators for salary, overtime, VAT, pricing, budgets, fuel costs, receivables and payables days, acquisition payback, staffing, email-list growth, and creator RPM estimates.

Related guides

  • How to Calculate a Z-Score — Learn how a z-score shows how far a value is from the mean in standard-deviation units.
  • How to Calculate Salary from an Hourly Rate — Convert hourly pay into weekly, monthly, and annual estimates and understand the assumptions behind the result.
  • How to Calculate Percent Error — Learn the percent error formula and how to compare an experimental value with a reference or accepted value.

Related terms

  • Markup — Learn what markup means, how markup is calculated from cost and selling price, and how it differs from margin.
  • Percentage Change — Learn what percentage change means, how to calculate increases and decreases, and how the original value affects the result.
  • Basal Metabolic Rate (BMR) — Learn what basal metabolic rate means and how BMR estimates are used in calorie planning.

Useful conversions

  • cm to inches — Convert centimeters to inches with a fast cm to inches converter, formula, examples, and common conversion values.
  • feet to cm — Convert feet to centimeters instantly with a free feet to cm converter, formula, examples, and common values.
  • feet to meters — Convert feet to meters with a free feet to meters converter, formula, examples, and common values.

Browse all calculators · Read all guides · Open the glossary · See all converters · Browse collections

Want to keep learning? Move from a calculator to its formula guide, glossary definition, unit conversion, or task collection to compare related methods and tools.

Optional Premium: save calculation history across visits and remove promotional blocks. See Premium.