Mann-Whitney U Test Calculator

Compare two independent samples with the Mann–Whitney U or Wilcoxon rank-sum test, using exact or approximate p-values.

Result
—

How to calculate

Rank all observations together and average ranks at ties. U is the first rank sum minus n₁(n₁ + 1)/2. Exact mode counts group assignments. Large samples can use a tie-corrected normal approximation.

Worked example

Use Independent sample A 1, 2, 3 · Independent sample B 4, 5, 6 · P-value method Automatic · Alternative hypothesis Two sided · Significance level 5%. The result is 0.1.

Input and result notes

Use independent samples. Exact mode is available up to 50 observations combined. A two-sided exact p-value is twice the smaller inclusive tail, capped at one.

R reference for the Wilcoxon rank-sum test

Related calculators