Mann–Whitney U test calculator
The Mann–Whitney U test (also called the Wilcoxon rank-sum test) compares two independent groups using the ranks of the values instead of the values themselves. It is the standard alternative to the unpaired t test when data are skewed, contain outliers, or are ordinal such as Likert-scale scores.
No sign-up, nothing to install. Calculations run in your browser; the worksheets, results and charts you create are stored by AI Walay to improve DATAJIN.
When to use it
- Two independent groups with small samples that are clearly not normal.
- Ordinal outcomes such as pain scores, ratings or satisfaction levels.
- Data with outliers that would distort a mean.
Assumptions
- The two groups are independent of each other.
- The outcome is at least ordinal (values can be ranked).
- To read the result as a difference in medians, the two distributions should have a similar shape.
How to run it in DATAJIN
- Put each group in its own column.
- Open Analyze and choose Mann–Whitney test.
- Select the two columns and click Run.
What you get
- U statistic (and U for each group)
- Sum of ranks for group 1
- Difference in medians
- z approximation and two-tailed p-value
How to interpret the result
A p-value below 0.05 means values in one group tend to be larger than in the other. Report U, the p-value and the median of each group, for example: U = 23, p = 0.012. The difference in medians gives a sense of the effect size in the original units.
Frequently asked questions
Is Mann–Whitney the same as the Wilcoxon rank-sum test?
Yes. They are two formulations of the same test and give the same p-value. Do not confuse it with the Wilcoxon signed-rank (matched-pairs) test, which is for paired data.
Does Mann–Whitney compare medians?
Strictly it tests whether one group tends to have larger values than the other. It can be read as a test of medians only when the two distributions have the same shape.