InputTestHub

Mann-Whitney U Test Calculator

Runs the Mann-Whitney U test on two independent groups, with U, the z approximation, the p-value and the rank-biserial effect size.

Calculators Nothing uploaded No sign-up Free, unlimited
Calculators tool
Enter your figures and press Calculate.
In short The Mann-Whitney U test asks whether one group tends to produce larger values than another, using only the ORDER of the values rather than their sizes. That is what makes it distribution-free. The two groups loaded above give U₁ = 4.5 and U₂ = 31.5 — note they sum to 36, which is n₁ × n₂, an identity that always holds and is the quickest way to check the arithmetic by hand. The z approximation gives −2.0853 and a two-tailed p of 0.0370. U itself has a concrete meaning worth knowing: it counts how many of the 36 possible pairings between the two groups the first group wins, with half a point for a tie. The rank-biserial correlation of 0.75 restates that as an effect size — 87.5% of pairings went one way. Use it instead of a t-test when the samples are small, the data is visibly skewed, the values are ordinal such as satisfaction ratings, or there are outliers you do not want to delete. It costs very little power when the data really is normal, which makes it a safe default when you are unsure. One correction to a common misstatement: it does not test whether the MEDIANS differ. It tests whether one group tends to exceed the other, and those coincide only when the two distributions have the same shape.

How to use the Mann-Whitney U Test Calculator

  1. Enter your figures in the input fields.
  2. The result updates as you type, together with the full working.
  3. Check the breakdown table to see exactly how the number was reached.

About the Mann-Whitney U Test Calculator

The Mann-Whitney U test for two independent groups, with its effect size.

What people use it for

  • Comparing two groups when the data is skewed or ordinal.
  • Small-sample comparisons where a t-test is unsafe.
  • Statistics coursework on non-parametric tests.

Details

The worked exampleU₁ = 4.5, U₂ = 31.5
They always sum ton₁ × n₂, here 36
z and p−2.0853 and 0.0370
Rank-biserial effect size0.7500
Kruskal-Wallis on two groupsgives the UNcorrected z squared, H = 4.689474

The maths behind it

This tool uses U₁ = R₁ − n₁(n₁+1)/2, where R₁ is the sum of ranks in group 1; U₁ + U₂ = n₁ × n₂ always. Every intermediate value is shown on screen, so the result can be checked by hand.

U counts pair wins directly, so it can also be computed by comparing every value in one group against every value in the other — a completely separate route to the same number, and a good way to check a result by hand on small samples.

Where this tool stops

Both samples must be independent. The normal approximation used for the p-value is good from about eight values per group; below that an exact table is more trustworthy than the figure here.

Frequently asked questions

Does this test the medians?
Not directly, despite what many textbooks say. It tests whether one group tends to produce larger values, which matches a median comparison only when the two distributions have the same shape.
When should I use this instead of a t-test?
Small samples, obvious skew, ordinal data, or outliers you cannot justify removing. It loses very little power on genuinely normal data, so it is a reasonable default when you are unsure.
How are ties handled?
Tied values share the average of the ranks they span, and the variance is corrected for the tie pattern. That is why the z here differs slightly from a textbook formula on data with repeated values.
Is this the same as the Wilcoxon rank-sum test?
Yes — same test, two names, and U is a simple rearrangement of the rank sum. The Wilcoxon SIGNED-RANK test is a different test for paired data.
Is the Mann-Whitney U Test Calculator free?
Free, unlimited, and no email address required. You can use it a hundred times a day and nothing changes.
Is the Mann-Whitney U Test Calculator safe to use with private information?
No. The Mann-Whitney U Test Calculator runs entirely in your browser using JavaScript. Your input never reaches inputtesthub.com or any third party — open your browser's Network tab while you use it and you will see no request go out.
How is the result calculated?
It uses U₁ = R₁ − n₁(n₁+1)/2, where R₁ is the sum of ranks in group 1; U₁ + U₂ = n₁ × n₂ always. The full working is printed under the result, so you can follow every step rather than trusting a black box.
What do I get if I try it?
Enter two groups of six and the Mann-Whitney U Test Calculator returns U = 4.5, z = −2.0853, p = 0.0370.
What is the Mann-Whitney U Test Calculator used for?
The jobs it is built for: comparing two groups when the data is skewed or ordinal. Small-sample comparisons where a t-test is unsafe. Statistics coursework on non-parametric tests. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Where does the Mann-Whitney U Test Calculator stop being reliable?
Both samples must be independent. The normal approximation used for the p-value is good from about eight values per group; below that an exact table is more trustworthy than the figure here. Knowing where a tool stops being trustworthy matters more than the cases where it works.
What are the key numbers for the Mann-Whitney U Test Calculator?
The worked example is U₁ = 4.5, U₂ = 31.5. They always sum to is n₁ × n₂, here 36. z and p is −2.0853 and 0.0370. These are printed on the page itself, so you do not have to take them on trust.
Is the number rounded?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related calculators tools

All 382
01

Loan Calculator

Works out the monthly payment, total interest and full repayment schedule for any loan from…

02

EMI Calculator

Calculates your Equated Monthly Instalment with a full principal-versus-interest breakdown and…

03

Mortgage Calculator

Estimates a full monthly housing payment including principal, interest, property tax…

04

Car Loan Calculator

Calculates a car finance payment from the price, deposit, trade-in, interest rate and term…

05

Personal Loan Calculator

Works out instalments and total cost for an unsecured personal loan, including any processing…

09

SIP Calculator

Projects the maturity value of a monthly Systematic Investment Plan, showing invested amount…