Kruskal-Wallis H Test Calculator

Compare three or more groups without assuming normality using the Kruskal-Wallis test.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open Kruskal-Wallis H Test Calculator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What Kruskal-Wallis H Test Calculator does

    Compare three or more groups without assuming normality using the Kruskal-Wallis test.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Enter one group per line. The calculator ranks all values together and gives the H statistic (corrected for ties), the degrees of freedom, the p-value, the epsilon-squared effect size and each group's size, median and mean rank.

Method

H = 12 ÷ (N(N + 1)) × Σ(Rᵢ² ÷ nᵢ) − 3(N + 1), divided by the tie correction 1 − Σ(t³ − t) ÷ (N³ − N). H is compared with a chi-square distribution with k − 1 degrees of freedom.

Interpretation

A small p-value means at least one group tends to have larger values than another. The test does not say which; follow up with pairwise Mann-Whitney tests. Epsilon-squared = H ÷ (N − 1) measures the effect size. Numbers can be separated by spaces, commas or new lines.

Worked example

Three groups of five values give H = 10.656 on 2 degrees of freedom, p = 0.0049, epsilon-squared 0.76. Their mean ranks are 3.4, 12.6 and 8.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

How is it different from ANOVA?

It compares ranks, so it does not need normal data.

How many groups?

2 to 20, each with at least 2 values.

What does a significant H tell me?

That the groups are not all from the same distribution.

How are ties handled?

With average ranks and a correction to H.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages