How to use the Cube Calculator
Formulas
| Quantity | Formula |
|---|---|
| Volume | V = a³ |
| Surface area | S = 6 × a² |
| Face diagonal | f = a × √2 |
| Space diagonal | d = a × √3 |
| Inscribed sphere radius | r = a ÷ 2 |
| Circumscribed sphere radius | R = a × √3 ÷ 2 |
| Total edge length | 12 × a |
Worked example
| Input | Value |
|---|---|
| Edge length | 4 cm |
| Volume | 64 cm³ |
| Surface area | 96 cm² |
| Face diagonal | 5.656854 cm |
| Space diagonal | 6.928203 cm |
| Inscribed sphere radius | 2 cm |
| Circumscribed sphere radius | 3.464102 cm |
| Total edge length | 48 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³.
Last reviewed: 7 November 2026.