=SUMSQ(value1, [value2, ...])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
| Parameter | Required | Description |
|---|---|---|
| value1 | Yes | The first number or range whose values will be squared and added. |
| value2, ... | No | Additional numbers or ranges to include. |
SUMSQ squares each number you give it and then adds those squares together. =SUMSQ(3, 4) returns 25, because 3² + 4² = 9 + 16. It accepts individual numbers, cell references and whole ranges, so =SUMSQ(A2:A100) squares and totals every value in the range in one step.
For each numeric value in its arguments, SUMSQ multiplies the value by itself and adds the result to a running total. It is equivalent to:
=SUMPRODUCT(A2:A100, A2:A100)or
=SUM(ARRAYFORMULA(A2:A100^2))but shorter and clearer.
=SUMSQ(-3) returns 9.=SUMSQ(1, 2, 3)Returns 14 (1 + 4 + 9).
=SUMSQ(B2:B20)=SUMSQ(B2:B20, D2:D20)Squares every number in both ranges and adds them all together.
=SQRT(SUMSQ(B2:D2))Returns the magnitude of a 3-dimensional vector stored in B2:D2 — for example, the straight-line distance from the origin.
=SQRT(SUMSQ(C2-A2, D2-B2))With x1, y1 in A2:B2 and x2, y2 in C2:D2, this gives the distance between the points.
The sum of squares is a building block of many statistics:
=SQRT(SUMSQ(B2:B100)/COUNT(B2:B100))=SUMXMY2(B2:B100, C2:C100) is the dedicated function, but SUMSQ works on a pre-computed error column.=SUMSQ("abc")).=SUMSQ(2, 3) is 13, while =POW(SUM(2, 3), 2) is 25. They are different calculations.#N/A or #DIV/0! inside the range makes SUMSQ return that error. Clean the range or use IFERROR upstream.POW, SQRT, SUMPRODUCT, DEVSQ, SUMXMY2, VAR, and STDEV.
An engineer logging AC voltage samples in column B needs the RMS value. The formula =SQRT(SUMSQ(B2:B501)/COUNT(B2:B501)) squares every sample, averages the squares and takes the square root, giving the effective voltage in a single cell.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.