McNemar test calculator

A McNemar test calculator for paired binary data that computes the test statistic and p-values from discordant counts.

Tool coming soon!

We're working hard to get this tool ready for you.

Request Feature / Support
2,844+
Total Calculations Run
< 15ms
Browser Execution Speed
100%
Client-Side Privacy
4.9 / 5.0
User Satisfaction
AI Web Tool Generator

Build Your Own Custom Web Calculator in Seconds

Type what tool or calculator you need below. Our AI will build it instantly for your site.

Popular ideas:
100% FREE No Credit Card Required

About This Tool

It computes the McNemar test statistic and p-values from a 2x2 contingency framework for paired binary data. Users supply two counts: b and c, the numbers of discordant outcomes in opposite directions. The tool returns both approximate results based on the chi-square distribution and exact p-values, supporting robust inference and clear reporting for small or large samples.

Conceptually, the test compares changes between two correlated measurements within subjects. Only the discordant counts drive the statistic; identical outcomes cancel out. The standard asymptotic form uses a chi-square distribution with 1 degree of freedom: chi2 = (b - c)^2 / (b + c) when b+c > 0. A Yates continuity correction can be applied to reduce error in small samples, with chi2_cc = (|b - c| - 1)^2 / (b + c).

Outputs include the test statistic, p-values, and the total number of discordant pairs. The tool offers two modes: asymptotic calculation with or without continuity correction and an exact p-value based on a binomial model with n = b + c. The exact method produces p-values that are valid for small samples, while the asymptotic method is faster for large counts. This combination supports robust decision making and method validation.

Intended users are researchers conducting before-after studies, clinicians evaluating paired diagnostic outcomes, and data scientists validating matched-pairs analyses. The tool provides a minimal, transparent workflow focused on core counts and results, enabling quick checks during study design, analysis, and reporting. It is designed for statistical accuracy, reproducibility, and straightforward interpretation, avoiding unnecessary complexity while offering optional exact calculations for edge cases.

How to Use

  1. Provide inputs: enter b and c as non-negative integers.
  2. Choose calculation mode: select approximate (with or without continuity correction) or exact.
  3. Run calculation: trigger the internal computation.
  4. Review outputs: read the chi-square statistic and p-values, with n = b + c.
  5. Interpret results: determine whether changes differ significantly at your chosen alpha level.
How to use mcnemar test online calculator

Frequently Asked Questions

Find Quick Answers

What do b and c represent?
They are the counts of discordant paired outcomes in opposite directions; b is one direction, c is the other; they drive the McNemar statistic.
What if b+c equals zero?
There are no discordant pairs, so the test cannot be performed; typically the tool reports no evidence against symmetry and p-value = 1.
When should I use exact p-value?
Use exact p-value when counts are small or the total discordant pairs n=b+c is small, to avoid reliance on asymptotic chi-square assumptions.

Need to run multiple calculations?

Create a free account today to unlock unlimited daily runs, access advanced parameters, save your history, and request custom features.

Register Free Account

Related Tools

Other useful calculators and utilities you might like

Mathematics

Road Distance Calculator

Calculate the driving distance and travel time between two addresses with our free online road dista...

Mathematics

Spotify to MP3 Converter

Convert Spotify tracks and playlists to MP3 format instantly with our free online converter.

Mathematics

Age Calculator

Calculate your exact age in years, months, and days from any birth date to any target date.

Mathematics

Uber Price Calculator

Estimate your Uber ride fare based on distance, duration, surge multiplier, base fare, and vehicle t...

Your Feedback Matters

Help Us to Improve