Part of the Maths & Statistics suite · 235 calculators

Mann-Whitney U Test Calculator

Compare two independent groups without assuming normality — the rank-based alternative to the t-test, also called the Wilcoxon rank-sum test.

Pool both samples, rank them from smallest to largest, and sum the ranks in each group.

Comma-separated
Comma-separated
Results update as you type
Results
U statistic (smaller)
12
U for group 1
U for group 2
z (normal approximation)
p-value (two-tailed)
Decision at 5%
Rank sum, group 1
Effect size (rank-biserial)
Probability a group-1 value exceeds a group-2 value
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the national curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About mann-whitney u test

How the mann-whitney u test calculator works

Pool both samples, rank them from smallest to largest, and sum the ranks in each group. U measures how often a value from one group beats a value from the other; if the groups are alike, U lands near n₁n₂/2.

Because it uses only the ordering, it is unaffected by outliers and works on ordinal data. The normal approximation used here is reliable once both groups have about eight or more observations.

Formula: U₁ = R₁ − n₁(n₁+1)/2; z = (U − n₁n₂/2) / σ_U

Worked examples

InputsU statistic (smaller)Note
Two groups of seven12group 1 sits higher, but p = 0.125 — not significant on seven each
Identical groups12.5p = 1
Complete separation0U = 0 — every group-1 value wins

Frequently asked questions

When should I use Mann-Whitney instead of a t-test?

When the data is ordinal, badly skewed, or has outliers you cannot justify removing. It compares distributions rather than means.

Is it the same as the Wilcoxon rank-sum test?

Yes — two names for the same test, derived independently in 1945 and 1947.

What exactly does it test?

Whether one group tends to produce larger values than the other. Only under an added assumption of identical shapes does it become a test of medians.

How do I read the effect size?

The rank-biserial correlation runs from −1 to +1. The AUC is more intuitive: the probability that a random value from group 1 exceeds one from group 2.

Does it handle ties?

Yes — tied values share an average rank, and the variance is corrected for them, which this calculator does.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.