Skip to content
Statistics

Wilcoxon Rank-Sum Test Calculator

Enter the values for two independent groups, separated by commas. The calculator ranks all observations together, computes the Wilcoxon W rank-sum statistic, the equivalent Mann-Whitney U statistic, a z-score with continuity correction, and a two-tailed or one-tailed p-value. You also get effect size r so you can judge practical significance alongside statistical significance.

Your details

Enter the observations for the first group, separated by commas or spaces.
Enter the observations for the second group, separated by commas or spaces.
Two-tailed tests for any difference; one-tailed tests for a specific direction.
The threshold below which you will reject the null hypothesis.
P-valueMarginal (0.05 <= p < 0.10)
0.0578

Probability of observing a test statistic this extreme if H0 is true

W statistic (rank sum)31
U statistic (Mann-Whitney)3
Z-score-1.8974
Effect size r0.507
n (Group 1)7
n (Group 2)7
SignificantNo
-1.897497.1% above · Z-score

No statistically significant difference (p = 0.0578, alpha = 0.05).

  • Group 1 (n = 7) rank sum W = 31.00; Mann-Whitney U = 3.00.
  • The standardised z-score is -1.8974 (two-tailed test with continuity correction).
  • Effect size r = 0.507, which is large by conventional benchmarks (0.1 / 0.3 / 0.5).
  • Failing to reject H0 does not prove the groups are identical; it may reflect low power due to small sample size.

Next stepConsider whether the study was sufficiently powered; a post-hoc power analysis may help interpret a non-significant result.

What is the Wilcoxon rank-sum test?

The Wilcoxon rank-sum test, also called the Mann-Whitney U test, is a non-parametric test that compares two independent samples without assuming that either follows a normal distribution. Instead of comparing means, it asks whether a randomly chosen value from one group tends to be larger than a randomly chosen value from the other. Because it works on ranks rather than raw values, it is robust to outliers and is appropriate for ordinal data, continuous data that violates normality, and small samples where the central limit theorem cannot be relied on.

How the test works: ranking procedure

All observations from both groups are pooled and sorted from smallest to largest. Each observation is assigned a rank, and when two or more observations share the same value (a tie), each receives the average of the ranks they would otherwise occupy. The W statistic is simply the sum of ranks belonging to Group 1. If the two groups come from the same distribution, the expected rank sum for Group 1 is n1 * (N + 1) / 2, where N is the total sample size. A W value far above or below this expected value provides evidence that the groups differ.

Z-score, p-value, and continuity correction

For moderate to large samples (n1 or n2 >= 10 is a common rule of thumb), W follows approximately a normal distribution. This calculator standardises W to a z-score using a continuity correction of 0.5, which improves the normal approximation for discrete rank data. The resulting p-value is the probability of observing a rank sum at least as extreme as the one computed, assuming the null hypothesis of equal distributions is true. For very small samples where both groups have fewer than 10 observations, critical values from exact distribution tables should ideally be used; this calculator flags that caveat and still provides a useful z approximation.

Effect size r and how to report results

Statistical significance alone does not tell you how large a difference is. The effect size r is computed as |z| / sqrt(N) and ranges from 0 to 1. By conventional benchmarks (Cohen 1988), r < 0.10 is negligible, 0.10 to 0.30 is small, 0.30 to 0.50 is medium, and 0.50 or above is large. When writing up a result, report the U statistic, sample sizes for both groups, exact p-value, and effect size r. For example: "A Mann-Whitney U test indicated that Group 2 scores were significantly higher than Group 1 scores (U = 7, n1 = 7, n2 = 7, p = 0.017, r = 0.45)."

Interpreting the Wilcoxon rank-sum / Mann-Whitney U test result

MetricValueInterpretation
p-value< 0.01 Highly significant: strong evidence against H0
p-value0.01 to 0.05 Significant: reject H0 at the standard alpha
p-value0.05 to 0.10 Marginal: borderline, interpret with caution
p-value>= 0.10 Not significant: insufficient evidence to reject H0
Effect size r< 0.10 Negligible practical difference
Effect size r0.10 to 0.30 Small practical difference
Effect size r0.30 to 0.50 Medium practical difference
Effect size r>= 0.50 Large practical difference

Conventional p-value thresholds and Cohen benchmarks for effect size r.

Frequently asked questions

What is the difference between the Wilcoxon rank-sum test and the Wilcoxon signed-rank test?

The rank-sum test (this calculator) compares two independent groups: the observations in Group 1 are not paired with those in Group 2. The signed-rank test is for paired or matched data, where each observation in one group is directly linked to an observation in the other, such as before-and-after measurements on the same participants. Use the signed-rank test when the data are paired; use the rank-sum test when the groups are independent.

Is the Wilcoxon rank-sum test the same as the Mann-Whitney U test?

Yes, they are mathematically equivalent. The Wilcoxon version uses the rank-sum W as the test statistic; the Mann-Whitney version counts the number of times a Group 1 observation exceeds a Group 2 observation to form the U statistic. The two statistics are related by U = W - n1*(n1+1)/2, so they always yield the same p-value.

When should I use the Wilcoxon rank-sum test instead of a t-test?

Use the rank-sum test when (1) the data are ordinal (ranks, Likert scales, ratings) rather than truly continuous, (2) a normality check or the Shapiro-Wilk test suggests significant departures from normality, (3) the sample sizes are small and the central limit theorem cannot justify normality of means, or (4) the data contain outliers that would distort a mean comparison. When both groups are large and roughly normal, the t-test and rank-sum test give very similar p-values.

How do I handle tied values?

Tied observations receive the average of the ranks they share. This calculator applies the standard ties correction to the variance of W, so the z-score and p-value remain accurate even when ties are present. Extensive ties (more than about 25% of observations) can reduce power slightly; if ties are structural (for example, many respondents gave the exact same Likert rating), this is expected behavior and does not invalidate the test.

What does it mean if the p-value is significant but the effect size r is small?

Statistical significance and practical significance are different things. With large samples even a trivially small true difference can produce p < 0.05, because large n drives down variance and increases power. The effect size r tells you how large the real-world difference is, independent of sample size. A significant result with r = 0.08 means the groups are reliably different in the statistical sense but the practical difference is negligible. Always report both.

Sources

Written by Dr. Hannah Brandt, PhD Statistician · Munich, Germany

Applied statistician translating rigorous probability theory into clear, accurate tools for researchers and practitioners.

Search 3,500+ calculators

Loading search…