Docelora
ToolsAboutContact
Geometry

Cube Calculator

A cube has six identical square faces, so a single edge length fixes everything about it. Enter the edge to get its volume, surface area and diagonals.

Quick answer: V = a³. For example, with edge length = 4 (in cm), the volume is 64 cm³.

Cube Calculator

Enter your values and select Calculate. Everything is worked out in your browser.

Result
Formula: Volume: V = a³; Surface area: S = 6 × a²; Face diagonal: f = a × √2

How to use the Cube Calculator

1. Enter the dimensionsType each measurement shown above. Decimals are fine.
2. Choose the unitPick the unit you measured in; results use the same unit, squared for areas and cubed for volumes.
3. CalculateAll results appear together, with the main one highlighted.

Formulas

QuantityFormula
VolumeV = a³
Surface areaS = 6 × a²
Face diagonalf = a × √2
Space diagonald = a × √3
Inscribed sphere radiusr = a ÷ 2
Circumscribed sphere radiusR = a × √3 ÷ 2
Total edge length12 × a

Worked example

InputValue
Edge length4 cm
Volume64 cm³
Surface area96 cm²
Face diagonal5.656854 cm
Space diagonal6.928203 cm
Inscribed sphere radius2 cm
Circumscribed sphere radius3.464102 cm
Total edge length48 cm

About the cube

The space diagonal runs from one corner through the centre to the opposite corner and is the longest straight line that fits inside the cube – useful when checking whether a rod or pole fits in a box. The face diagonal crosses one face. Because volume grows with the cube of the edge, doubling the edge multiplies the volume by eight but the surface area only by four.

Units and accuracy

Every input must use the same unit. Results are calculated with full double-precision arithmetic and shown to ten significant figures. For metric and imperial units, the volume is also converted to litres (1 litre = 1,000 cm³). Real objects have wall thickness, rounded edges and tolerances, so allow a margin when ordering material.

Related calculators

Frequently asked questions

How do you calculate the volume of a cube?

V = a³. With edge length = 4 (in cm), it comes to 64 cm³.

How do you calculate the surface area of a cube?

S = 6 × a². With edge length = 4 (in cm), it comes to 96 cm².

How do you calculate the face diagonal of a cube?

f = a × √2. With edge length = 4 (in cm), it comes to 5.656854 cm.

How do you calculate the space diagonal of a cube?

d = a × √3. With edge length = 4 (in cm), it comes to 6.928203 cm.

How do you calculate the inscribed sphere radius of a cube?

r = a ÷ 2. With edge length = 4 (in cm), it comes to 2 cm.

How do you calculate the circumscribed sphere radius of a cube?

R = a × √3 ÷ 2. With edge length = 4 (in cm), it comes to 3.464102 cm.

How do you calculate the total edge length of a cube?

12 × a. With edge length = 4 (in cm), it comes to 48 cm.

How do I find the edge from the volume?

Take the cube root: a = ∛V. A volume of 64 gives an edge of 4.

How many litres does a cube hold?

With the edge in centimetres, divide the volume in cm³ by 1,000. A 10 cm cube holds 1 litre.

Why does the space diagonal matter?

It is the longest object that fits inside the cube, corner to corner.

Which units can I use?

Millimetres, centimetres, metres, inches, feet or yards. Enter every dimension in the same unit; areas come out in square units and volumes in cubic units.

How do I convert the volume to litres?

Litres are shown automatically for metric and imperial units. By hand: cm³ ÷ 1,000, or m³ × 1,000.

Can I enter decimals?

Yes. Use a full stop as the decimal separator, for example 2.75.

Why does it say my inputs are invalid?

Enter an edge length greater than zero.

How precise are the results?

The maths uses double-precision floating point and shows up to ten significant figures, far more than any tape measure.

What happens if I double every dimension?

Lengths double, areas become four times larger and volumes eight times larger.

Is my data stored?

No. The calculation runs in your browser and nothing you type is sent to Docelora.

Does it work on a phone?

Yes. The layout and number keyboard are designed for mobile browsers.

Can I rely on it for building or manufacturing?

The formulas are exact for ideal shapes. For real work, measure carefully and allow for thickness, joints, waste and tolerances.

Can I work backwards from a known result?

Rearrange the formula in the table for the dimension you need, or adjust the inputs until the result matches. For example, a known volume and height give the radius of a cylinder as √(V ÷ (π h)).

Can I copy the results?

Yes. Copy result places the main value and every other measurement on your clipboard.

What is the difference between surface area and volume?

Surface area is the total area of the outside, in square units – what paint or wrapping covers. Volume is the space inside, in cubic units – what the shape holds.

What if my object is not a perfect cube?

Split it into simpler shapes, calculate each one and add (or subtract) the results. For hollow objects, subtract the inside from the outside.

Can I work out the weight of the object?

Multiply the volume by the material’s density. Steel is about 7.85 g/cm³, aluminium about 2.7 g/cm³ and water 1 g/cm³.

Docelora calculators are for general information, study and planning. Check critical figures against authoritative references or a qualified professional.

Last reviewed: 7 November 2026.