Numbers & Arithmetic

Perfect Cubes: List, Tests and Worked Examples

A perfect cube is an integer of the form n3n^3, that is, a whole number multiplied by itself three times: n×n×nn \times n \times n. The first ten are 1,8,27,64,125,216,343,512,729,10001, 8, 27, 64, 125, 216, 343, 512, 729, 1000.

n3=n×n×nn^3 = n \times n \times n

Try it with your numbers

Show every step

Type any number into the solver above and it shows whether the number qualifies, step by step. The sections below give you the longer list, three ways to test a number by hand, how negatives and fractions behave, and where cubes appear in algebra and in real volume problems. If you need the reverse operation, it is covered on the page about cube roots.

Perfect cubes list from 1 to 20 and the pattern in it

nn n3n^3 nn n3n^3
1 1 11 1331
2 8 12 1728
3 27 13 2197
4 64 14 2744
5 125 15 3375
6 216 16 4096
7 343 17 4913
8 512 18 5832
9 729 19 6859
10 1000 20 8000

Parity carries straight through: an odd base gives an odd cube and an even base gives an even cube. Cubes of multiples of 10 are easy, because 203=8×1000=800020^3 = 8 \times 1000 = 8000 and 303=2700030^3 = 27000. The cube of 11 is no accident either: 113=(10+1)3=1000+300+30+1=133111^3 = (10+1)^3 = 1000 + 300 + 30 + 1 = 1331.

Cubes thin out fast. There are only 10 of them up to 1000 and exactly 100 up to 1,000,0001{,}000{,}000, so a number picked at random is rarely a perfect cube. That rarity is why a quick test (covered next) is worth having.

Zero and one count

Since 0=030 = 0^3 and 1=131 = 1^3, both are perfect cubes. Lists that begin at 8 are simply skipping the trivial cases.

How do you know if a number is a perfect cube?

Prime factors of 540 showing multiply by 50 or divide by 20 gives a perfect cube
Multiplying adds the missing primes and dividing removes the extra ones, so 540 becomes 30³ or 3³.

Break the number into primes. It is a perfect cube exactly when every exponent is a multiple of 3. The reason is short: if N=n3N = n^3 and n=p1a1p2a2⋯n = p_1^{a_1} p_2^{a_2}\cdots, then cubing triples every exponent. Because prime factorization is unique, no other number can be a cube.

N=p1e1p2e2⋯pkek is a perfect cube  ⟺  3∣ei for every iN = p_1^{e_1} p_2^{e_2} \cdots p_k^{e_k} \text{ is a perfect cube} \iff 3 \mid e_i \text{ for every } i

Start with the primes in the list of primes to 100, then follow the steps on prime factorization. Example 1: is 17281728 a perfect cube? Halve it repeatedly: 1728→864→432→216→108→54→271728 \to 864 \to 432 \to 216 \to 108 \to 54 \to 27. That is six 2s, and 27=3327 = 3^3, so

1728=26×33.1728 = 2^6 \times 3^3.

The exponents 6 and 3 are both multiples of 3, so yes. The cube root takes one third of each exponent: 22×3=122^2 \times 3 = 12, and 123=172812^3 = 1728.

Example 2: what is the smallest number to multiply 540540 by to make a perfect cube? Factor: 540=22×33×5540 = 2^2 \times 3^3 \times 5. The exponent of 2 is short by one and the exponent of 5 is short by two, so multiply by 2×52=502 \times 5^2 = 50:

540×50=27000=303.540 \times 50 = 27000 = 30^3.

The trap is fixing the wrong direction. Dividing also works, but it removes the extra primes instead: 540÷(22×5)=540÷20=27=33540 \div (2^2 \times 5) = 540 \div 20 = 27 = 3^3. Multiplying needs 50, dividing needs 20, and mixing the two up is the usual lost mark.

Quick check

Is 500500 a perfect cube?

How to find the cube root of a perfect cube in your head

Mental cube root of 12167 using last digit and leading digits to get 23
The ones digit 7 forces a root ending in 3, and 12 sits between 8 and 27, so the root is 23.

Every digit has a different cube ending, which is not true for squares. Here is how the last digit of nn maps to the last digit of n3n^3:

0→0, 1→1, 2→8, 3→7, 4→4, 5→5, 6→6, 7→3, 8→2, 9→90\to0,\ 1\to1,\ 2\to8,\ 3\to7,\ 4\to4,\ 5\to5,\ 6\to6,\ 7\to3,\ 8\to2,\ 9\to9

Only 2 and 8, and 3 and 7, swap places. Because each ending is unique, the last digit of a perfect cube tells you the last digit of its root straight away.

Example 3: find 121673\sqrt[3]{12167}. The last digit is 7, so the root ends in 3. Cover the last three digits and look at what remains: 12. It sits between 23=82^3 = 8 and 33=273^3 = 27, so the tens digit is 2. The root is 23. Check: 232=52923^2 = 529 and 529×23=12167529 \times 23 = 12167.

Why the tens digit works

If 20≤n<3020 \le n < 30, then 8000≤n3<270008000 \le n^3 < 27000. So the thousands part of the cube must fall between 8 and 27, which points to the tens digit 2.

This method assumes the number really is a cube, so always finish by multiplying back. It works neatly for roots from 10 to 99, whose cubes have 4 to 6 digits. For a number that is not a perfect cube, the method gives a candidate that fails the check. That failure is itself the answer.

Can the digit sum prove a number is not a perfect cube?

It can reject, but it cannot confirm. Every integer is 3k3k, 3k+13k+1 or 3k−13k-1. Cube each form: (3k)3=27k3(3k)^3 = 27k^3 is a multiple of 9, and (3k±1)3=27k3±27k2+9k±1(3k \pm 1)^3 = 27k^3 \pm 27k^2 + 9k \pm 1 leaves a remainder of ±1\pm 1 when divided by 9. So a cube leaves remainder 0, 1 or 8 on division by 9.

The digit sum has the same remainder as the number (the rule behind the 9 test in divisibility rules). Add the digits repeatedly until one digit remains. A perfect cube always ends at 1, 8 or 9. For instance, 49134913 gives 4+9+1+3=17→84+9+1+3 = 17 \to 8, which passes (and 4913=1734913 = 17^3). The number 20002000 gives 2, so it cannot be a cube.

Passing proves nothing. The number 12341234 reduces to 1 and passes, yet 103=100010^3 = 1000 and 113=133111^3 = 1331 show it is not a cube. Use the digit sum to throw out bad candidates in a few seconds, then confirm survivors with factoring or the last-digit method.

Try this: Reduce the digit sums of 343, 512, 729 and 1331 to one digit each. Then use the same test to show that 8003 cannot be a perfect cube.

Are negative numbers and fractions perfect cubes?

Negative integers can be perfect cubes. Three negative factors multiply to a negative result: (−4)(−4)=16(-4)(-4) = 16, then 16×(−4)=−6416 \times (-4) = -64. So −64-64 is a perfect cube, and the sign rules from multiplying integers explain why. Squares never behave this way, because an even power erases the sign.

The sign habit that costs points involves the order of operations. With an odd exponent, −43-4^3 and (−4)3(-4)^3 both equal −64-64, so the mistake stays hidden. Switch to an even exponent and −42=−16-4^2 = -16 while (−4)2=16(-4)^2 = 16. Writing the parentheses every time keeps you safe when the exponent changes.

A fraction in lowest terms is a perfect cube when its numerator and denominator both are: 827=(23)3\frac{8}{27} = \left(\frac{2}{3}\right)^3. Simplify first, because 5416\frac{54}{16} does not look like a cube until simplifying the fraction turns it into 278=(32)3\frac{27}{8} = \left(\frac{3}{2}\right)^3. Decimals follow the same idea: 0.027=0.330.027 = 0.3^3 and 0.008=0.230.008 = 0.2^3, with the number of decimal places a multiple of 3. These cube roots are all rational, while something like 23\sqrt[3]{2} is not, as explained in rational vs irrational numbers.

Quick check

Is −0.064-0.064 a perfect cube? If so, which decimal cubed gives it?

Perfect cubes vs perfect squares: what is the difference?

Squares come from area and cubes from volume, but the prime-factor view makes the difference sharper. Under that view the three cases line up:

  • Every exponent a multiple of 2: a perfect square.
  • Every exponent a multiple of 3: a perfect cube.
  • Every exponent a multiple of 6: both at once.

Numbers that are both are sixth powers: 1,64,729,4096,156251, 64, 729, 4096, 15625. Check one: 64=82=4364 = 8^2 = 4^3 and 4096=642=1634096 = 64^2 = 16^3.

Cubes lack a property squares have. A perfect square always has an odd number of factors, but no such rule holds for cubes. Instead, the factor count of a cube is always one more than a multiple of 3. For 216=23×33216 = 2^3 \times 3^3 the count is (3+1)(3+1)=16(3+1)(3+1) = 16, and 16=15+116 = 15 + 1. The cube 88 has 4 factors and 6464 has 7.

One more contrast: negative numbers can be cubes but never squares. This is why you can take the cube root of −8-8 and get −2-2, while the square root of −8-8 leaves the real numbers entirely.

Why perfect cubes grow the way they do: a clean proof

Picture an n×n×nn \times n \times n block and grow it to (n+1)3(n+1)^3. You add three flat slabs of n2n^2 unit cubes, three edge strips of nn unit cubes, and one corner cube:

(n+1)3−n3=3n2+3n+1(n+1)^3 - n^3 = 3n^2 + 3n + 1

Check with n=5n = 5: 3(25)+15+1=913(25) + 15 + 1 = 91, and 216−125=91216 - 125 = 91. This also gives a mental shortcut: 133=123+3(144)+3(12)+1=1728+469=219713^3 = 12^3 + 3(144) + 3(12) + 1 = 1728 + 469 = 2197.

Cubes also hide inside the odd numbers. n3n^3 is the sum of nn consecutive odd numbers starting at n2−n+1n^2 - n + 1. For n=4n = 4: 13+15+17+19=6413 + 15 + 17 + 19 = 64. The proof is an arithmetic series: the first term is n2−n+1n^2 - n + 1, the last is n2+n−1n^2 + n - 1, so the sum is n2(2n2)=n3\frac{n}{2}(2n^2) = n^3.

Cubes add up to a square

13+23+⋯+n3=(n(n+1)2)21^3 + 2^3 + \cdots + n^3 = \left(\frac{n(n+1)}{2}\right)^2. For n=5n = 5: 1+8+27+64+125=225=1521 + 8 + 27 + 64 + 125 = 225 = 15^2.

How do sum and difference of perfect cubes factor?

Spotting cubes is also the key to a standard factoring pattern in algebra:

a3+b3=(a+b)(a2−ab+b2)a^3 + b^3 = (a+b)(a^2 - ab + b^2)

a3−b3=(a−b)(a2+ab+b2)a^3 - b^3 = (a-b)(a^2 + ab + b^2)

Coefficients such as 8, 27, 64 and 125 are your cue, as are exponents that are multiples of 3, since x6=(x2)3x^6 = (x^2)^3. The trap is the false shortcut (a+b)3=a3+b3(a+b)^3 = a^3 + b^3. It is wrong, because the cube of a sum has the middle terms 3a2b+3ab23a^2b + 3ab^2.

Worked pattern: factor 8x3+278x^3 + 27. Here a=2xa = 2x and b=3b = 3, so

8x3+27=(2x+3)(4x2−6x+9).8x^3 + 27 = (2x+3)(4x^2 - 6x + 9).

To check, expand: the x2x^2 terms are −12x2+12x2=0-12x^2 + 12x^2 = 0 and the xx terms are 18x−18x=018x - 18x = 0, leaving 8x3+278x^3 + 27. The trinomial factor cannot be broken down further over the real numbers.

When an expression is both a difference of squares and of cubes, such as x6−64x^6 - 64, start with squares: (x3−8)(x3+8)(x^3 - 8)(x^3 + 8). Then factor each cube to reach (x−2)(x2+2x+4)(x+2)(x2−2x+4)(x-2)(x^2+2x+4)(x+2)(x^2-2x+4). Starting with cubes first leaves a trinomial that is harder to split.

Where perfect cubes show up: volume, scaling and 1729

A cube with edge ss has volume s3s^3, so a 4 cm cube holds 64 cm³. The useful consequence is scaling: doubling every edge multiplies the volume by 8, and tripling multiplies it by 27. A model at scale 1:3 holds only 127\frac{1}{27} of the real object’s volume, a fact that rests on ratios and proportions.

The same effect shows up in percentages. A 10% longer edge gives 1.13=1.3311.1^3 = 1.331, a percent change of 33.1% in volume. Units behave the same way: 1 m=100 cm1\ \text{m} = 100\ \text{cm}, so 1 m3=(102)3 cm3=106 cm31\ \text{m}^3 = (10^2)^3\ \text{cm}^3 = 10^6\ \text{cm}^3. Cubing multiplies the exponent on a power of ten by 3, which is useful in scientific notation.

Cubes also have a famous story. The number 1729 is the smallest that is a sum of two positive cubes in two different ways: 13+123=1+17281^3 + 12^3 = 1 + 1728 and 93+103=729+10009^3 + 10^3 = 729 + 1000. Both come to 1729.

Quick check

A cube's edge grows by 20%. By what percent does its volume grow?

Practice problems

0 of 5 solved

  1. Evaluate 737^3.

  2. Is 33753375 a perfect cube? If so, find its cube root.

  3. Find 3890173\sqrt[3]{389017} using the last digit and the thousands part.

  4. What is the smallest positive integer you can multiply 392392 by to get a perfect cube?

  5. Factor 27x3−6427x^3 - 64.

Common questions

What are the first 10 perfect cubes?

They are 1, 8, 27, 64, 125, 216, 343, 512, 729 and 1000, which are 131^3 through 10310^3. Including zero, the list starts at 03=00^3 = 0.

Is 0 a perfect cube?

Yes. Zero equals 030^3, and 0 is an integer, so it meets the definition. The same is true of 1, since 1=131 = 1^3.

Can a perfect cube be negative?

Yes. Cubing keeps the sign of the base, so (−3)3=−27(-3)^3 = -27 and −27-27 is a perfect cube. This is a key difference from perfect squares, which are never negative.

How do you tell if a number is a perfect cube without a calculator?

Factor it into primes and check that every exponent is a multiple of 3. For a fast rejection, check the digit sum: a perfect cube always has a digital root of 1, 8 or 9.

What is the difference between a perfect square and a perfect cube?

A perfect square is n2n^2 and a perfect cube is n3n^3. Some numbers are both, such as 64, because 64=82=4364 = 8^2 = 4^3; these are the sixth powers.

Can a fraction or decimal be a perfect cube?

Yes, in the extended sense. A fraction in lowest terms is a perfect cube when its numerator and denominator both are, so 827=(23)3\frac{8}{27} = \left(\frac{2}{3}\right)^3. A decimal such as 0.027=0.330.027 = 0.3^3 also counts.

Up next