Cube calculator

Six square faces. Type an edge, the volume, or a diagonal; the rest follow.

Report error
Volume
Surface
6a²
Space d
a√3

Sketch

l vs w

Edges

Parts

PartValue
A = lw

Parameters — fill any one

cm
cm³
cm²
cm
cm
Cube geometry

Cube Calculator: Volume, Surface Area & Diagonals

A cube is defined by one edge length because all twelve edges are equal. From that single measurement, you can determine its volume, total surface area, face diagonal, and space diagonal. The calculator above can also work backwards from any one of those values.

One dimension is enough. If the edge is a, then V = a³, S = 6a², f = a√2, and d = a√3.

What is a cube?

A cube is a three-dimensional solid made from six identical square faces. It has 12 equal edges and 8 vertices, with three mutually perpendicular edges meeting at every vertex. A cube is therefore a special case of a rectangular prism in which length, width, and height are equal.

edge aface diagonal fspace diagonal d

Cube formulas

The core formulas follow directly from the cube's six equal square faces and three equal dimensions. The diagonal formulas come from applying the Pythagorean theorem first to a face and then through the solid.

Volume
V = a³
Surface area
S = 6a²
Face diagonal
f = a√2
Space diagonal
d = a√3
Known valueFind the edgeThen calculate
Edge aaV, S, f, d
Volume V∛VS, f, d
Surface area S√(S/6)V, f, d
Face diagonal ff/√2V, S, d
Space diagonal dd/√3V, S, f

How the diagonals work

The face diagonal is the diagonal of one square face. Pythagoras gives f² = a² + a², so f = a√2. For the space diagonal, apply the theorem once more using the face diagonal and the remaining edge: d² = f² + a² = 3a², which gives d = a√3.

Face diagonalAcross one square face from one corner to the opposite corner.
Space diagonalThrough the cube's interior between opposite vertices.
Largest corner distanceThe space diagonal is longer because it spans all three dimensions.

Volume and surface area

Cube volume is the product of its three equal dimensions: a × a × a = a³. Surface area is the sum of six equal square faces, each with area , giving 6a².

Worked example · edge = 4 cm
1V = a³ = 4³ = 64 cm³
2S = 6a² = 6 × 4² = 96 cm²
3f = a√2 = 4√2 ≈ 5.657 cm
4d = a√3 = 4√3 ≈ 6.928 cm

Worked example from volume

Suppose a cubic container has a volume of 125 cm³, but its edge length is unknown. Take the cube root first; once the edge is known, the remaining properties follow from the standard formulas.

Reverse calculation · V = 125 cm³
1a = ∛125 = 5 cm
2S = 6 × 5² = 150 cm²
3f = 5√2 ≈ 7.071 cm
4d = 5√3 ≈ 8.660 cm

Units matter

The numerical formulas stay the same when the unit changes, but the resulting unit changes with the dimension. An edge measured in centimeters produces surface area in square centimeters and volume in cubic centimeters.

MeasurementFormulaIf a is in cm
Edgeacm
Face diagonala√2cm
Space diagonala√3cm
Surface area6a²cm²
Volumecm³

Cube properties at a glance

6 facesEvery face is a congruent square.
12 edgesAll edges have exactly the same length.
8 verticesThree perpendicular edges meet at each vertex.

FAQ

What is the formula for the volume of a cube?

Use V = a³, where a is the edge length.

How do I find the side length from volume?

Take the cube root: a = ∛V.

What is the difference between face and space diagonal?

The face diagonal crosses one square face. The space diagonal passes through the interior from one vertex to the opposite vertex.

Can I calculate a cube from its surface area?

Yes. Rearrange S = 6a² to get a = √(S/6), then calculate the other properties.