Wilcoxon Rank-Sum Test Calculator

Enter two independent samples into Sample 1 and Sample 2, choose your alternative hypothesis and significance level (α), and the Wilcoxon Rank-Sum Test Calculator returns the U statistic, Z score, and p-value — helping you determine whether the two groups differ significantly without assuming normality.

Enter comma, space, or newline-separated numeric values for Group A.

Enter comma, space, or newline-separated numeric values for Group B.

Apply a 0.5 continuity correction when computing the Z score for the normal approximation.

Results

P-Value

--

U Statistic

--

Z Score

--

Sample 1 Size (n₁)

--

Sample 2 Size (n₂)

--

Median (Group A)

--

Median (Group B)

--

Conclusion

--

Median Comparison: Group A vs Group B

Results Table

Frequently Asked Questions

What is the Wilcoxon Rank-Sum Test?

The Wilcoxon Rank-Sum test (also called the Mann-Whitney U test) is a non-parametric statistical test used to compare two independent groups. It tests whether one group tends to have higher values than the other, without assuming that the data follow a normal distribution. It ranks all observations from both groups together and compares the sum of ranks between groups.

When should I use the Wilcoxon Rank-Sum Test instead of a t-test?

Use the Wilcoxon Rank-Sum test when your data is ordinal rather than interval/ratio, when your samples are small and you cannot verify normality, or when your data contains significant outliers. It is the go-to non-parametric alternative when the assumptions of the independent samples t-test (normality, equal variance) are not met.

What is the U statistic in this test?

The U statistic counts the number of times an observation from Group 1 precedes an observation from Group 2 when all values are sorted. Two U values are computed (U₁ and U₂), and the smaller one is typically used. For large samples, U is converted to a Z score using the normal approximation to obtain a p-value.

What does the p-value tell me in the Wilcoxon Rank-Sum Test?

The p-value represents the probability of observing a test statistic as extreme as the one computed, assuming the null hypothesis is true (the two groups have equal distributions). If the p-value is less than your chosen significance level α (e.g., 0.05), you reject the null hypothesis and conclude there is a statistically significant difference between the groups.

What happens with large sample sizes?

For sufficiently large samples (both n₁ and n₂ greater than about 10), the U statistic follows an approximately normal distribution. This calculator uses the normal approximation with an optional continuity correction to compute the Z score and p-value. For very small samples, exact tables or permutation methods would be needed.

What is the continuity correction and should I use it?

The continuity correction adds or subtracts 0.5 from the U statistic before computing the Z score, improving the accuracy of the normal approximation for discrete data. It is generally recommended when using the normal approximation, especially for smaller samples. Most statistical software (like R's wilcox.test) applies it by default.

What is the difference between the Wilcoxon Rank-Sum and Wilcoxon Signed-Rank tests?

The Wilcoxon Rank-Sum test (this calculator) is for two independent samples — the subjects in Group A and Group B are different people or units. The Wilcoxon Signed-Rank test is for paired or related samples — the same subject is measured twice (e.g., before and after treatment). Using the wrong test will give misleading results, so always check your study design first.

What if I have tied values in my data?

When two or more observations share the same value, they receive averaged ranks (mid-ranks). This calculator handles ties automatically and applies a tie correction to the variance when computing the Z score, ensuring the p-value remains accurate even when tied values are present in your dataset.

More Statistics Tools