Cube Calculator

Calculate x cubed (x³) for any integer, negative, or decimal number, with full step-by-step working and the sign rule for negative numbers explained.

Loading calculator…

What cubing means

Cubing a number means multiplying it by itself three times:

x3=x×x×xx^3 = x \times x \times x

For example, 53=5×5×5=1255^3 = 5 \times 5 \times 5 = 125. The small raised "3" is an exponent — cubing is the same as raising a number to the power of 3.

Why it's called "cubing": the volume connection

The name comes from geometry. A cube with side length ss has volume s×s×s=s3s \times s \times s = s^3 — every edge is the same length, so the volume calculation is literally "the side length, cubed." A storage box that is 55 meters on each side has a volume of 53=1255^3 = 125 cubic meters.

The sign rule: cubing a negative number

Cubing behaves differently from squaring because 3 is an odd exponent. With squaring, the two negative signs always cancel. With cubing, there's a third factor left over that flips the result back to negative:

(3)3=(3)×(3)×(3)=9×(3)=27(-3)^3 = (-3) \times (-3) \times (-3) = 9 \times (-3) = -27

The first two factors multiply to a positive 99 (a negative times a negative), but that 99 is then multiplied by the third 3-3, flipping the sign back to negative. So (3)3=27(-3)^3 = -27, staying negative — the opposite of (3)2=9(-3)^2 = 9, which stays positive.

This calculator always reads a negative number typed into the field as the whole value being cubed. Entering 3-3 computes (3)3=27(-3)^3 = -27, the same way a graphing calculator treats a parenthesized negative base.

Tip: Unlike squaring, a negative number cubed is never positive. Cubing is an odd power, so the sign of x3x^3 always matches the sign of xx: positive stays positive, negative stays negative, and 03=00^3 = 0.

Cubing always keeps the sign of x

For any real number xx:

x3 has the same sign as xx^3 \text{ has the same sign as } x

If x>0x > 0, then x3>0x^3 > 0. If x<0x < 0, then x3<0x^3 < 0. And 03=00^3 = 0. This is different from squaring, where the result is always non-negative regardless of x's sign — cubing is the simplest example of an odd power, and every odd power preserves sign the same way.

Decimal cubes, computed exactly

The number being cubed doesn't need to be a whole number: 2.53=2.5×2.5×2.5=15.6252.5^3 = 2.5 \times 2.5 \times 2.5 = 15.625. This calculator computes decimal cubes with exact decimal arithmetic (not floating-point multiplication), so a value like 2.532.5^3 comes out exactly 15.62515.625, rather than showing tiny binary-rounding artifacts.

The inverse: cube root

Cubing and taking a cube root undo each other. If x3=yx^3 = y, then x=y3x = \sqrt[3]{y}. Unlike square roots, cube roots don't have this ambiguity problem: because cubing preserves sign, every real number has exactly one real cube root — 53=1255^3 = 125 means 1253=5\sqrt[3]{125} = 5, and (3)3=27(-3)^3 = -27 means 273=3\sqrt[3]{-27} = -3. For the reverse operation — finding y3\sqrt[3]{y} from yy — use the Cube Root calculator.

Worked examples

Example 1 — positive integer: 53=5×5×5=1255^3 = 5 \times 5 \times 5 = 125.

Example 2 — negative integer: (3)3=(3)×(3)×(3)=27(-3)^3 = (-3) \times (-3) \times (-3) = -27 — negative, because cubing is an odd power.

Example 3 — decimal: 2.53=2.5×2.5×2.5=15.6252.5^3 = 2.5 \times 2.5 \times 2.5 = 15.625.

Example 4 — zero: 03=0×0×0=00^3 = 0 \times 0 \times 0 = 0.

Where cubing shows up

Cubing appears throughout math and science: the volume formulas for cubes and spheres (43πr3\frac{4}{3}\pi r^3), density calculations (mass per cubic unit), and cubic equations in algebra. Cubing is the special case of the Exponents calculator where the exponent is fixed at 3 — squaring (exponent 2) is the other common special case, with its own dedicated Square calculator.

Frequently asked questions

What does cubing a number mean?
Cubing a number means multiplying it by itself three times: x3=x×x×xx^3 = x \times x \times x. For example, 53=5×5×5=1255^3 = 5 \times 5 \times 5 = 125. The small "3" is an exponent, so "cubed" is another way of saying "raised to the power of 3."
Is a negative number cubed positive or negative?
Always negative (unless the number is zero). Cubing is an odd power, so the sign does not cancel: (3)3=(3)×(3)×(3)=9×(3)=27(-3)^3 = (-3) \times (-3) \times (-3) = 9 \times (-3) = -27. Two of the three negative factors cancel each other, but the third one carries through, so every negative number cubed stays negative — unlike squaring, where the result is always non-negative.
What is the difference between negative 3 cubed and negative-3 in parentheses cubed?
For cubing, they give the same result — unlike squaring. 33-3^3 (no parentheses) means "negate the result of 333^3," giving 27-27. (3)3(-3)^3 means "cube the number 3-3," which also gives 27-27, since an odd power of a negative number is itself negative. This calculator treats a negative number typed into the input as the whole base, so entering 3-3 computes (3)3=27(-3)^3 = -27.
Why does a negative number cubed stay negative?
Because cubing multiplies three copies of the same sign together, and three negatives multiply to a negative. A negative times a negative is positive (3×3=9-3 \times -3 = 9), but that positive result times the third negative factor flips back to negative (9×3=279 \times -3 = -27). This is true for any odd power of a negative number — it always stays negative.
Can you cube a decimal number?
Yes. The same rule applies: multiply the decimal by itself three times. For example, 2.53=2.5×2.5×2.5=15.6252.5^3 = 2.5 \times 2.5 \times 2.5 = 15.625. This calculator computes decimal cubes exactly, using exact decimal arithmetic rather than floating-point multiplication, so results come out precise instead of showing tiny rounding artifacts.
What is the inverse of cubing?
The inverse of cubing is taking the cube root. If x3=yx^3 = y, then x=y3x = \sqrt[3]{y}. Unlike square roots, every real number — positive, negative, or zero — has exactly one real cube root, because cubing preserves sign: a positive number cubes to a positive value, and a negative number cubes to a negative value, so there is no ambiguity to resolve.
How is cubing used to calculate volume?
The volume of a cube with side length ss is s3s^3, because a cube has equal width, depth, and height, so volume = width × depth × height = s×s×s=s3s \times s \times s = s^3. This is where the name "cubing" comes from: multiplying a number by itself three times is exactly the calculation you do to find the volume of a cube.

Related calculators