Cube Calculator: Volume, Surface Area & Diagonals

Find a cube's volume, surface area, face diagonal, and space diagonal from any one known measure — side, diagonal, area, or volume — with exact steps.

Loading calculator…

The four cube formulas

A cube is defined entirely by its side length aa — the edge shared by its 6 identical square faces, the 3D extension of a square. Given aa, every other measure follows directly:

V=a3S=6a2f=a2d=a3V = a^3 \qquad S = 6a^2 \qquad f = a\sqrt{2} \qquad d = a\sqrt{3}

The two diagonals come from applying the Pythagorean theorem twice: the face diagonal ff is the hypotenuse of a right triangle formed by two sides of one square face (f=a2+a2=a2f = \sqrt{a^2 + a^2} = a\sqrt{2}), and the space diagonal dd is the hypotenuse of a right triangle formed by the face diagonal and the remaining edge (d=f2+a2=3a2=a3d = \sqrt{f^2 + a^2} = \sqrt{3a^2} = a\sqrt{3}).

Tip: The space diagonal is always longer than the face diagonal — d=a31.732ad = a\sqrt{3} \approx 1.732a versus f=a21.414af = a\sqrt{2} \approx 1.414a. Mixing the two up is the single most common cube-formula mistake.

Solving in the other direction

This calculator also works backward: give it any one of the five measures and it solves for the side first, then derives the rest.

KnownSolve for sideThen
Side aa— (already known)V=a3V = a^3, S=6a2S = 6a^2, f=a2f = a\sqrt{2}, d=a3d = a\sqrt{3}
Face diagonal ffa=f/2a = f/\sqrt{2}V=a3V = a^3, S=6a2S = 6a^2, d=a3d = a\sqrt{3}
Space diagonal dda=d/3a = d/\sqrt{3}V=a3V = a^3, S=6a2S = 6a^2, f=a2f = a\sqrt{2}
Surface area SSa=S/6a = \sqrt{S/6}V=a3V = a^3, f=a2f = a\sqrt{2}, d=a3d = a\sqrt{3}
Volume VVa=V3a = \sqrt[3]{V}S=6a2S = 6a^2, f=a2f = a\sqrt{2}, d=a3d = a\sqrt{3}

Worked example: side a = 4

V=43=64S=6(42)=96V = 4^3 = 64 \qquad S = 6(4^2) = 96 f=425.6569d=436.9282f = 4\sqrt{2} \approx 5.6569 \qquad d = 4\sqrt{3} \approx 6.9282

Because the side is a whole number, all four derived measures have an EXACT form — the volume and surface area are exact integers, and both diagonals have an exact simplified-radical form in addition to their decimal approximations.

Worked example (reverse): volume V = 64

Taking the cube root gives a=643=4a = \sqrt[3]{64} = 4 exactly. Since the side lands on a clean whole number, the surface area and both diagonals also have tidy exact forms: S=6(16)=96S = 6(16) = 96, f=425.6569f = 4\sqrt{2} \approx 5.6569, and d=436.9282d = 4\sqrt{3} \approx 6.9282.

Tip: Remember volume is measured in CUBIC units (e.g. cm³) while surface area is SQUARE units (e.g. cm²) — the two numbers are never directly comparable even for the same cube.

Worked example (reverse): surface area S = 100

Inverting the surface-area formula gives a=100/64.0825a = \sqrt{100/6} \approx 4.0825 — not a clean whole number, so no exact radical form applies to the diagonals here. The volume comes out as V68.0414V \approx 68.0414, the face diagonal as f5.7735f \approx 5.7735, and the space diagonal as d7.0711d \approx 7.0711, all plain decimal approximations.

Common mistakes

  • Mixing up the face diagonal and the space diagonal. f=a2f = a\sqrt{2} stays on one face; d=a3d = a\sqrt{3} cuts through the interior — dd is always the larger of the two.
  • Using a2a^2 instead of 6a26a^2 for the surface area. A cube has 6 faces, not 1 — forgetting the factor of 6 understates the total surface area sixfold.
  • Confusing volume with surface area units. Volume uses cubic units, surface area uses square units — they're never the same number for the same cube unless a=1a = 1 or a=6a = 6.

Where this shows up

  • Boxes, dice, storage cubes, Rubik's cubes: the volume tells you how much they can hold; the surface area tells you how much material wraps them.
  • Packaging and shipping: cube-shaped containers are common because they pack together with no wasted space, and their formulas make capacity planning simple.
  • Building blocks for other solids: a cube is the special case of a rectangular prism (box) where every edge is equal, and the same diagonal formulas generalize (via l2+w2+h2\sqrt{l^2+w^2+h^2}) to that more general shape.

A cube is the natural 3D counterpart of the square — knowing just one of its side, face diagonal, space diagonal, surface area, or volume is always enough to determine all the others, exactly the way one measure is enough for a flat square.

Frequently asked questions

What are the formulas for a cube?
With side aa: volume V=a3V = a^3, total surface area S=6a2S = 6a^2, face diagonal f=a2f = a\sqrt{2}, and space diagonal d=a3d = a\sqrt{3}. Knowing just one of these five measures is enough to find the other four.
What's the difference between the face diagonal and the space diagonal?
The face diagonal ff runs across one flat square face of the cube (f=a2f = a\sqrt{2}, from the Pythagorean theorem on that face's two sides). The space diagonal dd runs through the cube's interior, corner to opposite corner (d=a3d = a\sqrt{3}), and is always longer than the face diagonal.
How do I find the side if I only know the volume?
Take the cube root: a = ∛V. For example, a volume of 64 gives a side of ∛64 = 4, since V = a³ rearranges to a = ∛V.
How do I find the side if I only know the surface area?
Divide by 6 and take the square root: a = √(S/6). A surface area of 96 gives a side of √(96/6) = √16 = 4, since S = 6a² rearranges to a² = S/6.
How do I find the side from the space diagonal?
Divide by √3: a = d/√3. A space diagonal of 6.9282 gives a side of about 4, since d = a√3 rearranges to a = d/√3.
What is the most common mistake with cube formulas?
Confusing the face diagonal with the space diagonal, or using a² instead of 6a² for the total surface area — a cube has 6 identical square faces, not just 1, so the total surface area is always 6 times a single face's area.
Do volume and surface area have different units?
Yes. The side and both diagonals share the same linear unit (e.g. cm), but surface area is that unit squared (e.g. cm²) and volume is that unit cubed (e.g. cm³) — a cube with side 4 cm has a surface area of 96 cm² and a volume of 64 cm³, not the same number with a different label.
How is the cube related to the square and the rectangular prism?
A cube is the 3D extension of a square — every face is a square, the same way a square is built from equal sides. It's also the special case of a rectangular prism (box) where all three edge lengths (length, width, height) are equal.

Related calculators