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.
n (used)
—
W statistic
—
Z score
—
p-value (2-tail)
—
Signed-Rank Details
Pairs dropped (d=0)
—
Tie groups
—
W+ (positive ranks)
—
W− (negative ranks)
—
Expected W (H0)
—
Variance of W
—
Small sample (n ≤ 10): the normal approximation may be imprecise. Consult exact critical-value tables for confirmation.
Ranked Differences Table
| # | Difference (d) | |d| | Rank | Signed Rank |
|---|
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
- Enter paired sample values in the two columns (Before / After), or enter one column and set a hypothesized median for a one-sample test.
- Differences between each pair are computed; zero differences are dropped per standard procedure.
- Absolute differences are ranked from smallest to largest, with ties receiving average ranks.
- Positive and negative signed ranks are summed separately to produce W+ and W−.
- 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.
- 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