Kruskal Wallis Test Calculator – Free Online Non-Parametric ANOVA Tool | StatsUnlock

Kruskal-Wallis Test Calculator – Free Online H-Test Tool | StatsUnlock
📥 Enter Your Data
Headers auto-detected. Select which columns map to each group.
Enter values directly in the table. Leave cells blank for unequal group sizes.
📊 Full Results Table
📋 Group Summary
🔍 Dunn's Post-Hoc Pairwise Comparisons

📈 Visualizations
Box Plot — Median & IQR by Group
Mean Rank Comparison
Distribution Overview (Violin-style KDE)
Ranked Data Scatter per Group

📎 Copy Summary to Clipboard

Assumption Checks
💡 Detailed Interpretation of Results
✍️ How to Write Your Results in Research

Choose the writing style that matches your output — dissertation, journal article, plain-language summary, conference poster, or pre-registration. All templates are auto-filled with your computed statistics.

Kruskal-Wallis H Statistic
H = [12 / N(N+1)] × Σ(Rᵢ² / nᵢ) − 3(N+1)
HTest statistic approximating a chi-square distribution with k−1 df
NTotal number of observations across all groups
kNumber of groups being compared
RᵢSum of ranks assigned to group i (all data ranked together 1 to N)
nᵢSample size of group i
Tie Correction Factor
C = 1 − [Σ(tˇ³ − tˇ) / (N³ − N)]
HcTie-corrected H = H / C (always ≥ uncorrected H)
Number of tied observations in each tie group
CCorrection factor ≤ 1; closer to 1 when ties are rare
RuleIf no ties exist, C = 1 and corrected H = uncorrected H
Degrees of Freedom
df = k − 1
dfDegrees of freedom for the chi-square distribution approximation
kNumber of groups; df = 2 for three groups, df = 3 for four groups, etc.
NoteChi-square approximation is valid when each group n ≥ 5
Effect Size — Eta-Squared (η²)
η² = (H − k + 1) / (N − k)
η²Proportion of variance in ranks explained by group membership
HKruskal-Wallis test statistic (tie-corrected if applicable)
Benchmarks0.01 = small · 0.06 = medium · ≥0.14 = large (Cohen, 1988)
Effect Size — Epsilon-Squared (ε²) — Less Biased
ε² = H / [(N² − 1) / (N + 1)]
ε²Alternative effect size less biased for small N; ranges 0–1
NTotal sample size across all groups
BenchmarksSame cutoffs as η²: 0.01 small · 0.06 medium · 0.14+ large
Dunn's Post-Hoc Z Statistic
zᵢˇ = (R̄ᵢ − R̄ˇ) / SEᵢˇ
R̄ᵢMean rank of group i based on combined ranks across all N observations
SEᵢˇSE = √[N(N+1)/12 × (1/nᵢ + 1/nˇ)] adjusted for ties
p-valueTwo-tailed p from standard normal; multiply by number of comparisons (Bonferroni)
Mean Rank per Group
R̄ᵢ = Rᵢ / nᵢ
R̄ᵢAverage rank of observations in group i; higher = higher data values
RᵢSum of all ranks assigned to observations in group i
nᵢNumber of observations in group i
RuleExpected mean rank under H₀ = (N+1)/2 for all groups
1
Enter your data

Type or paste comma-separated values for each group, upload a CSV/Excel file, or use the manual entry table. Each group represents one category of your independent variable.

2
Name your groups

Click the editable group name box above each textarea (e.g., "Control", "Low Dose", "High Dose") to label your groups meaningfully. Names appear in all outputs.

3
Add or remove groups

Use the "+ Add Group" and "− Remove Last Group" buttons. You can compare 3 to 6 groups. The test requires at least 3 groups; for 2 groups, use the Mann-Whitney U test instead.

4
Try a sample dataset

Select one of the 5 built-in sample datasets from the dropdown to explore how the tool works before entering your own data. Each sample represents a real-world research scenario.

5
Set significance level (α)

Choose 0.01, 0.05, or 0.10. The most common choice in academic research is α = 0.05, meaning a 5% probability threshold for declaring a result significant.

6
Choose post-hoc correction

Holm-Bonferroni is recommended as it controls family-wise error while being more powerful than standard Bonferroni. Select "None" to see raw p-values without adjustment.

7
Run the analysis

Click "Run Kruskal-Wallis Test". Results appear immediately — H-statistic, degrees of freedom, p-value, effect size (η²), and group summary statistics including median and mean rank.

8
Read the four charts

The box plot shows medians and IQR. The rank chart compares mean ranks per group. The KDE violin plot shows distribution shape. The scatter plot shows individual ranked observations.

9
Interpret your results

Read the detailed interpretation section. It tells you whether differences are statistically significant, explains the effect size in practical terms, and highlights which pairs differ post-hoc.

10
Copy a write-up template

Click "📋 Copy" on any write-up card (APA, Thesis, Plain Language, Abstract, Pre-Registration) to copy a fully auto-filled results paragraph for your paper or report.

✅ Use Kruskal-Wallis When…

  • You have 3 or more independent groups
  • Your data violates normality (skewed, ordinal)
  • Group sizes are small (n < 20 per group)
  • Your dependent variable is ordinal
  • Significant outliers are present in the data
  • You are comparing ranks rather than means

❌ Avoid Kruskal-Wallis When…

  • Data is normally distributed (use one-way ANOVA)
  • Groups are related / paired (use Friedman test)
  • You have only 2 groups (use Mann-Whitney U)
  • Your dependent variable is binary (use chi-square)
  • You need to include covariates (use ANCOVA)
📌 Real-world examples:
  • Ecology: Comparing species richness across three habitat types (forest, grassland, wetland)
  • Clinical: Comparing pain scores (0–10 ordinal scale) across four treatment arms
  • Education: Comparing test performance across five teaching methods with non-normal score distribution
  • Biology: Comparing plant growth across three fertilizer types when data is right-skewed
Frequently Asked Questions
📚 References

The Kruskal-Wallis test calculator on this page is based on the original rank-sum methodology for non-parametric one-way ANOVA, Dunn's pairwise post-hoc comparisons, and eta-squared effect size estimation. Key peer-reviewed sources are listed below.

Kruskal, W. H., & Wallis, W. A. (1952). Use of ranks in one-criterion variance analysis. Journal of the American Statistical Association, 47(260), 583–621. https://doi.org/10.1080/01621459.1952.10483441
Dunn, O. J. (1964). Multiple comparisons using rank sums. Technometrics, 6(3), 241–252. https://doi.org/10.1080/00401706.1964.10490181
Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Lawrence Erlbaum Associates. https://doi.org/10.4324/9780203771587
Holm, S. (1979). A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2), 65–70. https://www.jstor.org/stable/4615733
Conover, W. J., & Iman, R. L. (1981). Rank transformations as a bridge between parametric and nonparametric statistics. The American Statistician, 35(3), 124–129. https://doi.org/10.1080/00031305.1981.10479327
Vargha, A., & Delaney, H. D. (1998). The Kruskal-Wallis test and stochastic homogeneity. Journal of Educational and Behavioral Statistics, 23(2), 170–192. https://doi.org/10.3102/10769986023002170
Dinno, A. (2015). Nonparametric pairwise multiple comparisons in independent groups using Dunn's test. The Stata Journal, 15(1), 292–300. https://doi.org/10.1177/1536867X1501500117
Field, A. (2013). Discovering statistics using IBM SPSS statistics (4th ed.). SAGE Publications. ISBN: 978-1446249185
Hollander, M., Wolfe, D. A., & Chicken, E. (2013). Nonparametric statistical methods (3rd ed.). John Wiley & Sons. https://doi.org/10.1002/9781119196037
Tomczak, M., & Tomczak, E. (2014). The need to report effect size estimates revisited. An overview of some recommended measures of effect size. Trends in Sport Sciences, 1(21), 19–25. Link
Corder, G. W., & Foreman, D. I. (2014). Nonparametric statistics: A step-by-step approach (2nd ed.). John Wiley & Sons. https://doi.org/10.1002/9781118592908
McDonald, J. H. (2014). Kruskal–Wallis test. In Handbook of biological statistics (3rd ed., pp. 157–164). Sparky House Publishing. http://www.biostathandbook.com/kruskalwallis.html
Kassambara, A. (2017). Practical statistics in R for comparing groups: Numerical variables. STHDA. http://www.sthda.com/english/wiki/kruskal-wallis-test-in-r
Chambers, J. M., Cleveland, W. S., Kleiner, B., & Tukey, P. A. (1983). Graphical methods for data analysis. Wadsworth International Group. https://doi.org/10.1201/9781351072304
Zar, J. H. (2010). Biostatistical analysis (5th ed.). Prentice Hall. ISBN: 978-0131008465

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
Next Post

© 2026 STATS UNLOCK . statsunlock.com –  All Rights Reserved.