ANOVA Calculator
Free one-way ANOVA calculator with F-test, p-value, Tukey HSD post-hoc analysis, eta-squared effect size. Enter group data and get instant results.
About
Analysis of Variance (ANOVA) determines whether the means of 3 or more independent groups differ significantly. A miscalculated F-statistic leads to Type I errors (false positives) or Type II errors (missed real effects). Both cost time and credibility in peer review or production decisions. This tool computes the full one-way ANOVA table: SSB, SSW, SST, degrees of freedom, Mean Squares, the F-ratio, and an exact p-value via the regularized incomplete beta function. It assumes independent observations, approximate normality within groups, and homogeneity of variances (Levene's assumption).
Beyond the omnibus test, a significant F only tells you "at least one group differs." You need post-hoc analysis to find which pairs. This calculator runs Tukey HSD pairwise comparisons and reports effect size via ฮท2 (eta-squared) and ฯ2 (omega-squared, bias-corrected). Note: the tool approximates the Studentized Range critical value q using interpolation. For unbalanced designs (unequal group sizes), the harmonic mean of group sizes is used in the HSD formula. Results assume ฮฑ = 0.05 by default but the threshold is adjustable.
Formulas
The one-way ANOVA partitions total variability into two components. The F-statistic tests the null hypothesis H0: ฮผ1 = ฮผ2 = โฆ = ฮผk.
Where SSB = kโj=1 nj(j โ G)2 and SSW = kโj=1 njโi=1 (xij โ j)2.
k = number of groups. nj = number of observations in group j. N = total number of observations across all groups. j = mean of group j. G = grand mean of all observations. p = probability of the observed F under the null hypothesis, computed via the regularized incomplete beta function Ix(a, b).
The Tukey HSD critical difference for unequal group sizes uses the harmonic mean nh: HSD = qฮฑ,k,dfW โ โMSWnh. A pairwise absolute mean difference |i โ j| exceeding HSD indicates a statistically significant pair.
Reference Data
| Source | Symbol | Formula | Interpretation |
|---|---|---|---|
| Grand Mean | XฬG | Nโi=1 xiN | Overall mean of all observations |
| SS Between | SSB | kโj=1 nj(Xฬj โ XฬG)2 | Variation due to group differences |
| SS Within | SSW | kโj=1 njโi=1 (xij โ Xฬj)2 | Variation within groups (error) |
| SS Total | SST | SSB + SSW | Total variation in the dataset |
| df Between | dfB | k โ 1 | Number of groups minus one |
| df Within | dfW | N โ k | Total observations minus groups |
| MS Between | MSB | SSBdfB | Average variation between groups |
| MS Within | MSW | SSWdfW | Average variation within groups |
| F-Statistic | F | MSBMSW | Ratio of between to within variance |
| P-Value | p | 1 โ Fcdf(F, dfB, dfW) | Probability of observing F under H0 |
| Eta-Squared | ฮท2 | SSBSST | Proportion of total variance explained |
| Omega-Squared | ฯ2 | SSB โ dfB โ MSWSST + MSW | Bias-corrected effect size estimate |
| Tukey HSD | HSD | qฮฑ,k,dfW โ โMSWnh | Minimum difference for significance |
| Effect Size Guide | ฮท2 | 0.01 small, 0.06 medium, 0.14 large | Cohen's benchmarks for ANOVA |
| Harmonic Mean | nh | kkโj=1 1nj | Used in HSD for unequal group sizes |