SUMSQ Function in Apple Numbers: Add Squares of Values and Ranges
Calculate sums of squares in Apple Numbers using SUMSQ with reproducible table examples, distances, RMS, argument rules and troubleshooting.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
SUMSQ squares each selected number and adds the squares. =SUMSQ(3,4) is 25, while (3+4)^2 is 49. The latter includes the extra cross term 2×3×4.
Use a sum of squares for squared magnitudes, Euclidean distances or a root-mean-square calculation. It is not automatically a variance because the inputs have not necessarily been centered around their mean.
Availability and version history
- Introduced: The original introduction release and date are not established by the checked references.
- Availability: Currently documented in Apple’s Functions Help 15.4 documentation edition; no final supported-version endpoint is established.
- Scope: Shared iWork reference. Function-specific historical Mac, iPad, iPhone and iCloud availability is unverified.
- Checked: October 14, 2026, against the official SUMSQ reference. Worked results were independently calculated; no native Numbers test was performed.
Syntax and optional additional values
SUMSQ(num-value, num-value…)
Apple’s SUMSQ entry accepts a number or collection of numbers as the first required argument. Further numbers or numeric collections are optional. A single range is valid; no missing-first-argument default or maximum argument count is stated.
=SUMSQ(B2:D2,100) includes 100 squared, adding 10,000 to the squared total. =SUMSQ(B2:D2)+100 instead adds one hundred afterward. Overlapping references contribute repeatedly: SUMSQ(B2:D2,C2) counts C2 again. Check whether that weighting is intentional.
Complete vector worksheet
Create VectorChecks, with ten columns A:J and ten rows, including one header row. Put Label, X, Y, Z, Sum of squares, Length and Direct check in A1:G1. Enter all five numeric rows in B2:D6:
| Row | Label | B: X | C: Y | D: Z | Expected E | Expected F |
|---|---|---|---|---|---|---|
| 2 | 3-4 example | 3 | 4 | 0 | 25 | 5 |
| 3 | Signed 3D values | -3 | 4 | 12 | 169 | 13 |
| 4 | Zero vector | 0 | 0 | 0 | 0 | 0 |
| 5 | Mixed directions | 2 | -1 | 2 | 9 | 3 |
| 6 | Fractional readings | 1.5 | -2 | 0.5 | 6.5 | 2.5495097568 |
Enter =SUMSQ(B2:D2) in E2, =SQRT(E2) in F2 and =B2^2+C2^2+D2^2 in G2. Fill E2:G2 through row 6. Label H1 Difference, enter =E2-G2 in H2 and fill through H6 for mathematical zeros. The fractional length is rounded to ten decimals above.
For the original 3-4 row, put =SUMSQ(B2:D2,100) in J2 for 10025, =SUMSQ(B2:D2)+100 in J3 for 125, and =SUMSQ(B2:D2,C2) in J4 for 41. These distinguish an extra squared input, an added constant and an overlap.
Apple also illustrates a multirow rectangular range such as A1:D4; the function is not limited to a single row. Keep a result outside its own input range.
Distance between two points
Create Moves, with eight columns A:H and four rows, including one header row. Enter starting coordinates 1,2 in B2:C2 and ending coordinates 4,6 in D2:E2.
In F2 enter =SQRT(SUMSQ(D2-B2,E2-C2)) for 5. In G2 enter =(D2-B2)^2+(E2-C2)^2 for 25. The displacement is (3,4), so its squared length is 25 and its length is five.
These coordinates must use compatible linear units. This is plane geometry, not a geographic distance model on a curved Earth. Apple’s own SQRT(SUMSQ(3,4)) example uses the same Pythagorean identity.
Advanced: RMS, signed average and centering
Create Measurements, with ten columns A:J and eight rows, using no header rows. Put 3 in B2 and 4 in C2. Enter these formulas in D2:H2:
| Cell | Formula | Expected result |
|---|---|---|
| D2 | =SQRT(SUMSQ(B2:C2)/COUNT(B2:C2)) |
3.5355339059 approximately |
| E2 | =AVERAGE(B2:C2) |
3.5 |
| F2 | =SUMSQ(B2:C2) |
25 |
| G2 | =SQRT(AVERAGE(B2:C2)) |
1.8708286934 approximately |
| H2 | =COUNT(B2:C2) |
2 |
RMS takes the square root after averaging the squares. G2 takes the square root of the ordinary average and is a different calculation.
In B4 enter =B2-$E$2, and in C4 enter =C2-$E$2; these deviations are -0.5,0.5. D4 =SUMSQ(B4:C4) is 0.5, unlike the uncentered total 25. E4 =SUM(B4:C4) is 0, and F4 =F2-H2*E2^2 is 0.5, checking the centered-squares identity for these two numeric observations.
Copy Measurements to SignedMeasurements and change only B2 to -3. RMS remains approximately 3.5355339059, while the ordinary average becomes 0.5. The deviations become -3.5,3.5, their squared total becomes 24.5, and the identity in F4 also becomes 24.5. The signs matter to the mean even though their squares do not change.
COUNT is two here because both inputs are genuine numbers. That is a fixture-specific denominator, not a universal count of valid paired measurements. COUNT, AVERAGE and SUM have their own contracts.
Numeric inputs, references and practical limits
Use genuine numeric cells in these exercises. The short main-function entry does not supply a complete rule for text, Boolean, blank, date, duration or error-valued inputs. Do not transfer a helper function’s type rules, or another spreadsheet’s rules, into this function without evidence. Unequal collections and exact error tokens also remain outside the paired examples.
Keep corresponding observations and their identifiers together. The fixtures use equal-length, complete numeric ranges; inserting zero for an unknown observation changes the mathematical question. Very large inputs are squared, so finite-precision and magnitude limits matter, but the checked entry does not quantify them.
Within the same Numbers table, the shown cell references are sufficient. For another table, use the reference picker or a qualified form such as TableName::A1:A6. English examples use comma separators; Apple’s functions overview specifies semicolons between arguments when the decimal separator is a comma. Matching English function names do not establish identical historical support, coercion or import behavior across products.
SQRT converts a squared magnitude back to a length. SUMPRODUCT combines corresponding products. SUMXMY2 directly sums squared differences between two numeric collections.
The original five-vector input and calculation record remains available unchanged. It contains independent mathematical checks, not native application observations.