InputTestHub

Kruskal-Wallis Test Calculator

Runs the Kruskal-Wallis H test on any number of groups, with the tie correction, degrees of freedom, p-value and effect size.

Calculators Nothing uploaded No sign-up Free, unlimited
Calculators tool
Enter your figures and press Calculate.
In short Kruskal-Wallis is the non-parametric alternative to one-way ANOVA: it ranks every value across all groups together and asks whether the rank sums are further apart than chance would produce. The three groups loaded above give H = 9.8462 on 2 degrees of freedom and p = 0.0073, against a critical chi-square of 5.9915. Because it uses ranks rather than values, it needs no normality assumption and is unbothered by outliers — an extreme value simply becomes the highest rank rather than dragging a mean around. Two structural facts are worth carrying. Every rank from 1 to N is used exactly once, so the group rank sums must total N(N+1)/2, which is an arithmetic check you can do by hand. And with exactly two groups this IS the Mann-Whitney test — H comes out as precisely the square of that test's z, so Kruskal-Wallis generalises it to more groups and collapses back to it at two. Use it when the variances differ wildly between groups, when the data is ordinal, or when the samples are small and non-normal. As with ANOVA, a significant result says only that the groups are not all alike: finding which pair differs needs a follow-up such as Dunn's test, and running plain Mann-Whitney on every pair without adjusting inflates the false-positive rate.

How to use the Kruskal-Wallis 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 Kruskal-Wallis Test Calculator

The Kruskal-Wallis rank test across any number of groups.

What people use it for

  • Comparing three or more groups without assuming normality.
  • Ordinal outcomes such as ratings across several conditions.
  • Small-sample comparisons where ANOVA is unsafe.

Details

The worked exampleH = 9.8462 on 2 df
p-value0.0073
Critical χ² at 0.05, 2 df5.9915
Rank sums must totalN(N+1)/2
With two groupsH is the Mann-Whitney UNcorrected z squared

The maths behind it

This tool uses H = 12/(N(N+1)) × Σ Rᵢ²/nᵢ − 3(N+1), divided by a tie correction, read against chi-square on k − 1 df. Every intermediate value is shown on screen, so the result can be checked by hand.

With exactly two groups the page says so explicitly and gives the relationship to the Mann-Whitney test, because seeing one test collapse into another is the fastest way to trust both.

Where this tool stops

The chi-square approximation for H is good when each group has about five or more values. With very small groups an exact permutation test is more trustworthy, and this page cannot provide one.

Frequently asked questions

When should I use this instead of ANOVA?
When the group variances differ badly, when the data is ordinal, or when the samples are small and clearly non-normal. It compares whole distributions rather than means.
What does a significant H tell me?
That the groups are not all alike — not which pair differs. Dunn's test is the usual follow-up, and it applies a correction that plain pairwise tests do not.
Why is there a tie correction?
Ties reduce the variance of the rank sums, so without a correction H is too small and the test is too conservative. The page shows the correction factor when ties are present.
Does it compare medians?
Only if the groups have the same distributional shape. In general it detects any difference in location, spread or shape, which is broader than a median comparison.
Are there any usage caps on the Kruskal-Wallis Test Calculator?
There is no cost and no cap. The Kruskal-Wallis Test Calculator is not a demo of a paid product, so nothing is held back or watermarked.
Can you see what I put into this utility?
No. The Kruskal-Wallis 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.
What formula does the Kruskal-Wallis Test Calculator use?
It uses H = 12/(N(N+1)) × Σ Rᵢ²/nᵢ − 3(N+1), divided by a tie correction, read against chi-square on k − 1 df. The full working is printed under the result, so you can follow every step rather than trusting a black box.
Give me a worked example.
Enter three groups of four and the Kruskal-Wallis Test Calculator returns H = 9.8462, p = 0.0073.
What problem does the Kruskal-Wallis Test Calculator solve?
Typical uses: comparing three or more groups without assuming normality. Ordinal outcomes such as ratings across several conditions. Small-sample comparisons where ANOVA is unsafe. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
When is the Kruskal-Wallis Test Calculator not the right tool?
The chi-square approximation for H is good when each group has about five or more values. With very small groups an exact permutation test is more trustworthy, and this page cannot provide one. Knowing where a tool stops being trustworthy matters more than the cases where it works.
Which values should I know?
The worked example is H = 9.8462 on 2 df. p-value is 0.0073. Critical χ² at 0.05, 2 df is 5.9915. These are printed on the page itself, so you do not have to take them on trust.
Can I rely on this for exact work?
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…