Skip to content
OneKitly

The Sum of the First n Cubes Is the Square of Their Sum

Published 10/26/2026 · 3 min read · Everyday calculators

Lena Hoffmann

Lena Hoffmann — Science & education writer at OneKitly

Mathematics · Physics

Checked against 2 sources

View profile →
In short

Add the first ten cubes and you get 3,025. Add the first ten whole numbers and you get 55. Square that and you get 3,025 again. The coincidence is not one: the sum of the first n cubes equals the square of the sum of the first n numbers, for every n, which means it also equals the square of the nth triangular number. Take it to a hundred and the same thing happens — the cubes total 25,502,500 and 5,050 squared is 25,502,500. An identity that turns a sum of large third powers into a small square is the kind of shortcut worth carrying, and it is one of the few results in this area that a picture proves outright.

Advertisement

1³ + 2³ + … + 10³ = 3,025, and 1 + 2 + … + 10 = 55, and 55² = 3,025. Up to a hundred the sums are 25,502,500 and 5,050, and the identity still holds exactly.

The proof you can draw

Draw a square whose side is the sum one plus two plus three and so on. Divide it into an L-shaped band for each n, the band for n having width n on two sides. Count the area of that band and it comes to n³ exactly, so the square is the sum of the cubes and also, by construction, the square of the sum. Every step is visible on paper, no algebra is needed, and the argument generalises to nothing else — the fourth powers have no such tidy total, and the reason is precisely that no equally simple picture exists for them.

Where the shortcut is worth having

The sum of the first hundred cubes has eight digits and the sum of the first hundred numbers has four, so the identity replaces a hundred multiplications with one addition formula and one squaring. That matters wherever a loop is summing third powers — moments of inertia over discrete elements, the running total in a scoring scheme that weights position cubically, an estimate of volume built from stacked layers — and it matters more in analysis than in arithmetic, because a closed form can be differentiated and a loop cannot. The general lesson is worth more than the specific formula: a sum with a closed form is a different object from the same sum without one.

Both sums, two ranges
Up toSum of numbersSum of cubes
10553,025 = 55²
1005,05025,502,500 = 5,050²

Worked with our own calculator

Sum of cubes calculator

Given

Mode
Range n₁³…n₂³
n₁ (start)
1
n₂ (end) / n
10
Custom numbers
2, 3, 5, 7

Result

Sum of cubes
3,025
Terms summed
10

These figures are produced by the calculator below, not typed in by hand — they are recomputed whenever the tool changes.

Run it on your own figures →
Advertisement

Frequently asked questions

Does anything similar work for higher powers?
Closed forms exist for every power, and they stop being pretty immediately. The sum of squares is a cubic in n divided by six, the sum of fourth powers is a fifth-degree polynomial with awkward coefficients, and the general pattern is captured by a family of numbers that first appear in exactly this problem. What does not survive is the elegance: only the cubes fold into a perfect square of something already familiar, and treating that as a hint of a wider pattern leads nowhere.
Does the identity need the sum to start at one?
Yes, and that is easy to lose sight of. The statement is about the first n cubes and the first n numbers, both starting from one; a sum that begins at five is the difference of two such sums, and the identity applies to each of them separately rather than to the difference. The calculator's range mode handles that by computing both ends, which is the safe way to do it. Applying the square-of-the-sum shortcut directly to a partial range is one of the more common ways to get a confidently wrong answer here.

Articles you may find interesting

All guides →

Related tools

Sources

Spotted a mistake in this article?