Sum of Squares Calculator

Sum of Squares

Calculate the total sum of squared deviations from the mean—the foundation of variance and standard deviation.

Last updated: March 2026

Calculator

Enter numerical values

Sum of Squares (SS)
32.0000
Σ(x − x̄)²
Sample size (n)8
Mean (x̄)5.0000
Population Variance (SS/n)4.0000
Sample Variance (SS/(n−1))4.5714
Population SD2.0000
Sample SD2.1381

What is Sum of Squares?

Sum of Squares (SS) is the total of all squared deviations from the mean. It measures the total variability in a dataset: SS = Σ(xᵢ − x̄)². The "squared" part is crucial because it penalizes large deviations more heavily and eliminates sign issues (all terms are positive).

Sum of Squares is the numerator in variance calculations. Divide SS by n for population variance, or by (n − 1) for sample variance (Bessel's correction). It's fundamental to ANOVA, regression, and hypothesis testing. A larger SS indicates greater spread; SS = 0 means all values are identical.

SS forms the basis of many statistical techniques including t-tests, F-tests, and linear regression where we minimize SS of residuals.

How to Calculate Sum of Squares

Step-by-Step Process

Step 1: Calculate the mean: x̄ = Σxᵢ / n
Step 2: For each value, calculate (xᵢ − x̄)
Step 3: Square each deviation: (xᵢ − x̄)²
Step 4: Sum all squared deviations: SS = Σ(xᵢ − x̄)²

Formula & Relationships

Sum of Squares:
SS = Σ(xᵢ − x̄)²
Population Variance from SS:
σ² = SS / n
Sample Variance from SS:
s² = SS / (n − 1) [Bessel's correction]
Standard Deviation from SS:
s = √[SS / (n − 1)]

Real-World Example

Product Quality Control: Weight Consistency

Scenario:
A manufacturer checks 8 soap bars from a production line. Target weight is 100g. Measured weights: 98, 100, 100, 100, 101, 101, 103, 105g.
Calculation:
Mean = (98+100+100+100+101+101+103+105) / 8 = 808 / 8 = 101g
Deviations: −3, −1, −1, −1, 0, 0, 2, 4
Squared: 9, 1, 1, 1, 0, 0, 4, 16
SS = 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32
Sample variance = 32 / 7 = 4.57, Sample SD = √4.57 = 2.14g
The SS of 32 quantifies total weight variability. Using this, QC can assess whether production is within acceptable tolerances.

Frequently Asked Questions

Why do we square the deviations?

Squaring eliminates negative signs (so deviations don't cancel) and emphasizes large deviations more than small ones. A deviation of 2 contributes 4; a deviation of 3 contributes 9. This penalizes outliers.

What's the difference between population SS and sample SS?

They use the same calculation: SS = Σ(xᵢ − x̄)². The difference is in converting SS to variance: divide by n (population) or n−1 (sample). Bessel's correction (n−1) makes the sample variance unbiased.

Can SS be zero?

Yes, SS = 0 only if all data values are identical (no variability). In practice, this is rare. Any variation in data produces SS {'>'} 0.

How does SS relate to the normal distribution?

SS is the numerator in variance calculations, which define the width of a normal distribution. A curve with larger SS (variance) is wider and flatter; smaller SS means a taller, narrower curve.

Is SS sensitive to outliers?

Very yes. Outliers are squared, so they contribute disproportionately to SS. A single outlier can dramatically increase SS. This is why robust measures like IQR (interquartile range) are sometimes preferred.

How is SS used in ANOVA?

ANOVA decomposes total SS into between-group SS and within-group SS. The F-statistic compares these: F = (between-group SS) / (within-group SS). Larger F indicates stronger group differences.

Related Tools