Kruskal–Wallis Test Calculator with Dunn's Post-Hoc Test and Letters
Compare three or more independent groups when the data are skewed, ordinal or full of outliers. Paste your groups and get the H statistic with tie correction, the p-value, epsilon squared, Dunn’s pairwise tests with Holm, Bonferroni or Benjamini–Hochberg correction, compact letters for your figures, a box plot and an APA sentence.
One box per group. Separate values with spaces, commas or new lines. Groups can have different sizes.
- PriceFree, no login or sign-up needed
- Your dataProcessed in your browser, never uploaded
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published16 November 2026
- Last updated16 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). Kruskal–Wallis test calculator [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/kruskal-wallis-test-calculator/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 16 November 2026.
How to use the Kruskal-Wallis Test Calculator
- Type or paste each group’s values into its own box. Use + Add group for more groups, or load your spreadsheet with Paste from Excel or Upload CSV / Excel (one column per group, or a group column plus a value column).
- Name each group and the outcome so the results and the plot read naturally.
- Choose the post-hoc adjustment. Holm is a good default; Bonferroni is more conservative; Benjamini–Hochberg controls the false discovery rate when you have many groups.
- Click Run Kruskal–Wallis test. Copy the APA sentence and the post-hoc table, and download the box plot with letters for your thesis.
When should I use the Kruskal–Wallis test?
The Kruskal–Wallis H test is the non-parametric alternative to one-way ANOVA. It compares three or more independent groups using ranks, so it works for skewed data, data with outliers and ordinal outcomes such as disease scores or Likert ratings. A significant result says that at least one group tends to differ; Dunn’s post-hoc test then tells you which pairs differ.
| Your design | Parametric | Non-parametric |
|---|---|---|
| Two independent groups | Welch t-test | Mann–Whitney U |
| Three or more independent groups | One-way ANOVA + Tukey | Kruskal–Wallis + Dunn |
| Same subjects, two conditions | Paired t-test | Wilcoxon signed-rank |
Formulas
The p-values of Dunn’s z statistics are two-sided and adjusted for the number of comparisons. Results match R’s kruskal.test(), rstatix::kruskal_effsize() and rstatix::dunn_test(p.adjust.method = "holm").
Assumptions
- The groups are independent, and the observations within each group are independent.
- The outcome is at least ordinal.
- To read the result as a difference in medians, the groups’ distributions should have a similar shape and spread. Otherwise, interpret it as some groups tending to have higher values.
What do the letters mean?
The compact letter display gives each group one or more letters. Two groups that share a letter are not significantly different; groups with no letter in common are. The group with the highest mean rank gets “a”. Journals in agriculture, plant and food science often expect these letters on bar charts and in tables.
How to report a Kruskal–Wallis test (APA)
Report the medians (or show the box plot), H with its degrees of freedom, the p-value, an effect size and the post-hoc results. Learn the ideas behind the test in the free ABC of statistics series, or run it yourself with the R with Aammar course.
Frequently asked questions
Is the Kruskal–Wallis test a non-parametric ANOVA?
Yes. It is the rank-based alternative to one-way ANOVA for three or more independent groups. It does not assume normal distributions, which makes it a good choice for small, skewed or ordinal data.
Which post-hoc test should I use after Kruskal–Wallis?
Dunn’s test is the standard choice. It uses the same ranks as the Kruskal–Wallis test. Adjust the p-values for multiple comparisons with Holm (a good default), Bonferroni (more conservative) or Benjamini–Hochberg (when you have many groups).
Why is the Kruskal–Wallis test significant but no pairwise comparison is?
The overall test and the adjusted pairwise tests answer different questions, and the multiple-comparison adjustment makes each pairwise test stricter. This happens most often with small groups. Report the overall result and say that no pair remained significant after adjustment.
How do I report the effect size?
Epsilon squared (ε² = H / (N − 1)) is the most common choice; eta squared based on H is also shown. As a rough guide, .01 is small, .08 medium and .26 large.
Does the test need equal group sizes?
No. Groups can have different sizes. Very small groups (fewer than five values) reduce the power of the test and make the chi-square p-value less accurate.
Can I use my data in long format?
Yes. If you paste or upload a sheet with a group column and a value column, the tool splits it into one box per group automatically.
Is my data uploaded?
No. Everything is calculated in your browser, and your data never leaves your device.
Do I need to log in or create an account to use the Kruskal-Wallis Test Calculator?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Kruskal–Wallis test calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/kruskal-wallis-test-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel