Kruskal-Wallis Test Calculator
Enter up to 6 independent groups to compute the Kruskal-Wallis H statistic and p-value without assuming normality.
Use the Kruskal-Wallis Test Calculator
Group Data
Enter data for at least 2 groups, then click "Run Test"
H Statistic
—
p-value
—
df
—
N (total)
—
Group Rank Summary
| Group | n | Rank Sum | Mean Rank | Median |
|---|
Summary
The Kruskal-Wallis H test is a non-parametric alternative to one-way ANOVA that determines whether two or more independent groups come from the same distribution. It ranks all observations jointly and compares rank sums across groups. This calculator accepts up to 6 groups, computes the H statistic with tie correction, and reports an approximate p-value using the chi-squared distribution.
How it works
- Enter values for each group (one value per line or comma-separated).
- Add or remove groups as needed — between 2 and 6 groups are supported.
- Click "Run Test" to pool and rank all observations jointly.
- The tool sums the ranks for each group and applies the Kruskal-Wallis H formula.
- A tie-correction factor is applied when tied ranks are present.
- The H statistic is compared to the chi-squared distribution to produce a p-value.
Use cases
- Compare customer satisfaction scores across multiple product categories.
- Test whether three or more teaching methods produce different exam results.
- Analyze pain-scale ratings from multiple treatment groups in a clinical study.
- Assess whether website session durations differ across device types.
- Non-parametric replacement for one-way ANOVA when normality cannot be assumed.
- Evaluate Likert-scale survey responses across demographic segments.
- Compare response times for multiple algorithm variants without assuming normality.
- Test whether plant growth differs under several fertilizer conditions.
Frequently Asked Questions
Last updated: 2026-06-13 · Reviewed by Nham Vu