Calcoid

Mann-Whitney U Test Calculator

Compare two independent samples without assuming normality. Ranks the values, computes U1 and U2, a continuity-corrected z-score, and the p-value.

Mann-Whitney U Test Calculator

Enter at least 2 numbers in each sample. The test ranks all values together, so the two samples can have different sizes.

U statistic

2

z = -3.5988 with continuity correction, two-tailed p = 0.00032

Significant: reject the null hypothesis at alpha = 0.05 (two-tailed p = 0.0003).

U1

2

U2

98

Mean of U

50

SD of U

13.1989

P (two-tailed)

0.00032

P (one-tailed)

0.00016

Rank summary
SamplenRank sumMean rank
Sample 110575.7
Sample 21015315.3

Rank-biserial r

-0.96

Tie correction

Applied (tied ranks)

Frequently Asked Questions about the Mann-Whitney U Test Calculator

What is the Mann-Whitney U test?
The Mann-Whitney U test, also called the Wilcoxon rank-sum test, checks whether two independent samples come from the same distribution. It is nonparametric, so it does not assume the data are normally distributed and works on ranks instead of raw values. A significant result means one group tends to produce larger values than the other.
When should you use it instead of a t-test?
Use the Mann-Whitney U test when your data are ordinal, skewed, or have outliers, or when the samples are too small to trust a normal-distribution assumption. The t-test compares means and assumes roughly normal data, while this test compares ranks and is more robust. If your data are clearly normal with similar variances, a t-test usually has slightly more statistical power.
How is the U statistic calculated?
First, pool both samples and rank every value from smallest to largest, giving tied values the average of the ranks they share. Add the ranks within each group to get R1 and R2, then compute U1 as R1 minus n1(n1+1)/2 and U2 as R2 minus n2(n2+1)/2. The reported U is the smaller of U1 and U2, and the two always add up to n1 times n2.
How does this calculator find the p-value?
It uses the large-sample normal approximation. The calculator standardizes U into a z-score using the mean (n1 times n2 divided by 2) and the standard deviation of U, applying a 0.5 continuity correction and a tie correction to the variance. That z-score becomes a one-tailed or two-tailed p-value. For groups smaller than 8, the approximation is rough, so compare U against an exact critical-value table instead.
What does the U statistic tell you?
On its own, U measures how much the two samples overlap in rank. A U close to n1 times n2 divided by 2 means the groups overlap heavily and differ little, while a U near 0 means almost no overlap and a strong separation. The rank-biserial correlation shown alongside scales this to a range of -1 to 1 as an effect size, where 0 is no difference.
Does it handle ties and unequal sample sizes?
Yes. Tied values receive average (mid) ranks, and the variance of U is reduced by a tie correction so the p-value stays accurate. The two samples do not need to be the same size, because every value is ranked within one combined pool. If every value is identical there is no variation to test, so the calculator returns no result.

Related Calculators

More calculators in "Math"

See all 202 calculators in "Math"