Wilcoxon Signed-Rank Test Calculator
Reviewed by CalcMulti Editorial Team·Last updated: ·← Statistics Hub
The Wilcoxon signed-rank test is the non-parametric alternative to the paired t-test. It tests whether the median difference between paired observations is zero, without assuming the differences are normally distributed.
Enter two paired datasets. The calculator computes the signed ranks, W-statistic, and p-value using the normal approximation (suitable for n ≥ 10). Use this test when your differences are clearly non-normal, ordinal, or your sample is small with severe outliers.
Formula
W = Σ sgn(d_i) · R_i z = (W − 0) / √[n(n+1)(2n+1)/6]
- d_i
- difference = x_i − y_i (zero differences excluded)
- R_i
- rank of |d_i| among all non-zero differences
- W
- signed-rank sum (W⁺ − W⁻)
- n
- number of non-zero differences
- z
- normal approximation for large n (≥ 10)
Enter Paired Data
The test is always two-tailed (H₀: median difference = 0, H₁: median difference ≠ 0). Normal approximation used for n ≥ 10.
Wilcoxon Signed-Rank vs Paired t-Test
| Feature | Wilcoxon Signed-Rank | Paired t-Test |
|---|---|---|
| Normality required? | No | Yes (or n ≥ 30) |
| Tests | Median difference = 0 | Mean difference = 0 |
| Sensitive to outliers? | Resistant | Sensitive |
| Works with ordinal data? | Yes | No |
| Statistical power | Slightly lower (for normal data) | Slightly higher (for normal data) |
| Best for | Non-normal, skewed, ordinal, outlier-prone data | Normal continuous data |
Related Calculators
Parametric alternative (assumes normality)
Mann-Whitney U CalculatorNon-parametric test for independent groups
Kruskal-Wallis CalculatorNon-parametric one-way ANOVA
Normality Test CalculatorDecide if you need a non-parametric test
One-Sample T-Test CalculatorTest a mean against a known value
Statistics HubAll statistics calculators
Disclaimer
For educational and exploratory use only. For n < 10, verify results against exact Wilcoxon critical value tables.