Sum of Squares Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Paste or type a list of numbers to get the sum of squares used in variance, standard deviation, regression and ANOVA.
Result
Sum of squared deviations, SS = Σ(x − x̄)²
Raw sum of squares, Σx²
- Mean (x̄)
- Count (n)
- Sample variance, SS ÷ (n − 1)
- Population variance, SS ÷ n
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Numbers (separated by commas, spaces or new lines): type or paste your values.
- Read the result: Sum of squared deviations, SS = Σ(x − x̄)²; the panel also shows Raw sum of squares, Σx², Mean (x̄), Count (n), Sample variance, SS ÷ (n − 1) and Population variance, SS ÷ n.
Data plot
Table of values
| Value | Count |
|---|
How this calculator works
Sum of squared deviations SS = Σ(x − x̄)², where x̄ is the mean of the n values. It is the numerator of the sample variance s² = Σ(x − x̄)² ÷ (n − 1), as written in the NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.6 (itl.nist.gov/div898/handbook/eda/section3/eda356.htm, read October 28, 2026).
The raw sum of squares Σx² adds the squares of the values themselves. The two are linked by SS = Σx² − n·x̄².
Dividing SS by n gives the population variance; dividing by n − 1 gives the sample variance.
Worked example
| Numbers (separated by commas, spaces or new lines) | 2, 4, 4, 4, 5, 5, 7, 9 |
|---|
| Sum of squared deviations, SS = Σ(x − x̄)² | 32 |
|---|---|
| Raw sum of squares, Σx² | 232 |
| Mean (x̄) | 5 |
| Count (n) | 8 |
| Sample variance, SS ÷ (n − 1) | 4.5714 |
| Population variance, SS ÷ n | 4 |
Frequently asked questions
What is the sum of squares of 2, 4, 4, 4, 5, 5, 7, 9?
The mean is 5 and the squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, so SS = 32. The raw sum of squares Σx² is 232.
Which sum of squares does regression use?
The total sum of squares in regression and ANOVA is this SS of the response values around their mean.