Skip to content
ToolMug

Use ↑ ↓ to move, Enter to open, Esc to close.

Wilcoxon Signed-Rank Test Calculator

When the same people are measured twice (before and after, two conditions) and the differences aren't normal, use the Wilcoxon signed-rank test instead of a paired t-test. Paste two columns, one pair per row, to get W, the p-value and the effect size.

Runs in your browser — nothing you enter is uploaded

Two columns of paired values, one pair per row (e.g. before and after). Rows with a blank cell are skipped.

W = 5

p = 0.0391

Significant difference (p < 0.05).

Test statistics

StatisticValue
Pairs9
Median difference0.48 (A − B)
W+40
W−5
z2.073
p0.0391
p-valueExact
Rank-biserial correlation0.778
r = |z| / √n0.691
Report asW = 5.0, z = 2.07, p = .039, r = .69

Same results as R’s wilcox.test(), kruskal.test() and friedman.test(): exact p-values when both samples are under 50 with no ties, otherwise the normal approximation. These tests compare ranks, not means.

Is this tool working for you?

How to use

  1. Paste two columns, one person per row. A header row is optional.
  2. For a one-sided test, pick "first column is larger" or "smaller".
  3. Read the p-value and the median difference (first column minus second).
  4. Copy the APA line for your report.

Options explained

W+ and W−
The absolute differences are ranked; W+ is the sum of ranks of positive differences and W− of negative ones. R reports W+ (as V); SPSS and many textbooks report the smaller of the two.
Zero differences
Pairs with a difference of 0 are dropped, as R does by default. The result tells you how many were dropped.
Exact vs approximate p
Exact when there are fewer than 50 pairs with no tied or zero differences; otherwise the normal approximation with tie and continuity corrections.

Worked example

The sample has nine people measured under two conditions. The median difference is 0.48 and 8 of the 9 differences are positive:

Statistic Value
W+ 40
W− 5
z 2.07
p (two-sided, exact) 0.039
r 0.69

p = 0.039, so the two conditions differ and the first column is higher. Treat the same numbers as two separate groups and the Mann–Whitney test gives p = 0.136: pairing removes person-to-person variation, which makes a change easier to detect.

APA style: W = 5.0, z = 2.07, p = .039, r = .69.

When to use it

Frequently asked questions

How is it different from the Mann–Whitney U test?

Mann–Whitney compares two separate groups of people. The signed-rank test compares two measurements on the same people, so the rows must be matched.

Can I test one sample against a fixed value?

Yes. Fill the second column with that value. To test whether ratings differ from 3, put 3 in every row of the second column.

Why is the SPSS p-value different?

SPSS shows the asymptotic p without continuity correction by default. Tick "Exact" in SPSS and the results match.

Privacy

This tool runs entirely in your browser. Your files and text are processed on your device and are never uploaded to our servers.

Related tools