The Wilcoxon signed-rank test compares two related measurements, such as before and after scores from the same people, without assuming the differences are normally distributed. It is the nonparametric alternative to the paired samples t-test.
It is not the same as the Wilcoxon rank-sum test, which is another name for the Mann-Whitney U test for independent groups. The names cause endless confusion, so check which design you have.
In this guide
When to use it
- Two measurements from the same participants or matched pairs.
- The outcome is ordinal (a single Likert item, a pain rating) or the paired differences are clearly skewed or contain outliers, especially with fewer than about 30 pairs.
How it works
- Compute the difference for each pair and drop pairs with a difference of zero.
- Rank the absolute differences from smallest to largest, averaging ranks for ties.
- Give each rank the sign of its difference, then add the positive ranks and the negative ranks separately.
- The test statistic (T, or W in some software) is compared with what would be expected if positive and negative changes were equally likely. For larger samples it is converted to a z score.
Assumptions
- Paired observations, with independent pairs.
- An outcome that is at least ordinal, so differences can be ranked.
- For interpreting the result as a shift in the median, the distribution of differences should be roughly symmetric. If it is very asymmetric, the simpler sign test is an alternative.
Worked example
Twenty patients rate their pain (0–10) before and after a physiotherapy course. The differences are skewed: most improve by 1–3 points, a few by 6–7.
- Median before = 6, median after = 4
- Sum of ranks for patients whose pain increased: T = 32
- Expected value of T under the null: 20 × 21 / 4 = 105, with a standard deviation of 26.8
- z = (32 − 105) / 26.8 = −2.73, p = .006
Pain decreased significantly after the course.
Effect size r
The usual effect size is r = |z| / √N, where N is the number of pairs: 2.73 / √20 = 0.61, a large effect (benchmarks: .10 small, .30 medium, .50 large). The matched-pairs rank-biserial correlation is an alternative that many statisticians now prefer.
How to report it in APA 7
A Wilcoxon signed-rank test showed that pain ratings were significantly lower after the physiotherapy course (Mdn = 4) than before it (Mdn = 6), z = −2.73, p = .006, r = .61.
Report medians (and ideally IQRs) rather than means, the z or T statistic, the exact p-value and the effect size. If you used an exact test (common with small samples), report T and the exact p-value.
Wilcoxon or paired t-test?
If the differences are roughly normal, the paired t-test is slightly more powerful and its effect size is easier to compare across studies. With ordinal outcomes, strong skew or outliers in a small sample, Wilcoxon is the safer choice. With large samples both usually agree.
Frequently asked questions
What is the difference between Wilcoxon signed-rank and Mann-Whitney U?
The signed-rank test is for two related measurements (paired data). The Mann-Whitney U test, also called the Wilcoxon rank-sum test, is for two independent groups.
What happens to zero differences?
In the standard procedure, pairs with a difference of zero are dropped before ranking, which reduces the sample size. Report how many pairs had no change.
How many pairs do I need?
The test can run with as few as 6 pairs, but power is low. For a moderate effect, aim for 20 or more pairs.
Can I use Wilcoxon for Likert scale data?
Yes. For a single Likert item measured twice, the Wilcoxon signed-rank test is the standard choice.


