Cube Number Calculator
Find the cube of an integer, the count of unit blocks in an n by n by n solid, with growth shown.
What it does
A cube number, or perfect cube, is an integer raised to the third power. It counts the unit blocks in a solid cube whose edge has n blocks, which is why the name is literal rather than a loose analogy. The sequence begins 0, 1, 8, 27, 64 and 125.
Cube numbers appear in volume formulas, in the study of perfect powers and in the solution of equations such as the sum of two cubes. Recognising them is a basic skill in algebra and number theory.
A useful identity says that the nth cube is the sum of the first n odd numbers grouped n at a time. That pattern explains why the gaps between consecutive cubes grow quickly and why cube roots of small integers are easy to spot by comparison.
This page computes the cube with exact integer arithmetic and reports the previous cube and the ratio between them. It does not draw the solid, only tells how many blocks it would contain.
The edge limit is one hundred thousand. The cube then has about fifteen digits and is printed in full without scientific notation.
How to use
- Enter an edge length n from 0 to 100,000.
- Read n cubed in the main result box.
- Check the previous cube beside it.
- Use the growth ratio to see how the gaps widen in relative terms.
- The default edge 10 reproduces the worked example.
- Try n = 6 to confirm the value 216.
Formula
- n
- The number of blocks along one edge.
- C(n)
- The number of unit blocks in the solid cube.
The difference between successive cubes is C(n) minus C(n - 1) equals three n squared minus three n plus one. The value at n = 0 is zero, so the first ratio is not defined and the tool reports it as not available.
Worked example
Example: edge 10
The page opens with n = 10.
- Write the formula: C(10) = 10 x 10 x 10.
- Multiply the first two factors: 10 x 10 = 100.
- Multiply by the third factor: 100 x 10 = 1000.
- Compute the previous cube: 9 x 9 x 9 = 729.
- Compute the ratio: 1000 / 729 = 1.37.
- The tool reports 1000, previous cube 729, and growth 1.37x.
- A ten by ten by ten stack contains exactly one thousand blocks.
Reference table
| n | n cubed | Previous | Growth |
|---|---|---|---|
| 0 | 0 | n/a | n/a |
| 1 | 1 | 0 | n/a |
| 2 | 8 | 1 | 8.00x |
| 3 | 27 | 8 | 3.38x |
| 5 | 125 | 64 | 1.95x |
| 10 | 1000 | 729 | 1.37x |
Limits
- Only whole edge lengths from zero upward are accepted.
- Inputs above 100,000 are rejected to keep the output readable.
- The growth ratio is rounded to two decimals.
- The tool counts blocks and does not draw the solid.
Common mistakes
- Using three times n instead of n cubed.
- Confusing a cube number with a square number.
- Forgetting that zero cubed is zero.
- Assuming the gap between cubes is quadratic with a simple coefficient.
- Rounding the ratio instead of computing it from exact cubes.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is 10 cubed?
10 x 10 x 10 = 1000.
What is 6 cubed?
216.
What is the gap from 729 to 1000?
271, equal to 3 x 100 minus 30 plus 1.
Questions
What is a perfect cube?
An integer that is the cube of another integer.
Is zero a cube number?
Yes, because zero times itself three times is zero.
How do I test for a cube?
Take the cube root and check whether the result is a whole number.
How fast do cubes grow?
Cubically, so doubling the edge multiplies the count by eight.
Are the values exact?
Yes. Integer multiplication is used throughout.
What edge lengths are accepted?
Whole numbers from zero through 100,000.