Kruskal-Wallis Test Calculator
Perform a Kruskal-Wallis H test to compare rank distributions across multiple independent groups.
Inputs
Results
H Statistic
2.52
P-Value (approx)
0.28
How to Use This Calculator
- Enter Total Observations (N), Number of Groups (k), and Group 1 Size (n₁).
- Set Group 1 Rank Sum (R₁), Group 2 Size (n₂), and Group 2 Rank Sum (R₂).
- Adjust Group 3 Size (n₃), Group 3 Rank Sum (R₃) as needed.
- Review H Statistic and P-Value (approx).
- Use Degrees of Freedom and Significant at α=0.05 (1=Yes) to inform your decision.
How the result changes with Total Observations (N)
| Total Observations (N) | H Statistic | P-Value (approx) |
|---|---|---|
| 10,003 | -30,012 | 1 |
| 35,002 | -105,009 | 1 |
| 65,001 | -195,006 | 1 |
| 90,000 | -270,003 | 1 |
What each input means
- Total Observations (N)
- Total number of observations across all groups combined.
- Number of Groups (k)
- Number of independent groups being compared (2-5).
- Group 1 Size (n₁)
- Number of observations in the first group.
- Group 1 Rank Sum (R₁)
- Sum of ranks for Group 1 after ranking all observations together.
- Group 2 Size (n₂)
- Number of observations in the second group.
- Group 2 Rank Sum (R₂)
- Sum of ranks for Group 2 after ranking all observations together.
- Group 3 Size (n₃)
- Number of observations in the third group.
- Group 3 Rank Sum (R₃)
- Sum of ranks for Group 3 after ranking all observations together.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersTotal Observations (N) = 30, Number of Groups (k) = 3, Group 1 Size (n₁) = 10, Group 1 Rank Sum (R₁) = 120 = 8 input(s) provided
- Calculate H StatisticH Statistic2.5161 = 2.5161
- Calculate P-ValueP-Value0.2837 = 0.2837
- Calculate Degrees of FreedomDegrees of Freedom = df2 = 2
- Calculate Significant at α=0.05Significant at α=0.050 = 0
Engine last updated . Checked against 1 independently-derived test — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Mann-Whitney U Test Calculator
Calculate the Mann-Whitney U statistic and z-score for comparing two independent groups using rank sums.
StatisticsANOVA Calculator
Perform a one-way ANOVA (Analysis of Variance) to compare means across three groups and determine if differences are statistically significant.
StatisticsT-Test Calculator
Calculate the t-statistic, degrees of freedom, and approximate p-value for a one-sample t-test.
Data ScienceA/B Test Calculator
Determine statistical significance of A/B test results. Calculate z-score, p-value, conversion lift, and whether your variant beats the control at your chosen confidence level.
More in Math & Statistics.