Wilcoxon signed-rank test calculator

Compare two paired or repeated measurements without assuming normality. Computes W+, W−, exact small-sample or tie-corrected p, rank-biserial r and an APA 7th draft.

No accountExact DP for small NAPA sentence & R/Python

Paste paired before-and-after measurements

Each line is one subject or matched pair (Before, then After).

PAIRED OBSERVATIONS

LIVE RESULT

INSTANT

Wilcoxon signed-rank test

Pairs must be independent across subjects. Exact zero differences (Before = After) are dropped before ranking, as in the standard Wilcoxon procedure.

READY-TO-USE APA 7TH RESULTS SENTENCE

Adjust inputs above to generate a draft reporting sentence.

VISUAL DIAGNOSTIC

Positive vs. negative signed-rank sums (W⁺ vs. W⁻)

Reproduce in R (wilcox.test) and Python (SciPy)

How the Wilcoxon signed-rank test works

The Wilcoxon signed-rank test is the non-parametric counterpart to the paired-samples t-test. It computes each pair’s difference d = After − Before, excludes exact ties at zero, ranks the absolute magnitudes |d| from smallest to largest, and sums the ranks separately for positive (W⁺) and negative (W⁻) changes.

W⁺ = Σ ranks(d > 0), W⁻ = Σ ranks(d < 0), W = min(W⁺, W⁻)
Matched-pairs rank-biserial correlation r = (W⁺ − W⁻) ÷ (W⁺ + W⁻)
σW = √[ nr(nr + 1)(2nr + 1) ÷ 24 − Σ(t³ − t) ÷ 48 ]

Worked example

Across 10 pairs, one pair had zero change (74 → 74) and was excluded, leaving nr = 9 non-zero differences. Rank sums were W⁺ = 44 and W⁻ = 1, giving W = 1, z = 2.50, exact p = .012, matched-pairs rank-biserial r = 0.96, and Hodges–Lehmann pseudomedian change = +6.50.

Choosing the right paired test

Matching paired study designs to the appropriate Easenco calculator.
Outcome typeRecommended testEasenco tool
Continuous, roughly symmetric paired differencesPaired-samples t-testWelch, Student & paired t-test
Skewed continuous or ordinal paired scoresWilcoxon signed-rank testThis calculator
Binary (0/1 or Yes/No) paired outcomesMcNemar’s exact testMcNemar test calculator

Assumptions and checks

  • Symmetry of differences: For testing a strict median shift, differences should be roughly symmetric around the median; if strongly asymmetric, interpret W as testing whether positive changes outweigh negative ones.
  • Zero differences: Note both total pairs and non-zero pairs (nr) when reporting results in APA format so readers understand how many ties at zero occurred.

Common questions

Frequently asked questions

Why does the test drop pairs where Before equals After?

Standard Wilcoxon (zero_method="wilcox" in SciPy and R’s wilcox.test) removes zero differences before ranking because a zero has no positive or negative sign. Always report both the total number of pairs and the non-zero n used in ranking.

Should I report W, T or z in APA style?

Report the smaller rank sum W (or T), the sample size, z, the p-value (indicating exact if used), and an effect size such as matched-pairs rank-biserial r alongside both condition medians and IQRs.

What is the Hodges–Lehmann pseudomedian?

It is the median of all Walsh averages (dᵢ + dⱼ)/2 for i ≤ j across non-zero differences—providing a shift estimate consistent with the Wilcoxon rank sum.