Mann-Whitney U Test

Compare two independent groups when your data are ordinal or your continuous data violate normality assumptions.

The Mann-Whitney U Test is the nonparametric counterpart of the independent samples t-test. Rather than comparing group means, it compares the distributions of two independent groups by ranking all observations together and assessing whether one group tends to have higher ranks than the other. It is appropriate when normality cannot be assumed, when the outcome variable is ordinal, or when sample sizes are small.

The test is widely used in medical research (comparing pain ratings between treatment groups), psychology (comparing Likert-scale responses), and any field where data are measured on an ordinal scale or are clearly non-normal. Common misconceptions aside, the Mann-Whitney U test is not simply testing medians — it tests the probability that a randomly selected observation from Group 1 is larger than a randomly selected observation from Group 2 (the probability of superiority).

StatRyx computes the U-statistic, the exact or asymptotic p-value, and the rank-biserial correlation (r) as an effect size. It also generates the rank-based descriptives (median, interquartile range) that APA style recommends reporting alongside the test statistic.

When to use the Mann-Whitney U Test

When not to use it

Worked example

GroupnMedianIQRMean RankUpr
Acupuncture403.02–527.3412< .001.52
Control406.04–753.7

How to report it (APA 7)

A Mann-Whitney U test indicated that pain ratings were significantly lower in the acupuncture group (Mdn = 3.0, IQR = 2–5) than in the control group (Mdn = 6.0, IQR = 4–7), U = 412, z = −4.18, p < .001, r = .52.

Frequently asked questions

Is the Mann-Whitney U test free on StatRyx?

Yes. You can run it without an account (3 free analyses), and a free account adds 10 more — a one-time allowance, no payment needed. Every result includes the APA 7 write-up. Paid plans (Student from $9/month) add more analyses and Word, PDF and Excel export.

Do I need to code to run a Mann-Whitney test?

No coding required. Simply describe your two groups and outcome variable in plain English and StatRyx performs the full nonparametric analysis.

What sample size do I need for a Mann-Whitney U test?

The Mann-Whitney U test can be used with very small samples (as few as 5 per group using exact tables). For adequate power to detect a medium effect (r = 0.3) at 80% power, you need roughly 50 participants per group.

Is the Mann-Whitney U test the same as the Wilcoxon Rank-Sum test?

Yes, the two tests are mathematically equivalent — they produce the same p-value. The Mann-Whitney U formulation focuses on the number of times Group 1 observations outrank Group 2 observations, while the Wilcoxon rank-sum version focuses on the sum of ranks in one group. StatRyx reports both statistics.

What effect size should I report with Mann-Whitney U?

Report the rank-biserial correlation (r), which ranges from −1 to +1 and is analogous to Cohen's d for ranked data. Values of .10, .30, and .50 correspond approximately to small, medium, and large effects. StatRyx computes and labels this automatically.

Run a Mann-Whitney U Test on your data →

Related analyses