0
tutorials.scrollToStart
Statistical tests

When to Use the Mann-Whitney U Test (vs. t-Test)

5 min read

When to use the Mann-Whitney U test comes down to one situation: you want to compare two independent groups, but the normality assumption for a t-test cannot be met. Mann-Whitney U is the non-parametric alternative — it compares rank distributions instead of means and works reliably with small samples and ordinal data. This guide covers the decision, the SPSS steps, and APA reporting with effect size r.

Free sample chapter

Data Analysis From Survey to Results

Step-by-step guidance for choosing the right test, running it, and writing up APA results - in plain language, not theory. Get the free sample chapter when you join the waitlist.

Key takeaways

  • Use Mann-Whitney U instead of the independent samples t-test when normality is violated and n < 30 per group.
  • With n ≥ 30 per group, the t-test is robust — check your Q-Q plot and proceed unless violations are severe.
  • Mann-Whitney U compares rank distributions, not means — report medians, not means, in your results.
  • Effect size for Mann-Whitney U is r = Z ÷ √N. Benchmarks: r = .10 small, .30 medium, .50 large.
  • Commonly used with Likert composite scores when normality cannot be assumed.

What Is Mann-Whitney U? The Non-Parametric t-Test

Mann-Whitney U tests whether the rank distributions of two independent groups differ significantly. Instead of comparing means, it ranks all observations from both groups together and checks whether one group’s ranks tend to be higher than the other’s.

This makes it suitable when the t-test’s normality assumption is violated, when data are ordinal, or when sample sizes are small and you cannot rely on the Central Limit Theorem.

Despite being non-parametric, Mann-Whitney U is not weaker than the t-test — it is simply more appropriate under different conditions.

Mann-Whitney U vs. t-Test: Side-by-Side Comparison

Both tests compare two independent groups. The choice depends on your data and sample size:

CriterionIndependent t-testMann-Whitney U
Data typeMetric (interval/ratio)Metric or ordinal
Normality requiredYes (or n ≥ 30 per group)No
ComparesMeansRank distributions (report medians)
Effect sizeCohen’s dr = Z ÷ √N
When to useNormality holds or large samplesNormality violated, small n, or ordinal DV

When Normality Is Violated — What to Do

Run Shapiro-Wilk first: Analyze → Descriptive Statistics → Explore → Plots → Normality plots with tests.

  • If Shapiro-Wilk p > .05: normality not significantly violated → use the independent samples t-test.
  • If Shapiro-Wilk p < .05 AND n < 30 per group: normality violated → use Mann-Whitney U.
  • If Shapiro-Wilk p < .05 AND n ≥ 30 per group: use the t-test anyway (Central Limit Theorem), but inspect the Q-Q plot and histogram.

[TIP] With n > 100 per group, Shapiro-Wilk almost always returns significant even for trivial deviations. In this case, rely on the Q-Q plot and histogram rather than the Shapiro-Wilk p-value.

How to Run Mann-Whitney U in SPSS: Step-by-Step

SPSS path: Analyze → Nonparametric Tests → Legacy Dialogs → 2 Independent Samples → move your DV to Test Variable List, grouping variable to Grouping Variable → Define Groups → tick Mann-Whitney U → OK.

  • In the output, read:
  • Mann-Whitney U statistic
  • Wilcoxon W statistic (sum of ranks for the smaller group)
  • Z statistic (standardised test statistic)
  • Asymptotic Significance (2-tailed) = your p-value

Report medians (not means) for each group.

Interpreting the Output and Calculating Effect Size r

The p-value tells you whether the rank distributions differ significantly. The U statistic alone is not meaningful without context.

  • Effect size r = Z ÷ √N, where N = total sample size.
  • Benchmarks: r = .10 small, .30 medium, .50 large.

Example: Z = −2.84, N = 121 → r = 2.84 ÷ √121 = 2.84 ÷ 11 = .26 (small-medium effect).

APA Reporting Format for Mann-Whitney U

  • Significant:
  • "Students who exercised regularly (Mdn = 20.0) showed significantly lower stress ranks than non-exercising students (Mdn = 25.0), U = 1324.5, z = −2.84, p = .005, r = .26."
  • Non-significant:
  • "No significant difference in stress ranks was found between exercising and non-exercising students (Mdn = 21.0 vs. Mdn = 23.0), U = 1654.0, z = −1.12, p = .263, r = .10."

[INFO] Report medians (Mdn), not means (M), when using Mann-Whitney U. The test ranks data rather than using means, so medians are the appropriate descriptive statistic.

Frequently asked questions

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

â–¾
Use Mann-Whitney U when Shapiro-Wilk shows significant non-normality (p < .05) and your sample size is less than 30 per group. With n ≥ 30 per group, the independent samples t-test is robust to normality violations and is the preferred choice. Mann-Whitney U is also appropriate when your dependent variable is ordinal rather than metric.

Does Mann-Whitney U compare means or medians?

â–¾
Mann-Whitney U compares rank distributions — technically neither means nor medians. However, it is sensitive to differences in central tendency, so reporting medians is the conventional and appropriate choice. Do not report means in your results section for Mann-Whitney U.

How do I calculate the effect size r for Mann-Whitney U in SPSS?

â–¾
SPSS does not calculate r automatically for Mann-Whitney U. Find the Z statistic in the Test Statistics table, then calculate r = Z ÷ √N, where N is the total number of participants. For example, Z = −2.84 and N = 121 gives r = 2.84 ÷ 11 = .26.

Can I use Mann-Whitney U with Likert scale data from my thesis survey?

â–¾
Yes, if you are comparing two groups on a single Likert item (ordinal data) or a computed composite score that fails normality. Mann-Whitney U is commonly used in psychology and social science theses for this reason. Report medians and the effect size r in your results.

What is the difference between Mann-Whitney U and Wilcoxon signed-rank test?

â–¾
Mann-Whitney U is for two independent (separate) groups. Wilcoxon signed-rank is for paired data — the same participants measured twice. Choose based on your design: different participants in each group → Mann-Whitney U. Same participants before and after → Wilcoxon signed-rank.

Free tool

Not sure which statistical test to use?

Answer 5 quick questions about your research design and get the right test - with an explanation of why - in under two minutes.

Statoria Team

Statistics educators & software developers

We build Statoria to help bachelor and master students get through their thesis data analysis without stress. Our guides are written by researchers with experience in social science statistics and student supervision.

Related guides