FreeStatisticalTools.com
Nonparametric tests

Kruskal-Wallis H Test Calculator

Compare three or more independent groups on an ordinal or non-normal outcome, then locate differences with Bonferroni-adjusted Dunn tests.

Free · No sign-upReplaces SPSS · PrismWorks with your data
Updated · By Bibin Xavier

Data 90 × 12

Paste from Excel, or drop a CSV, TSV or Excel file here.
Example data 90 rows, 12 variables. Data stays in this browser tab.
IDtext · 90 levelsGrouptext · 3 levelsGendertext · 2 levelsAgenumericHours_StudynumericAnxietynumericMotivationnumericPre_ScorenumericPost_ScorenumericExam_ScorenumericPassednumeric · codedSatisfactionnumeric · coded
S001ControlMale2311.2294.660626712
S002WorkshopFemale233.9283.554705402
S003OnlineFemale1810.132455576603
S004ControlMale2613.6413.552555903
S005WorkshopFemale229.7273.656636504
S006OnlineFemale207.9323.865826502
S007ControlFemale206.328372836103
S008WorkshopMale228293.164726213

Variables and options

Results update automatically when you change an option.

Results

90 rows · example data
Table 1

Ranks

GroupnMedianMean rank
Control303.0031.23
Online303.0045.18
Workshop304.0060.08
Table 2

Test statistics

Kruskal-Wallis Hdfpε²
20.032< .001.225

Note. Corrected for ties. ε² is the rank-based effect size.

Table 3

Dunn’s pairwise comparisons

ComparisonMean rank differencezppBonf
Control − Online-13.95-2.16.031.092
Control − Workshop-28.85-4.47< .001< .001
Online − Workshop-14.90-2.31.021.063

Medians by group (bars show IQR)

Interpretation

Satisfaction differed significantly across groups. Dunn tests found differences between Control and Workshop.

A Kruskal-Wallis test showed a significant difference between groups, H(2) = 20.03, p < .001, ε² = .225.

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). Kruskal-Wallis H Test Calculator [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/kruskal-wallis-test-calculator/

BibTeX

@software{xavier_kruskalwallistest_2026,
  author = {Xavier, Bibin},
  title = {Kruskal-Wallis H Test Calculator},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/kruskal-wallis-test-calculator/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free Kruskal-Wallis H Test Calculator tool on FreeStatisticalTools.com (Xavier, 2026).”

What is the Kruskal-Wallis test?

The Kruskal-Wallis H test compares three or more independent groups on an ordinal or non-normal outcome. It is the rank-based alternative to one-way ANOVA, followed here by Dunn’s pairwise tests.

When to use the Kruskal-Wallis test

Use it instead of one-way ANOVA for ordinal outcomes or when normality is badly violated with small groups.

Assumptions

  • Independent groups.
  • An ordinal or continuous outcome.

How to use this tool

  1. Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
  2. Choose the variables. Select the dependent variable and grouping variable.
  3. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

How to report the Kruskal-Wallis test in APA style

Report H, df, p and ε², then the significant Dunn comparisons.

Frequently asked questions

What post-hoc test follows Kruskal-Wallis?

Dunn’s test with a Bonferroni adjustment is the standard follow-up and is what SPSS reports for pairwise comparisons.

Does Kruskal-Wallis compare medians?

It compares rank distributions. It can be read as a test of medians only if the groups have similarly shaped distributions.

How do I report it?

Report H, degrees of freedom, p and an effect size, for example: H(2) = 9.14, p = .010, ε² = .10.

Related tools

Browse all categories