Mann–Whitney U test calculator
Nonparametric comparison of two independent groups — the rank-based alternative to the independent t-test. Returns U, z, p and effect size r.
Or skip the manual work
In the app, you chat with your data — the AI runs the analysis and writes it up.
Free accounts include AI chat, data analysis, and every tool on this site.
When to use this
The Mann–Whitney U test (also called the Wilcoxon rank-sum test) compares two independent groups when the assumptions of the t-test are doubtful: skewed distributions, ordinal outcomes (pain ratings, Likert responses), small samples, or outliers you cannot justify removing. It ranks all observations together and asks whether one group’s ranks are systematically higher than the other’s. It tests for a difference in the distributions’ location — commonly summarized with medians — rather than a difference in means.
Key assumptions
- The two groups are independent (different cases in each).
- The outcome is at least ordinal — values can be ranked.
- Observations are independent within and across groups.
- To interpret the result as a median difference, the two distributions should have a similar shape.
Common mistakes
- Using it for paired data — the paired analogue is the Wilcoxon signed-rank test.
- Reporting means with a Mann–Whitney result; report medians (and the effect size r).
- Assuming it tests medians under all circumstances — with very different distribution shapes it is a test of stochastic dominance, not of medians.
- Thinking it is assumption-free; independence and ordinal-or-better measurement still matter.
Frequently asked questions
When should I prefer Mann–Whitney over the t-test?
What does the effect size r mean here?
Why does the output show a z statistic?
Related free tools
Stop copying numbers between tools
Inside Kahubi, the AI agent runs this analysis directly on your uploaded dataset — then writes the results section in your own writing style, with the statistics reported correctly.