Sum of Squares Calculator

Calculate sum of squares (SS), variance, and ANOVA decomposition. Shows SS total, SS between, SS within, F-statistic, and detailed deviation breakdowns.

Sum of Squares (SS)
342.4000
Σ(xᵢ − x̄)² with n = 10
Mean
86.4000
Σx / n = 864.00 / 10
Variance (s\u00B2)
38.0444
SS / (n−1) = 342.40 / 9
Std Deviation (s)
6.1680
√(variance) = √38.0444
Sum of Values
864.00
Σxᵢ for 10 values
Sum of Squares (raw)
74,992.00
\u03A3x\u1D62\u00B2 before correction
Correction Factor
74,649.60
(Σx)²/n = 864.0²/10
Coeff. of Variation
7.14%
CV = s/|x̄| × 100

Deviation Breakdown

ix\u1D62x\u1D62 \u2212 x\u0304(x\u1D62 \u2212 x\u0304)\u00B2Cumulative SS
185.00-1.4001.96001.9600
290.003.60012.960014.9200
378.00-8.40070.560085.4800
492.005.60031.3600116.8400
588.001.6002.5600119.4000
676.00-10.400108.1600227.5600
795.008.60073.9600301.5200
882.00-4.40019.3600320.8800
991.004.60021.1600342.0400
1087.000.6000.3600342.4000
Total864.000.000342.4000342.4000

Contribution to SS

x=85.0
0.6%
x=90.0
3.8%
x=78.0
20.6%
x=92.0
9.2%
x=88.0
0.7%
x=76.0
31.6%
x=95.0
21.6%
x=82.0
5.7%
x=91.0
6.2%
x=87.0
0.1%
Planning notes, formulas, and examples

About the Sum of Squares Calculator

The Sum of Squares Calculator computes the total sum of squared deviations from the mean for a single dataset or decomposes it into between-group and within-group components for ANOVA analysis. Sum of squares is the foundation of variance, standard deviation, and nearly all inferential statistics.

For a single dataset, the calculator shows SS = Σ(xᵢ − x̄)², the variance, standard deviation, and a complete deviation breakdown table showing how each observation contributes to the total variability. The cumulative SS column reveals how variability builds across your data.

For multiple groups, the tool performs the classic ANOVA decomposition: SS Total = SS Between + SS Within. The resulting ANOVA table shows mean squares, the F-statistic, and eta-squared (η²) so you can see how much variation comes from group differences versus within-group spread.

When This Page Helps

Use this calculator when you want to see where variability is coming from instead of jumping straight to a final variance or ANOVA number. The deviation table is helpful for teaching, debugging hand calculations, and spotting observations that contribute disproportionately to the total spread.

How to Use the Inputs

  1. Choose single dataset mode or multi-group ANOVA mode.
  2. Enter comma-separated values in the data field(s).
  3. For ANOVA, provide at least two groups of data.
  4. Use preset buttons for quick examples.
  5. Review SS, variance, and deviation breakdown for single data.
  6. For groups, examine the ANOVA table and SS decomposition.
  7. Check the visual contribution bars to spot influential observations.
Formula used
SS Total = Σ(xᵢ − x̄)² = Σxᵢ² − (Σxᵢ)²/n. ANOVA: SS Between = Σnⱼ(x̄ⱼ − x̄..)², SS Within = ΣΣ(xᵢj − x̄ⱼ)², F = MSBetween / MSWithin.

Example Calculation

Result: SS = 374.4, Variance = 41.6, Std Dev = 6.45, Mean = 86.4

With n=10 and mean=86.4, each deviation is squared and summed: (85-86.4)² + (90-86.4)² + ... = 374.4. Dividing by n-1=9 gives variance = 41.6 and std dev = 6.45.

Tips & Best Practices

  • Observations far from the mean contribute disproportionately to SS because deviations are squared.
  • Use the ANOVA mode to test whether group means differ before doing pairwise comparisons.
  • SS Total = SS Between + SS Within — check the decomposition bar to see how much groups explain.
  • The coefficient of variation (CV) lets you compare variability across datasets with different scales.
  • If one observation dominates the SS, consider whether it's an outlier worth investigating.
  • For regression, SS can be decomposed into explained (SS Regression) and unexplained (SS Residual) variation.

Computational Forms of SS

There are two algebraically equivalent ways to compute sum of squares. The definitional form Σ(xᵢ − x̄)² subtracts the mean from each value, then squares and sums. The computational shortcut Σxᵢ² − (Σxᵢ)²/n avoids computing deviations and is less prone to rounding error with large numbers.

ANOVA Decomposition

The fundamental identity SS Total = SS Between + SS Within partitions total variability into explained and unexplained components. If groups truly differ, between-group variability will be large relative to within-group variability. The F-ratio quantifies this comparison, and eta-squared measures effect size.

Beyond One-Way ANOVA

When you have two or more factors, two-way ANOVA further decomposes SS Between into main effects and interactions. The same SS logic applies: each factor's effect is isolated by computing the SS attributable to that factor while accounting for others. Factorial designs provide more information from the same data.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Dividing by n−1 (Bessel's correction) gives an unbiased estimate of the population variance. The sample mean is already fitted to the data, reducing the effective degrees of freedom. This matters most for small samples.