Curious Jr By PW

Sum of Squares - Formula, Steps, Error, Examples

Sum of Squares is the total of each number squared. It helps measure how much values differ from the mean. In statistics, it’s used to calculate variance and regression accuracy. There are three main types SST (total variation), SSR (explained by model), and SSE (unexplained error), and they follow SST = SSR + SSE. A high sum of squares means more spread in data, while a low value shows values are close to the mean or prediction.
authorImageShivam Singh10 Nov, 2025
Sum of Squares

What is the Sum of Squares?

The sum of squares refers to the addition of squared values. That means you take a set of numbers, square each one, and then add them together.

For example:

If you have numbers 2, 3, and 4, their squares are:

  • 2² = 4

  • 3² = 9

  • 4² = 16

Sum of squares = 4 + 9 + 16 = 29

This operation is used in basic arithmetic, algebra, and statistics. In mathematics, it helps solve equations. In statistics, it is used to understand how data varies from the average (mean).

Read More: Magic square

Sum of Squares Formula 

There are different types of sum of squares formulas based on the number of terms or the type of terms involved.

1. Sum of Squares of Two Numbers

Let’s say the two numbers are x and y.

Formula: x² + y² = (x+y)²−2xy 

Proof:

We know from the algebraic identity:

 (x + y)² = x² + 2xy + y²

Now, we want to find only x² + y².

So, let’s move +2xy to the other side of the equation.

When a positive term is moved across the equal sign, its sign becomes negative.

Therefore, x² + y² = (x + y)² – 2xy

2. Sum of Squares of Three Numbers

The formula for the sum of squares of any three real numbers x, y, and z is:

x² + y² + z² = (x + y + z)² – 2xy – 2yz – 2xz

Proof:

From the algebraic identity, we know that (x + y + z)² = x² + y² + z² + 2xy + 2yz + 2xz

Now, to find x² + y² + z², move the terms 2xy, 2yz, and 2xz to the other side.
When a positive term is moved to the other side of the equation, its sign changes to negative.

Therefore, x² + y² + z² = (x + y + z)² – 2xy – 2yz – 2xz

Hence, the sum of squares of three numbers is equal to the square of their sum minus twice the sum of their products.

3. Sum of Squares of First n Natural Numbers

Natural numbers are counting numbers starting from 1.

Formula: n(n+1)(2n+1)/6

Example: Find the sum of squares of first 5 natural numbers:

=5(6)(11)/6 = 55

4. Sum of Squares of First n Even Numbers

The addition of squares of first even natural numbers is given by:

Σ(2n)2= 22 + 42+ 62 +82+⋯+(2n)2

5. Sum of Squares of First n Odd Numbers

The addition of squares of first odd natural numbers is given by:

Σ(2n−1)² = 1² + 3² + 5²+⋯+(2n−1)²

Sum of Squares in Statistics

In statistics, the sum of squares is a key measure used to quantify the dispersion or spread of data points in a dataset. It tells us how much each value in the dataset deviates from the mean (average), and is essential in understanding the overall variability in the data.

A larger sum of squares value indicates that the data points are widely spread out from the mean, meaning there is greater variation in the dataset. In contrast, a smaller sum of squares means that the data points are closer to the mean, showing less variability.

The formula used to calculate the sum of squares for a set of n data points is:

Sum of Squares = ∑i = 0((xi – x̄)²

Where:

  • ∑ denotes the summation symbol (sum of the series)

  • xi represents each individual value in the dataset

  • X̄ represents the mean (average) of all the values

  • (xi – x̄) is the deviation of each data point from the mean

  • n is the number of data points in the set

Read More: Quick calculation Technique for School Students

Sum of Squares Examples

Example 1: Evaluate 4² + 5² using formula and directly.

Solution:

Using Formula:

(4 + 5)² −2(4)(5)= 81 − 40 = 41

Example 2: Find the sum of squares of the first 40 natural numbers.

Solution: Using Formula: n(n+1)(2n+1)6

= 40(41)(81)6 = 22140

Example 3: What is the sum of the squares of the first 5 even natural numbers?
(The first five even numbers are 2, 4, 6, 8, and 10.)

Solution: We will use the formula for the sum of squares of the first n even numbers:

∑(2i)² = 2n(n+1)(2n+1)/3

Here, n = 5

Now substitute the values into the formula:

∑(2i)² = 2 × 5  × 6 × 11/3 =660/3 = 220

Read More: Perfect Squares

Why Should Students Learn Sum of Square?

The sum of squares may seem like just another math rule, but it’s much more than that.

Here’s why it matters:

  • It improves your problem-solving skills

  • It helps you analyze patterns and relationships

  • It is a key part of learning statistics and data science

  • It prepares you for advanced topics like standard deviation, variance, and regression

Whether you are preparing for school exams or learning data analysis, knowing the sum of squares formula and how to apply it is a smart move.

Also Read: Mental Math Strategies

Improve Your Child’s Maths Skills With Curious Junior Online Tuition Classes

Is your child having a hard time understanding math lessons at school? In many classrooms, the pace is quick and not every child can keep up. This often turns homework into a daily challenge. You might feel drained trying to help every day, and your child may feel discouraged when they still don’t get it.

As this continues, learning becomes a source of stress instead of confidence. That’s where the right kind of support can make all the difference.  CuriousJr’s Online School Tuition Classes help students from Classes 3 to 9 grasp what they are learning at school through engaging lessons that match their pace and learning style.

Here’s how we support your child’s learning:

  • Each subject is taught from the basics, gradually moving to more advanced topics

  • Every live session has two teachers. One teaches the lesson step by step, while the other offers support during and after the class

  • Doubts are solved immediately during class, so your child doesn’t have to wait

  • We help your child with their regular homework and provide practice worksheets to reinforce learning.

  • As a parent, you receive regular updates about your child’s progress, so you know where they are doing well and where they may need help

Try a demo class today and see how we can support your child’s learning journey in Mathematics.

Sum of Squares FAQs

What is the sum of squares?

It is the total of each number’s square in a data set or sequence.

What is SSR?

SSR stands for Sum of Squares for Regression. It shows how much of the data variation is explained by the regression model.

What are the different types of sum of squares

There are three main types of sum of squares in statistics: 1. SST (Total Sum of Squares): Total variation in the data 2. SSR (Sum of Squares for Regression): Explained variation by the model 3. SSE (Sum of Squares for Error): Unexplained variation or error These are related by the equation: SST = SSR + SSE

what does a high sum of squares mean?

It means the data points are widely spread out from the mean.

What does a low sum of squares mean?

It means the data points are close to the average or predicted values
Curious Jr By PW
Curious Jr By PW

We understand that every student has different needs and capabilities, which is why we create such a wonderful and unique curriculum that is the best fit for every student.