How to Use SUMSQ in Google Sheets (With Example)

SUMSQ is a Google Sheets formula that returns the sum of the squares of a range of numbers. It is a useful tool for finding the total of a set of numbers that have been squared. To use this formula, enter the range of numbers into the parentheses following the formula and hit enter. This will return the sum of all the squared numbers in the range. For example, if we enter SUMSQ(A1:A5) into a Google Sheet, it will return the sum of the squares of the numbers in cells A1 to A5.


You can use the SUMSQ function in Google Sheets to calculate the sum of squares for a given sample.

This function uses the following basic syntax:

=SUMSQ(value1, value2, value3, ...)

Here’s the formula that SUMSQ actually uses:

Sum of squares = Σxi2

where:

  • Σ: A fancy symbol that means “sum”
  • xi: The ith data value

The following example shows how to use this function in practice.

Example: How to Use DEVSQ in Google Sheets

Suppose we have the following dataset in Google Sheets:

We can use the following formula to calculated the sum of squares for this dataset:

=SUMSQ(A2:A13)

The following screenshot shows how to use this formula in practice:

SUMSQ function in Google Sheets

The sum of squares turns out to be 1,402.

We can confirm this is correct by manually calculating the sum of squares for this dataset:

  • Sum of squares = Σxi2
  • Sum of squares = 22 + 32 + 52 + 52 + 72 + 82 + 92 + 122 + 142 + 152 + 162 + 182
  • Sum of squares = 4 + 9 + 25 + 25 + 49 + 64 + 81 + 144 + 196 + 225 + 256 + 324
  • Sum of squares = 1,402

The sum of squares turns out to be 1,402.

This matches the value that we calculated using the SUMSQ function.

The following tutorials explain how to perform other common operations in Google Sheets:

x