Mann-Whitney U Test Calculator
Calculate the Mann-Whitney U statistic and z-score for comparing two independent groups using rank sums.
Inputs
Results
U Statistic
165
Z-Score
2.16
P-Value (two-tailed, approx)
0.03
U' Statistic60
U (min)60
Significant at α=0.05 (1=Yes)1
Effect Size (r)0.39
U Max165
How to Use This Calculator
- Enter Group 1 Size (n₁), Group 2 Size (n₂), and Rank Sum for Group 1 (R₁).
- Review U Statistic, Z-Score, and P-Value (two-tailed, approx).
- Use U and U (min) to inform your decision.
- Use the chart to visualize the results and explore different scenarios by adjusting inputs.
How the result changes with Group 1 Size (n₁)
| Group 1 Size (n₁) | U Statistic | Z-Score | P-Value (two-tailed, approx) |
|---|---|---|---|
| 1,002 | 517,353 | 451.51 | 0 |
| 3,501 | 6,182,586 | 1,569.22 | 0 |
| 6,501 | 21,232,086 | 2,910.89 | 0 |
| 9,000 | 40,639,320 | 4,028.48 | 0 |
What each input means
- Group 1 Size (n₁)
- Number of observations in the first group.
- Group 2 Size (n₂)
- Number of observations in the second group.
- Rank Sum for Group 1 (R₁)
- Sum of ranks assigned to Group 1 after ranking all observations together.
How this is calculated
Worked example, using the default values
- Identify Input ParametersGroup 1 Size (n₁) = 15, Group 2 Size (n₂) = 15, Rank Sum for Group 1 (R₁) = 180 = 3 input(s) provided
- Calculate U StatisticU Statistic165 = 165
- Calculate Z-ScoreZ-Score2.1569 = 2.1569
- Calculate P-ValueP-Value = Math0.031 = 0.031
- Calculate U' StatisticU' Statistic60 = 60
- Calculate UU60 = 60
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Statistics
Kruskal-Wallis Test Calculator
Perform a Kruskal-Wallis H test to compare rank distributions across multiple independent groups.
StatisticsT-Test Calculator
Calculate the t-statistic, degrees of freedom, and approximate p-value for a one-sample t-test.
StatisticsZ-Score Calculator
Calculate the z-score (standard score) for any value in a normal distribution. Find the percentile ranking and probability associated with your data point.
More in Math & Statistics.