Maths & numbers

Sum of the first n squares calculator

Add the squares from 1² through n² without listing each term.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

The difference between the sums at n and n−1 is exactly n². This gives a direct check on the formula.

THE FORMULAn(n+1)(2n+1)/6

A worked example

1² + 2² + … + 10² = 385.

Good to know

An empty sum is zero.

Read the result

Add the squares from 1² through n² without listing each term.

The primary result is labeled “Sum of squares”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

An empty sum is zero.

For a related exercise, try the greatest common divisor.

A few questions, answered

How can I check the default inputs by hand?

1² + 2² + … + 10² = 385.

Which rule does this calculator apply?

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

Find your calculator

Start typing to explore the library.