Toolstia / Kruskal-Wallis test calculator
Kruskal-Wallis test calculator
The Kruskal-Wallis test is the rank based version of one way ANOVA. Enter each group on its own line and the calculator gives the H statistic, the p-value, mean ranks and effect sizes.
The Kruskal-Wallis test is the rank based alternative to one way ANOVA. It compares three or more independent groups without assuming normal data. A significant result says that at least one group differs, not which one. The p-value comes from the chi-square distribution with groups minus one degrees of freedom.
How it works
- Type one group per line, with numbers separated by commas or spaces.
- Optionally start a line with a name and a colon.
- Read H, the p-value and the table of mean ranks.
When to use it
Use it to compare three or more independent groups when the data are not normal, are ordinal, or have outliers.
What the result says
A small p-value means that at least one group tends to have higher or lower values than the others. It does not say which one, so follow up with pairwise tests.
Ties and effect size
Ties get the average rank and H is corrected for them. Epsilon squared and eta squared show how large the difference is.
Small groups
The p-value uses the chi-square approximation, which is rough when groups have fewer than 5 values. The tool warns you.
Questions
Is my data uploaded?
Everything happens in your browser, and nothing you enter is sent anywhere.
How is it different from ANOVA?
ANOVA compares means and assumes roughly normal data. Kruskal-Wallis compares ranks and makes no such assumption.
How many groups can I use?
Two or more, but with only two groups the Mann-Whitney test is the usual choice.