Skip to content

Advertisement
Advertisement unavailable offline
The page content remains available.

Mann–Whitney U test calculator

Paste two independent samples. The calculator assigns pooled ranks and tests whether values in one group tend to be larger.

P-value: —

Fill in the fields above — the result is computed on this page.

U for sample A
—
U for sample B
—
Rank sum A
—
z approximation
—
Sample size A
—
Sample size B
—

Pooled ranks

Value Group Rank
Fill in the fields above — the result is computed on this page.
What do these numbers mean?
  • Report U, both sample sizes and the p-value.
  • A distribution difference is not necessarily only a median difference.

For very small samples an exact U distribution may produce a different p-value. Observations must be independent between groups.

How do I use this page?
  1. Paste independent samples A and B.
  2. Choose a one- or two-sided alternative.
  3. Read U, z and the p-value.

What this page does not do: For very small samples an exact U distribution may produce a different p-value. Observations must be independent between groups.

Further reading

Theory — what is the Mann–Whitney U test?

The Mann–Whitney U test is a nonparametric comparison of two independent samples that does not require a normal distribution. All observations from both groups receive pooled ranks, and the U statistic describes how these ranks are arranged between the groups. The calculator applies a correction for tied ranks together with an approximation, keeping the result reliable even with repeated values. The shape of the compared distributions still affects how the detected difference should be interpreted.

Frequently asked questions

Must the data be normal?
No, but distribution shapes affect how the difference should be interpreted.
May sample sizes differ?
Yes, provided the observations are independent.

See also

← All calculators

Advertisement
Advertisement unavailable offline
The page content remains available.
Offline app and draw notifications

My saved selections

Selections saved only in this browser. Numbers are shown exactly as saved; this is not a lottery ticket.

Open the My saved selections hub
Restore with preview

Restore in the hub: review the file and confirm first. Both old backups and the complete selections + journal backup are supported. Nothing is uploaded.