Sum of Squares Calculator

Enter your dataset as comma-separated numbers to calculate both the statistical sum of squares (sum of squared deviations from the mean) and the algebraic sum of squares (sum of all squared values). You'll also get the count, mean, and a full deviation breakdown table — essential inputs for variance, standard deviation, and ANOVA calculations.

Enter numbers separated by commas, spaces, or line breaks. Negative and decimal values are supported.

Results

Statistical Sum of Squares

--

Algebraic Sum of Squares

--

Mean

--

Count (n)

--

Squared Deviations by Observation

Results Table

Frequently Asked Questions

What is the sum of squares?

The sum of squares (SS) measures the total variability within a dataset. The statistical sum of squares is calculated by summing the squared differences between each value and the dataset mean. It is a foundational quantity used in computing variance, standard deviation, and in ANOVA tests.

What is the difference between statistical and algebraic sum of squares?

The statistical sum of squares (SS) is the sum of squared deviations from the mean: SS = Σ(xᵢ − x̄)². The algebraic sum of squares is simpler — it's just the sum of each value squared: Σ(xᵢ²). Both have different uses in statistics and algebra.

How do you calculate the sum of squares manually?

First, find the mean of your dataset. Second, subtract the mean from each value to get the deviation. Third, square each deviation. Finally, add all the squared deviations together. The result is the statistical sum of squares.

Why is the sum of squares important in statistics?

The sum of squares is the building block for variance and standard deviation — two of the most widely used measures of data spread. It is also central to ANOVA (Analysis of Variance), regression analysis, and many hypothesis testing procedures.

Can the sum of squares ever be zero?

Yes. If all values in your dataset are identical, the deviation from the mean is zero for every observation, making the statistical sum of squares exactly zero. This indicates there is no variability in the data.

Can I enter negative numbers or decimals?

Yes. This calculator supports negative numbers, decimals, and integers. Simply separate your values with commas, spaces, or line breaks, and the calculator will parse them correctly — invalid entries like letters or symbols are automatically ignored.

How many values can I enter?

You can enter as few as 2 values and as many as several hundred. For very large datasets, a deviation breakdown table is shown so you can inspect each observation's contribution to the total sum of squares.

What is the formula for the sum of squares?

The statistical sum of squares formula is SS = Σ(xᵢ − x̄)², where xᵢ is each individual value and x̄ is the mean of all values. The algebraic sum of squares formula is simply Σ(xᵢ²) — the sum of each value squared without subtracting the mean.

More Statistics Tools