Cube calculator

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

Report error
Volume
—
a³
Surface area
—
6a²
Space diagonal
—
a√3

Live cube geometry

The cube redraws from the current edge length.
LIVE
Edge —Space diagonal —

Volume vs edge

Cubic growth: doubling the edge makes volume 8× larger.
LIVE
Current volume —Edge —

Surface area vs edge

Quadratic growth: doubling the edge makes surface area 4× larger.
LIVE
Current surface —Edge —

Diagonal growth

Both diagonals grow linearly with the edge length.
Face diagonal · a√2 Space diagonal · a√3
LIVE
Face —Space —

Calculated parts

PartDecimalFormula
Enter one positive cube measurement to calculate the remaining properties.

Parameters · fill any one

cm
cm³
cm²
cm
cm
Cube geometry · explained

Cube Calculator: Volume, Surface Area, Diagonals & More

A cube is one of the simplest three-dimensional solids, yet a single edge length determines almost every measurement you usually need. Enter the edge, volume, surface area, face diagonal, or space diagonal above and the calculator derives the rest.

The key idea: every edge of a cube has the same length. If that edge is a, then V = a³, S = 6a², f = a√2, and d = a√3.
6congruent square faces
12equal-length edges
8vertices
4main measurements linked by a

What is a cube?

A cube is a three-dimensional solid bounded by six identical square faces. Three faces meet at each vertex, and adjacent edges are perpendicular. It can be viewed as a special rectangular prism in which length = width = height = a. This is why one measurement is enough to determine its volume, surface area, and diagonals.

edge a face diagonal f space diagonal d 8 vertices 12 edges 6 square faces Cube anatomy The solid has equal edges, square faces, a face diagonal across one face, and a space diagonal through the interior.
a × a × a base area × height V = a³ Why the volume is a³ A square base has area a². The cube is a units high, so multiplying base area by height gives a² × a = a³.

Cube formulas

These four relationships are the core of the calculator. The first two describe the amount of space and exposed surface; the last two describe straight-line distances inside the cube.

VolumeV = a³
Total surface areaS = 6a²
Face diagonalf = a√2
Space diagonald = a√3
MeasurementFormulaDimensionWhat it represents
EdgealengthOne of the cube's 12 equal edges
Volumea³cubicThree-dimensional space inside
Surface area6a²squareTotal area of all six faces
Face diagonala√2lengthCorner-to-corner across one face
Space diagonala√3lengthCorner-to-corner through the solid

How to calculate the volume

Start with the familiar prism idea: volume = base area × height. A cube's base is a square, so its base area is a². Because every edge is equal, the height is also a. Therefore:

BaseAbase = a × a = a²
Heighth = a
VolumeV = Abase × h = a² × a = a³

This also explains why volume grows quickly. If the edge is doubled, each of the three dimensions doubles, so the volume becomes 2 × 2 × 2 = 8 times as large.

How to calculate surface area

Every face is a square with area a², and there are six congruent faces. Add them together:

One faceA = a²
Six facesS = 6 × a² = 6a²

Surface area grows with the square of the edge. Doubling the edge therefore makes the total surface area 4 times larger, not 2 times larger.

How the diagonals work

There are two different diagonal measurements worth separating. A face diagonal stays on one square face. A space diagonal passes through the cube's interior and connects opposite vertices.

a a f f² = a² + a² f² = 2a² f = a√2 Step 1 · face diagonal Apply the Pythagorean theorem to one square face.
d² = f² + a² d² = 2a² + a² d² = 3a² d = a√3 Step 2 · space diagonal Use the face diagonal as one leg of a second right triangle through the cube.

Reverse calculations: when the edge is unknown

You do not always start with the edge. Because the four measurements are mathematically linked, you can rearrange the formulas and recover a first.

If you knowRecover the edge withThen calculate
Volume Va = ∛Vsurface, face diagonal, space diagonal
Surface area Sa = √(S/6)volume, both diagonals
Face diagonal fa = f/√2volume, surface, space diagonal
Space diagonal da = d/√3volume, surface, face diagonal

Worked examples

Example 1 · edge = 5 cm
1V = 5³ = 125 cm³
2S = 6 × 5² = 150 cm²
3f = 5√2 ≈ 7.071 cm
4d = 5√3 ≈ 8.660 cm
Example 2 · volume = 216 cm³
1a = ∛216 = 6 cm
2S = 6 × 6² = 216 cm²
3f = 6√2 ≈ 8.485 cm
4d = 6√3 ≈ 10.392 cm

Cube values at a glance

The table below is also a useful mental model for the live charts above. Notice how the volume accelerates faster than surface area as the edge increases.

Edge aVolume a³Surface 6a²Face diagonalSpace diagonal
1161.4141.732
28242.8283.464
327544.2435.196
464965.6576.928
51251507.0718.660
101,00060014.14217.321

How to read the live charts

The curves are not decorative. Each one is generated from the same equations used by the calculator, with your current input marked on the curve. That means the shape of each graph has a mathematical reason.

Volume · cubic

V = a³. The curve gets progressively steeper because a appears three times.

Surface · quadratic

S = 6a². It rises faster than a straight line but slower than volume.

Diagonals · linear

f = a√2 and d = a√3. Both are straight relationships with fixed multipliers.

Geometry · live

The cube drawing scales with the current edge and labels the face and space diagonals.

Units and common mistakes

QuantityCorrect unit typeExample when a = 4 cm
Edgecm4 cm
Face / space diagonalcm5.657 cm / 6.928 cm
Surface areacm²96 cm²
Volumecm³64 cm³
Common mistake: do not mix a length, an area, and a volume as though they had the same units. If the edge is in meters, surface area is in m² and volume is in m³.

Cube vs. “cubed” number

In algebra, “cubing” a number means raising it to the third power: n³ = n × n × n. A perfect cube is the result when an integer is cubed, such as 3³ = 27 or 5³ = 125. This idea is closely related to cube volume because a cube with integer edge length can be imagined as a block of unit cubes.

FAQ

What is the formula for the volume of a cube?

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

How do I find the edge from volume?

Take the cube root: a = ∛V. For example, ∛125 = 5.

How do I find the surface area?

Multiply the area of one square face by six: S = 6a².

What is the difference between a face and space diagonal?

The face diagonal crosses one square face. The space diagonal connects opposite vertices through the cube's interior.

Which diagonal is longer?

The space diagonal is longer: a√3 > a√2 for every positive edge length.

Can I calculate the cube from its surface area?

Yes. Rearrange the formula to a = √(S/6), then use that edge to calculate the other properties.

What happens if I double the edge?

Volume becomes 8 times larger, surface area becomes 4 times larger, and both diagonals become 2 times larger.

Are the live curves mathematically exact?

Yes. The curves are sampled directly from the cube equations shown on this page; the current input is highlighted on each curve.