Site icon Codanics

Kruskal-Wallis Test Calculator with Dunn’s Post-Hoc

Kruskal-Wallis Test Calculator: free online tool by Codanics that runs in your browser
Statistics

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.

✅ No login needed100% freeRuns in your browserYour data stays on your device
Kruskal-Wallis Test Calculator✅ Free · no login📚 Cite this tool
Your data never leaves your PC. Your data is analysed on your own computer or phone, even when you upload a CSV or Excel file. Nothing is uploaded, stored or seen by Codanics, and no login is needed.

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.

Citation · APA 7th edition

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.

🚀 Follow Codanics channel on WhatsApp for more updatesNew free tools, scholarships, PhD positions and research tips, straight to your phone. Free lessons on YouTube too.

How to use the Kruskal-Wallis Test Calculator

  1. 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).
  2. Name each group and the outcome so the results and the plot read naturally.
  3. 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.
  4. 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 designParametricNon-parametric
Two independent groupsWelch t-testMann–Whitney U
Three or more independent groupsOne-way ANOVA + TukeyKruskal–Wallis + Dunn
Same subjects, two conditionsPaired t-testWilcoxon signed-rank

Formulas

Rank all N values together (ties get the average rank). Rᵢ = rank sum of group i, nᵢ = its size. H₀ = 12 / (N(N + 1)) · Σ Rᵢ²/nᵢ − 3(N + 1) H = H₀ / C, C = 1 − Σ(t³ − t) / (N³ − N) df = k − 1, p from χ²(df) ε² = H / (N − 1) η²(H) = (H − k + 1) / (N − k) Dunn: z = (R̄ᵢ − R̄ⱼ) / √{ [N(N + 1)/12 − Σ(t³ − t)/(12(N − 1))] · (1/nᵢ + 1/nⱼ) }

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)

A Kruskal–Wallis test showed a significant difference in plant height between the four fertilizer treatments, H(3) = 27.49, p < .001, ε² = .89. Dunn’s post-hoc tests with Holm correction showed that NPK plants were taller than control (padj < .001) and compost plants (padj = .005), and biochar plants were taller than control plants (padj = .005).

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.

Learn the statistics behind these numbers. Codanics has free statistics, R and Python lessons on YouTube and full courses for researchers.

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

Made by Dr. Muhammad Aammar Tufail, Codanics. First published 16 November 2026, last updated 16 November 2026. Found a bug or have an idea for a new tool? Tell us on the WhatsApp channel or in the comments on YouTube. Results are for learning and planning; check important analyses with a statistician or your supervisor.
Exit mobile version