Perfect Cube Calculator
Instantly check if a number is a perfect cube and find all perfect cubes up to any limit.
³ What is a Perfect Cube?
A perfect cube is an integer that can be written as the cube of another integer. More precisely, a positive integer n is a perfect cube if there exists a positive integer k such that k × k × k equals n. The first few perfect cubes are 1 (1³), 8 (2³), 27 (3³), 64 (4³), 125 (5³), 216 (6³), 343 (7³), 512 (8³), 729 (9³), and 1000 (10³). A number is a perfect cube if and only if its cube root is an exact integer with no fractional part.
Perfect cubes arise naturally in many areas. In geometry, the volume of a cube with integer side length is always a perfect cube: a cube with side 5 cm has volume 125 cm³. In number theory, perfect cubes play a role in Fermat's Last Theorem, which states that there are no positive integer solutions to a³ + b³ = c³ (proved by Andrew Wiles in 1995). In computer science, memory sizes and 3D grid dimensions often involve powers of 2 which are perfect cubes: 8, 512, and 134,217,728 are all perfect cubes of powers of 2. In algebra, the difference of cubes formula a³ − b³ = (a − b)(a² + ab + b²) and the sum of cubes formula a³ + b³ = (a + b)(a² − ab + b²) apply whenever a and b are integers.
An important distinction is between perfect cubes and perfect squares. A perfect square has a square root that is an integer (1, 4, 9, 16, 25, ...). A perfect cube has a cube root that is an integer (1, 8, 27, 64, 125, ...). Some numbers are both, called perfect sixth powers: 64 = 2&sup6;, 729 = 3&sup6;, 4096 = 4&sup6;. Additionally, negative integers can also be perfect cubes: −8 is a perfect cube because (−2)³ = −8, a property that does not hold for perfect squares (which are always non-negative).
This calculator provides two modes. In Check mode you enter any integer and instantly learn whether it is a perfect cube, what its exact or approximate cube root is, and which perfect cubes immediately precede and follow it. In List mode you set an upper limit and the calculator generates a complete table of all perfect cubes from 1 to that limit with their cube roots.
📐 Formula
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1: Is 512 a perfect cube?
Checking a positive perfect cube
Example 2: Is 100 a perfect cube?
Checking a non-perfect cube
Example 3: Is −27 a perfect cube?
Checking a negative perfect cube
Example 4: List all perfect cubes up to 500
Generating the full list of perfect cubes from 1 to 500
❓ Frequently Asked Questions
🔗 Related Calculators
What is a perfect cube?
A perfect cube is an integer that equals some integer multiplied by itself three times. For example, 27 is a perfect cube because 3 times 3 times 3 equals 27. Equivalently, a perfect cube is any integer n for which the cube root of n is also an integer. The sequence of positive perfect cubes starts at 1, 8, 27, 64, 125, 216, 343, 512, 729, 1000.
How do you check if a number is a perfect cube?
Compute the cube root of the number. If the result is a whole number (integer), then the original number is a perfect cube. For example, the cube root of 64 is 4 (an integer), so 64 is a perfect cube. The cube root of 70 is approximately 4.121, which is not an integer, so 70 is not a perfect cube.
What are the perfect cubes from 1 to 1000?
The perfect cubes from 1 to 1000 are 1, 8, 27, 64, 125, 216, 343, 512, 729, and 1000. There are exactly 10 of them. Their cube roots are 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 respectively.
Can a negative number be a perfect cube?
Yes. A negative integer is a perfect cube if its absolute value is a perfect cube. For example, -8 is a perfect cube because (-2) cubed equals -8, and -125 is a perfect cube because (-5) cubed equals -125. Odd roots of negative numbers are always real and negative.
What is the difference between a perfect square and a perfect cube?
A perfect square is an integer n where the square root of n is an integer: for example, 9 = 3 squared. A perfect cube is an integer n where the cube root of n is an integer: for example, 27 = 3 cubed. Some numbers are both: 64 = 8 squared and 4 cubed, 729 = 27 squared and 9 cubed. Numbers that are both are called perfect sixth powers.
How many perfect cubes are there between 1 and 1,000,000?
There are exactly 100 perfect cubes from 1 to 1,000,000 (from 1 cubed to 100 cubed, since 100 cubed equals 1,000,000). In general, the count of perfect cubes from 1 to N is the floor of the cube root of N. The cube root of 1,000,000 is exactly 100.
What is the formula to check if n is a perfect cube?
Let r be the nearest integer to the cube root of n. Compute r cubed. If r cubed equals n, then n is a perfect cube. In code: r = round(cbrt(n)), check r times r times r equals n. This avoids floating-point errors that can arise from directly comparing a computed cube root to its integer part.
Are there infinitely many perfect cubes?
Yes. For every positive integer k, k cubed is a perfect cube. Since the integers go on forever, so do the perfect cubes. However, perfect cubes become increasingly sparse as numbers grow larger. Up to N, there are only about the cube root of N perfect cubes, so they thin out rapidly compared to, say, even numbers.