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.
Use the Wilcoxon Signed-Rank Test Calculator
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
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
The Wilcoxon signed-rank test is a non-parametric alternative to the paired t-test. It tests whether the median difference between paired observations (or between a single sample and a hypothesized median) is zero, without assuming the data follow a normal distribution. Enter two paired columns or a single column with a target median, and the calculator returns the W statistic, Z approximation, and two-tailed p-value.
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.