SUMSQ Function

Excel Functions › Math & Trig

All versions Math & Trig

The Excel SUMSQ function squares each number you give it and adds the squares — the sum of squares used throughout statistics, geometry, and regression.


Quick answer:
=SUMSQ(3,4) = 3^2 + 4^2 = 25

Syntax

=SUMSQ(number1, [number2], ...)
ArgumentDescription
number1RequiredThe first number, array, or range to square.
number2, ...OptionalUp to 254 more numbers or ranges. Each value is squared, then all squares are added.

How to use it

SUMSQ raises every argument to the power of 2 and totals them. You can pass loose numbers or an array constant.

=SUMSQ(3,4) // 9 + 16 = 25
=SUMSQ({1,2,3}) // 1 + 4 + 9 = 14

It's a quick way to get the squared length of a vector or the numerator of a variance calculation. For the Pythagorean hypotenuse, combine it with SQRT: =SQRT(SUMSQ(3,4)) returns 5.

Hypotenuse in one line: =SQRT(SUMSQ(3,4)) = 5, because 3-4-5 is a right triangle.

Try it: interactive demo

Live demo

Pick a SUMSQ example to see the formula and its result.

Result:

Practice workbook

📊
Download the free SUMSQ practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What does SUMSQ calculate?
The sum of the squares of its arguments: SUMSQ(3,4) = 3² + 4² = 9 + 16 = 25.
Can SUMSQ take a range or array?
Yes. =SUMSQ(A1:A10) squares and totals a range, and =SUMSQ({1,2,3}) = 14 works with an array constant.
How do I get a hypotenuse with SUMSQ?
Wrap it in SQRT: =SQRT(SUMSQ(3,4)) = 5. SUMSQ gives a²+b² and SQRT takes the root.
Does SUMSQ ignore text in a range?
Yes — like SUM, text and blank cells inside a referenced range are skipped; only numbers are squared and added.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: SUM · SUMPRODUCT · SUMX2MY2 · SUMX2PY2 · SUMXMY2