ANOVA Sum of Squares Calculator

ANOVA Sum of Squares Calculator

Compute one-way ANOVA sums of squares from group summaries. Enter each group's n, mean, and sample SD to get the grand mean, SSB, SSW, SST, mean squares, F ratio, and eta squared.

📌Deep Presets

Load a realistic grouped-data scenario, then edit the n, mean, SD, labels, precision, and reporting focus.

Between SS 0 SSB = sum n_i(mean_i - grand)^2
Within SS 0 SSW = sum(n_i - 1)s_i^2
Total SS 0 SST = SSB + SSW
F ratio 0 F = MSB / MSW

Enter at least two groups to calculate ANOVA sums of squares.

ANOVA Inputs

This changes interpretation text only; the SS formulas stay the same.

Calculations use full precision; this only formats the displayed result.

Examples: score, yield, response time, conversion rate, weight, rating.

Leave blank for unitless data; SS and MS are in squared units.

Default uses the requested within formula: sum(n_i - 1)s_i^2.

Sorting affects the detail table only; totals are unchanged.

Highlights related rows in the comparison and formula tables.

Enter one group per line. The three numbers are sample size, group mean, and sample SD unless you switch to sample variance.

🔢Current ANOVA Snapshot
0Total N
0Groups k
0Grand mean
0 / 0df between / within
0Mean square between
0Mean square within
0Eta squared
--Top SSB driver
📊Group Contribution Table
GroupnMeanSpreadMean - GrandBetween SS PartWithin SS Part
Enter group summaries to see SSB and SSW contributions.
🧮ANOVA Sum of Squares Table
SourceSSdfMSFormulaInterpretation
Between groups000SSB / (k - 1)Variation explained by group means
Within groups000SSW / (N - k)Residual variation inside groups
Total000SSB + SSWTotal corrected variation around grand mean
F ratio0dfB, dfWMSB / MSWF = MSB / MSWNeeds positive MSW
Eta squared0proportionSSB / SSTEffect sizeShare of total SS explained by groups
📐Formula Breakdown
Grand meangrand = sum(n_i x mean_i) / sum(n_i). Group means must be weighted by sample size when n differs.
Total SSSST = sum(x - grand)2 over all observations. With summary inputs, the calculator reports the equivalent decomposition SST = SSB + SSW.
Between SSSSB = sum n_i(mean_i - grand)2. This is the part explained by differences among group means.
Within SSSSW = sum(n_i - 1)s_i2 for sample SD inputs. If you select variance, the entered spread is already s_i2.
Mean squaresMSB = SSB / (k - 1) and MSW = SSW / (N - k). These are variance estimates for the ANOVA table.
F ratioF = MSB / MSW. Larger F values indicate group means are spread apart relative to within-group variation.
Eta squaredeta2 = SSB / SST. It estimates the share of total corrected SS attributed to group membership.
📋Comparison Grid
QuantityUsesDepends OnCommon MistakeReport Wording
Total SSAll corrected outcome variationEvery observation and grand meanUsing raw sum of squares insteadSST = sum(x - grand)2
Between SSVariation from group mean differencesn_i and each group meanIgnoring unequal group sizesSSB = sum n_i(mean_i - grand)2
Within SSResidual variation inside groupsn_i and sample SD or varianceUsing n instead of n - 1 for sample SDSSW = sum(n_i - 1)s_i2
Mean squaresScale SS by degrees freedomSSB, SSW, dfB, dfWComparing raw SS when df differsMSB = SSB / dfB; MSW = SSW / dfW
F ratioANOVA signal strengthMSB and MSWCalling F an effect sizeF(dfB, dfW) = MSB / MSW
Eta squaredVariance share effect sizeSSB and SSTReporting without model contexteta2 = SSB / SST
🧪Preset Reference Table
PresetGroupsTotal NResponsePatternTypical Reading
Teaching Methods388test scoreordered meansclear between-group signal
Fertilizer Trial464plant yieldbest treatment highlarge experimental effect
Reaction Time Lab372reaction timesmall SDsstrong mean separation
Production Lines5100part weighttight process spreadquality-control comparison
Hospital Units4152length of stayunequal nmoderate unit differences
Ad Creative Test4960conversion ratelarge samplessmall but measurable lift
Reading Programs381fluency gainschool interventionmedium learning effect
Battery Batches460runtimebatch variationmanufacturing stability check
Support Teams4172minutes to resolveunequal teamsservice-time comparison
Training Blocks5125skill scoreprogressive meanslarge training separation
ANOVA Sum of Squares Tips
Weight the grand mean: In unbalanced designs, the grand mean is not the simple average of group means. It is weighted by each group's n before SSB is calculated.
Use sample SDs consistently: The within formula SSW = sum(n_i - 1)s_i2 assumes each SD is a sample standard deviation from that group.
Check the identity: The calculator builds SST as SSB + SSW because summary statistics do not contain each raw x value, but the result matches total corrected SS when the summaries are from the same raw data.
Read F with context: A high F ratio means between-group variation is large relative to within-group variation; formal p-values still depend on df and ANOVA assumptions.

It is not necessary that you eyeball all of the individual data points to decide whether or not your groups differ. Most analysts gets stuck in the weeds of spreadsheets. They manually calculate differences until it get mind-numbingly boring.

Enter group summaries into this calculator. Then let it crunch some numbers. There is no chance of an arithmetic mistake so you will get a clear indication of whether your experiments produced significantly different results.

How to Understand Your Data Results

Analysis of variance works by breaking down the total variation into two pieces. The first piece is the variation between groups (between means for each group). The second piece is the variation within each group. If the between-groups variation is substantially greater then the within-group variation, then you’ve got a signal. If they’re roughly equal in magnitude, then your observed differences are probably nothing more than noise. You must understand what these pieces represent so that you know how to interpret the result.

First let’s examine the between-group sum of squares. It represents the distance between each group’s average and the overall grand mean. What most people mess up on here is that the grand mean need to be weighted based off sample size. A group with ten people doesn’t count as much toward the grand mean as a group with fifty. The tool does that math for you. That way the distance it’s calculating for the between-group variance will be correct. If you just average the groups’ means (without using weights) then you’ll skew your estimate. This is what most analysts screw up on in their quick mental check.

Now think about the within-group sum of squares. It’s the noise or error that’s built into your data. To compute it, you need the sample standard deviation of each group. Plug those numbers in and the formula account for the degrees of freedom within each group. As the page explains, all these pieces fit together with the reference table on the same page. When you input your standard deviations, you’re informing the model just how much a score varies from its own group average. If there’s high variation among individuals within groups then weak between-group signals gets drowned out.

Finally, we have the F ratio. To find the F ratio, divide the mean square between by the mean square within. So if your group differences are big compared to the amount of noise in your data then you’ll get a big F ratio. Don’t mistake a big F ratio for a big effect size. You can have a very small difference between your groups but still get a massive F ratio because you’re dealing with such a big sample size.

That’s why the tool also provides eta squared. Eta squared tell you what proportion of all the variation in the data is due to your grouping. It puts a scale on the effect that the F ratio does not convey alone. So many people get hung up on significance. Did I find a statistically significant result? What they fail to consider is, so what? Maybe the difference in my test scores between two adult-sized sofa was only half a point. Sure that’s statistically significant, but does it matter? The sums of squares show you just how big the results are. It puts some context into your end results. How much of the variation is explained by random chance or by the groups?

So this is what I mean: imagine it’s a story of your data. The means are the center of the groups. The standard deviations are the amount by which the data spreads out. And the sample sizes are the weight you should of given each group. When you put all those together, then you have a full picture of whether your interventions produced different results.

You don’t need to memorize the algebraic formulas behind each component. Just understand that there’s variation everywhere, and that your task is to filter signal from noise. That’s what the tool does for you. It helps you decide whether the differences you observe are substantial enough to alter your decision.

Statistics isn’t about discovering some magic number. It’s about measuring uncertainty. Knowing precisely how much of the variation stems from your treatment versus randomness let you make decisions with your eyes open.

ANOVA Sum of Squares Calculator