t-test vs Mann-Whitney U: How to Choose and Report
Choose between the t-test and Mann-Whitney U: independent vs paired, Welch correction, normality checks, and how to report results in a medical paper.
The independent-samples t-test compares the means of two groups when the outcome is continuous and roughly normally distributed (or the sample is large enough that the mean behaves well). The Mann-Whitney U test (also called the Wilcoxon rank-sum test) is the rank-based alternative when the outcome is ordinal, strongly skewed, or contaminated by outliers in small samples. For paired data, the matching pair is the paired t-test and the Wilcoxon signed-rank test.
The right choice depends on your study design, the outcome type, and sometimes the target journal's expectations, so treat the rules below as a guide rather than a fixed algorithm.
Step 1: Decide whether the data are independent or paired
Before thinking about normality, answer the design question.
- Independent groups: different patients in each group (for example treatment vs control, or men vs women).
- Paired or repeated: the same patients measured twice (before and after treatment), matched pairs, or left and right sides of the same person.
Using an independent test on paired data wastes information and usually loses power. Using a paired test on independent data is simply wrong.
Step 2: Choose the test
| Situation | Parametric test | Non-parametric alternative |
|---|---|---|
| Two independent groups | Independent t-test (Welch) | Mann-Whitney U |
| Two paired measurements | Paired t-test | Wilcoxon signed-rank |
| Three or more independent groups | One-way ANOVA | Kruskal-Wallis |
| Ordinal outcome (e.g. pain score 0-10, Likert) | Usually not appropriate | Mann-Whitney U |
Student's t-test or Welch's t-test?
Classic Student's t-test assumes both groups have the same variance. Welch's version does not. Welch's test performs nearly as well when variances are equal and much better when they are not, especially with unequal group sizes. Many analysts therefore use Welch's test as the default rather than screening variances with Levene's test first, because a two-step procedure can distort error rates.
How to think about normality
The t-test assumes that the sampling distribution of the mean difference is approximately normal, not necessarily that every raw value is. That distinction matters:
- With large samples (as a rough rule, dozens per group), the central limit theorem makes the t-test fairly robust to mild departures from normality.
- With small samples, non-normality matters much more, and normality tests have little power to detect it.
- For paired designs, the assumption applies to the differences, not to the two time points separately.
Practical ways to assess normality:
- Look at a histogram or Q-Q plot for each group. This is usually more informative than a p-value.
- Use a formal test such as Shapiro-Wilk as supporting evidence only. With large n it flags trivial deviations; with small n it misses real ones.
- Consider the nature of the variable. Length of stay, hospital costs, viral load and many lab values are right-skewed by nature.
- Consider a transformation (for example log) if the scientific question still makes sense on that scale, or a non-parametric test if not.
Avoid switching tests repeatedly until you get a significant result. Pre-specify the plan in your protocol or analysis plan whenever possible.
What Mann-Whitney U actually tests
A frequent misunderstanding is that Mann-Whitney U "compares medians." Strictly, it tests whether a randomly chosen observation from one group tends to be larger than one from the other. It is a comparison of the whole distributions through ranks. It becomes a comparison of medians only when the two distributions have the same shape and spread, differing by a location shift.
For that reason, report descriptive statistics and the test carefully. Also note that Mann-Whitney is not automatically "safer": with very unequal variances and unequal group sizes it can behave unexpectedly, and it handles ties through a correction.
Reporting results in a paper
Describe the data in a way that matches the test.
- t-test: mean (SD) for each group, mean difference with 95% confidence interval, the t statistic, degrees of freedom and the exact p-value. Example wording: "Mean systolic blood pressure was 128.4 (SD 12.1) mmHg in group A and 135.2 (SD 14.0) mmHg in group B (mean difference -6.8, 95% CI -10.2 to -3.4; Welch t-test, p < 0.001)." The numbers here only illustrate the format.
- Mann-Whitney U: median (interquartile range) for each group, the U statistic or Z value, and the exact p-value. If possible, add an effect size such as the Hodges-Lehmann location shift with its confidence interval, or the rank-biserial correlation.
- Paired tests: report the mean (or median) of the within-pair differences with a confidence interval, not just the two time-point summaries.
In the methods section, state which test was used for which type of variable, the significance level (usually two-sided 0.05), the software, and how normality was assessed. If you used a non-parametric test for some variables and a parametric test for others, say so explicitly.
Common mistakes
- Running a t-test on ordinal scores treated as if they were interval data without justification.
- Testing normality in the pooled sample instead of within each group (or the paired differences).
- Reporting mean (SD) alongside a Mann-Whitney p-value, which mixes summary and test.
- Reporting only a p-value without an effect size or confidence interval.
- Doing many pairwise two-group tests across more than two groups without multiplicity control. Use ANOVA or Kruskal-Wallis with appropriate post-hoc tests instead.
- Ignoring that a significant p-value does not equal a clinically meaningful difference.
A short decision checklist
- Are the observations independent or paired?
- Is the outcome continuous, or ordinal/binary?
- Is the distribution (or the distribution of paired differences) reasonably symmetric, given your sample size?
- Are there extreme outliers that are real values rather than errors?
- What does the journal or reporting guideline expect?
If you answer "continuous, reasonably symmetric, adequate n," go with Welch's t-test or the paired t-test. If you answer "ordinal, or strongly skewed with a small sample," use Mann-Whitney U or Wilcoxon signed-rank.
How to do this in MedStat
If you do not want to code in SPSS or R, MedStat AI statistics lets you upload your spreadsheet, and the AI selects an appropriate test based on your variable types and group structure. You get the results, charts and p-values in one click, using a zero-code, point-and-click interface; see also our overview of no-code statistics. Review the choice it makes against your study design, and confirm the final method with your protocol, statistician or target journal requirements before submitting.
Upload your data, let AI pick the right test, and get results and charts in one click.
Try MedStat
FAQ
When should I use Mann-Whitney U instead of a t-test?
Use Mann-Whitney U when the outcome is ordinal, when it is clearly skewed or has extreme outliers and the groups are small, or when the distribution cannot reasonably be treated as approximately normal. With moderate or large samples, the t-test is often still robust to mild non-normality.
Does Mann-Whitney U compare medians?
Not strictly. It tests whether values in one group tend to be larger than in the other (stochastic dominance). It only compares medians if the two distributions have the same shape and spread, so describe it carefully in your paper.
Should I use Student's t-test or Welch's t-test?
Welch's t-test is a safe default because it does not assume equal variances and loses little power when variances are equal. Many statisticians recommend using it routinely instead of first testing for equal variances.
What is the non-parametric alternative to the paired t-test?
The Wilcoxon signed-rank test is the usual alternative when paired differences are not approximately normal. It works on the within-pair differences, not on the two groups separately.