Wilcoxon Signed-Rank Test Calculator

Compute the Wilcoxon signed-rank W statistic and p-value for paired data or a one-sample test against a hypothesized median.

Enter Data

Enter your data and click Run Wilcoxon Test to see results.

Summary

Compute the Wilcoxon signed-rank W statistic and p-value for paired data or a one-sample test against a hypothesized median.

How it works

  1. Enter paired sample values in the two columns (Before / After), or enter one column and set a hypothesized median for a one-sample test.
  2. Differences between each pair are computed; zero differences are dropped per standard procedure.
  3. Absolute differences are ranked from smallest to largest, with ties receiving average ranks.
  4. Positive and negative signed ranks are summed separately to produce W+ and W−.
  5. The smaller of W+ and W− is the test statistic W. For n > 10 a normal approximation with continuity correction gives a Z score and two-tailed p-value.
  6. Interpret: if p < your chosen alpha (commonly 0.05), reject the null that the median difference is zero.

Use cases

  • Comparing before-and-after measurements (weight, blood pressure, test scores) without assuming normality.
  • Analyzing small paired samples where the t-test assumptions are questionable.
  • Testing whether a sample median differs from a known or hypothesized value.
  • Non-parametric alternative when paired-t-test residuals are skewed or contain outliers.
  • Clinical trials comparing matched patient pairs on an ordinal outcome.
  • Quality-control studies assessing process improvement across matched units.

Frequently Asked Questions

Last updated: 2026-06-10 · Reviewed by Nham Vu