Kruskal–Wallis test calculator with Dunn’s post test
The Kruskal–Wallis test is the rank-based alternative to one-way ANOVA. It checks whether three or more independent groups come from the same distribution, without assuming normality. When the overall test is significant, Dunn’s post test identifies which pairs of groups differ.
No sign-up, nothing to install. Calculations run in your browser; the worksheets, results and charts you create are stored by AI Walay to improve DATAJIN.
When to use it
- Three or more independent groups with skewed data or outliers.
- Ordinal outcomes such as ratings or scores.
- Small groups where normality cannot be checked reliably.
Assumptions
- Groups are independent.
- The outcome can be ranked.
- For a comparison of medians, the group distributions should have a similar shape.
How to run it in DATAJIN
- Put each group in its own column.
- Open Analyze and choose Kruskal–Wallis + Dunn.
- Select three or more columns and click Run.
What you get
- H statistic, degrees of freedom and p-value
- N, median and mean rank per group
- Dunn's pairwise comparisons with z and adjusted p-values
How to interpret the result
A significant result (p < 0.05) means at least one group tends to have higher values than another. Use the Dunn comparisons to locate the difference and report group medians, for example: H(2) = 9.8, p = 0.007.
Frequently asked questions
Is Kruskal–Wallis a test of medians?
Only when the groups have distributions of similar shape. In general it tests whether values in one group tend to be larger than in another.
Why Dunn’s test after Kruskal–Wallis?
Dunn’s test uses the same ranks as the Kruskal–Wallis test, so the pairwise comparisons are consistent with the overall result, and it adjusts the p-values for multiple comparisons.