QiLing Tools

🥧Chi-Square & ANOVA Calculator - Tukey HSD, Kruskal–Wallis

The tests you reach for most in theses, lab reports and survey analysis, on one page. Chi-square goodness of fit: enter observed counts and expected ratios (blank means uniform, and you can subtract parameters estimated from the data) to get expected counts, (O−E)²/E, standardized residuals, χ², degrees of freedom and the p-value — Mendel’s 9:3:3:1 peas are the built-in example. Test of independence: a contingency table editor up to 10×10 that accepts pasted Excel blocks, reporting expected counts, adjusted residuals (cells beyond ±1.96 are coloured so you can see where the association comes from), Pearson χ², the likelihood-ratio G², Cramér’s V with an effect-size label, and for 2×2 tables the Yates correction, φ, the odds ratio and Fisher’s exact test (two-sided and one-sided). One-way ANOVA: paste one group per line to get descriptive statistics, the full ANOVA table (SS, df, MS, F, p), η² and ω², and a plot of group means with 95% confidence intervals; Tukey HSD post-hoc comparisons (Tukey–Kramer for unequal sizes) use p-values from numerical integration of the studentized range distribution, alongside Levene / Brown–Forsythe tests for equal variances and the non-parametric Kruskal–Wallis test with tie correction. Two-way ANOVA handles balanced designs with or without replication, giving main effects, the interaction, partial η², cell means and an interaction plot. Every test comes with a plain-language interpretation, and the numbers have been checked against R’s chisq.test, aov, TukeyHSD, kruskal.test and car::leveneTest.

Free · No sign-up · Runs in your browserLast updated:

Loading tool...

How to use Chi-Square & ANOVA Calculator

  1. 1Pick a test: one-way or two-way ANOVA, contingency table, or goodness of fit
  2. 2Paste or type your data (Excel blocks work) and choose the significance level α
  3. 3Read the statistic, p-value, effect size, post-hoc comparisons, assumption checks and the written interpretation

FAQ

When should I use a chi-square test and when ANOVA?
It depends on the outcome. If you’re comparing counts in categories — how many men and women vote for each party — use a chi-square test. If you’re comparing the average of a continuous measurement — crop yield under three fertilizers — use ANOVA. With exactly two groups, one-way ANOVA is equivalent to the equal-variance t-test (F = t²).
What if some expected counts are below 5?
The chi-square test relies on a large-sample approximation; the usual rule is that every expected count is at least 1 and at least 80% are 5 or more. If not, use Fisher’s exact test for a 2×2 table, which needs no approximation; for larger tables, merge similar categories or collect more data. The tool warns you how many cells fall below 5.
Why run Tukey HSD after a significant ANOVA?
The F-test only says that at least one group differs, not which. Running a t-test for every pair inflates the chance of a false positive well beyond α as the number of comparisons grows. Tukey HSD uses the studentized range distribution to control the family-wise error rate, giving adjusted p-values and simultaneous confidence intervals — the standard way to compare all pairs.
What if variances are unequal or the data aren’t normal?
Check Levene’s test first: p < α means the group variances differ. ANOVA copes fairly well with that when group sizes are similar; with very unequal sizes, strong skew or outliers, look at the Kruskal–Wallis test, which uses only the ranks and assumes neither normality nor equal variances. Both results are shown side by side.