Geometry
How To Calculate The Diagonal Of A Cube
A cube is the simplest three-dimensional solid: twelve equal edges, six identical square faces and a single number — the side length — that determines everything else. This page shows how to get the space diagonal, the face diagonal, the total surface area and the volume from that one measurement.
Last updated
Quick Answer
Space diagonal d = s√3; face diagonal f = s√2; surface area SA = 6s²; volume V = s³
- s
- Side length (the length of one edge)
- d
- Space diagonal from a corner to the opposite corner
- f
- Face diagonal across one square face
- SA
- Total surface area, six times the side squared
- V
- Volume, the side raised to the third power
Multiply the side length by the square root of three for the corner-to-corner space diagonal, and by the square root of two for the diagonal across a single square face. Six times the side squared gives the total surface area, while the side cubed gives the volume. For a side of 10 the four results are 17.32050807568877, 14.142135623730951, 600.0 and 1000.0 respectively.
What Is The Diagonal Of A Cube?
The space diagonal of a cube is the longest straight line you can draw inside it: it runs from one corner, through the exact centre of the solid, to the corner diagonally opposite. Because a cube is completely regular, this distance is always the side length multiplied by the square root of three. A person who knows only the length of one edge therefore knows the longest internal span without measuring it, which is the whole point of the formula.
The square root of three is not a mystery or a magic constant; it is Pythagoras' theorem applied twice. On one square face, the diagonal joins two opposite corners and has length √(s² + s²), which simplifies to s√2. Drop that face diagonal and one upright edge into a second right-angled triangle running through the solid, and the space diagonal is √((s√2)² + s²) = √(2s² + s²) = √(3s²) = s√3. Once you see the two right angles, the factor of three is unavoidable.
That two-step derivation also explains why there are two different diagonals worth naming. The face diagonal lies flat in one of the six square faces and measures s√2, while the space diagonal cuts through the interior and measures s√3. Since √3 is larger than √2, the space diagonal is always longer, and the gap between them grows steadily as the cube gets bigger. Confusing the two is the single most common error in this topic.
A cube is highly symmetrical, and that symmetry is what lets one input produce four useful outputs. Every edge has the same length s, every face is a square of area s², and all eight corners are equivalent. Contrast this with a rectangular prism, where three separate edge lengths are needed and the space diagonal becomes √(l² + w² + h²). The cube formula is simply the special case of that more general expression with all three lengths set equal.
The same side length also determines how much material the cube contains and how much surface it exposes. Each of the six faces contributes s², so the total surface area is 6s². The space inside is s multiplied by s multiplied by s, or s³. Notice the different growth rates: the diagonals grow in direct proportion to s, the surface area grows with s squared, and the volume grows with s cubed. This is why a small increase in edge length produces a much larger increase in capacity than in span.
The scaling behaviour is worth stating plainly because it appears throughout science and engineering. Double the side of a cube and both diagonals double, but the surface area becomes four times as large and the volume becomes eight times as large. Halve the side and the volume falls to one eighth. Anyone sizing a container, a packing box or a storage tank is really using these relationships, even if they never write them down.
Dimensional analysis provides a quick sanity check on any answer you obtain. A diagonal is a length, so it is measured in metres, centimetres or inches, never in square or cubic units. Surface area must come out in square units and volume in cubic units. For any positive side, the three lengths must also satisfy the strict ordering s < s√2 < s√3, so if your face diagonal comes out smaller than the edge, or your space diagonal smaller than the face diagonal, something has gone wrong before you reach for a calculator.
These figures turn up in practical problems more often than pure geometry suggests. A long rod or a pencil placed inside a box can be at most one space diagonal long, which is why the diagonal sets the limit on what fits. Screen sizes quote the diagonal of a rectangle, and a square screen of side s would quote s√2. In computer graphics, the bounding sphere around a cube has a radius of half the space diagonal, and that radius is used for collision detection and camera framing.
One final connection ties the topic together neatly. A sphere drawn through all eight corners of the cube — its circumsphere — has a diameter exactly equal to the space diagonal, because opposite corners of the cube are opposite points of the sphere. The insphere touching the centres of the six faces has a diameter equal to the side. Between those two extremes sits the face diagonal, which is the diameter of the circle passing around any square face. All three lengths are therefore diameters of natural circles and spheres associated with the same solid.
Formula
d = s√3
Formula page →The corner-to-corner distance through the interior. Apply Pythagoras across a face and then through the solid to obtain the factor of √3.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| s | Side length | length | The length of any one of the twelve equal edges. |
| d | Space diagonal | length | The longest internal line, from a corner to the opposite corner. |
| √3 | Square root of three | constant | A constant approximately equal to 1.7320508075688772. |
f = s√2
Formula page →The diagonal drawn across a single square face, obtained from Pythagoras on that face: √(s² + s²).
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| s | Side length | length | The edge of the square face. |
| f | Face diagonal | length | The line joining opposite corners of one square face. |
| √2 | Square root of two | constant | A constant approximately equal to 1.4142135623730951. |
SA = 6s²; V = s³
Formula page →Six identical square faces give the total surface area; multiplying the edge three times gives the enclosed volume.
| Symbol | Meaning | Unit | Notes |
|---|---|---|---|
| s | Side length | length | The single edge from which both measures are derived. |
| SA | Total surface area | length² | Six times the area of one square face. |
| V | Volume | length³ | The side length raised to the third power. |
How To Calculate The Diagonal Of A Cube
- 1
Identify the side length
Find the length of one edge and call it s. Every other edge of a cube has exactly the same length, so a single measurement is enough. If the problem gives a face diagonal or a volume instead, reverse the appropriate formula first to recover s before continuing.
- 2
Find the face diagonal with Pythagoras
On one square face the diagonal is the hypotenuse of a right-angled triangle with two sides of length s. It is therefore √(s² + s²), which simplifies to s√2. With s = 10 that gives 14.142135623730951. This value is also the diameter of the circle that passes around the face.
- 3
Extend into the interior for the space diagonal
Combine the face diagonal with the upright edge in a second right-angled triangle. The space diagonal is √((s√2)² + s²) = s√3. For a side of 10, multiplying by the square root of three gives 17.32050807568877, comfortably longer than the face diagonal.
- 4
Compute the total surface area
One face has area s² and there are six identical faces, so the total is 6s². It is often useful to square the side once and keep that value, since it feeds both the surface area and, with one more multiplication, the volume. For s = 10 the surface area is 600.0 square units.
- 5
Compute the volume and check the relationships
Multiply the side by itself three times to get s³, which is 1000.0 for s = 10. Then check your work: the space diagonal should exceed the face diagonal, which should exceed the side, and the units should be length, length squared and length cubed respectively. Any mismatch means a formula was applied incorrectly.
Examples
Example 1: Side 10 — the space diagonal from corner to corner
- side
- 10
| Step | Calculation | Result |
|---|---|---|
| Side length | s | 10 |
| Square of the side | s × s | 100 |
| Space diagonal factor | √3 | 1.7320508075688772 |
| Space diagonal | √3 × s | 17.32050807568877 |
Result: For a cube of side 10, the space diagonal is 17.32050807568877 units, running from one corner through the centre to the opposite corner.
Example 2: Side 10 — the diagonal across one square face
- side
- 10
| Step | Calculation | Result |
|---|---|---|
| Side length | s | 10 |
| Face diagonal by Pythagoras | √(s² + s²) = √(2s²) | 14.142135623730951 |
| Check with the shortcut | √2 × s = 1.4142135623730951 × 10 | 14.142135623730951 |
Result: For a cube of side 10, the face diagonal is 14.142135623730951 units across each square face.
Example 3: Side 10 — surface area and volume from the same edge
- side
- 10
| Step | Calculation | Result |
|---|---|---|
| Side length | s | 10 |
| Area of one face | s × s | 100 |
| Total surface area | 6 × s² | 600.0 |
| Volume | s³ = 10 × 10 × 10 | 1000.0 |
Result: A cube of side 10 has a surface area of 600.0 square units and a volume of 1000.0 cubic units.
Calculator
Space diagonal
17.3205
- Face diagonal
- 14.1421
- Total surface area
- 600
- Volume
- 1,000
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
Prefer a full-width tool? Open the The Diagonal Of A Cube calculator page.
Common Mistakes
Confusing the face diagonal with the space diagonal
These are different lines with different factors: s√2 lies in one face, while s√3 runs through the interior. If you need the longest distance inside the cube, always use the space diagonal. A useful check is that the answer must be bigger than the face diagonal, not smaller.
Using the wrong square root
Swapping √2 for √3 — or the reverse — is easy when the two formulas sit side by side. Remember that a triangle on a flat face involves two dimensions and gives √2, while carrying the diagonal through the third dimension adds one more s² under the root and gives √3. Write the Pythagoras steps out if you are unsure.
Forgetting to square the side for surface area
Some learners compute 6s instead of 6s², which gives 60 rather than 600 for a side of 10. Surface area counts six square faces, and each face contributes s squared. Check the units: an answer in ordinary length units cannot possibly be an area.
Mixing up area and volume
Surface area is 6s² while volume is s³; they are different quantities in different units and should never be interchanged. At a side of 6 the two numbers happen to coincide at 216, which can mislead people into thinking the formulas are equivalent. The coincidence is purely numerical and does not make the measures comparable.
Rounding the square roots too aggressively
Taking √3 as 1.7 gives 17 for a side of 10 instead of 17.32050807568877. Early rounding also breaks the tidy relationship between the face and space diagonals. Keep full precision through the calculation and round only the final displayed value, and never round a stored reference value such as 14.142135623730951.
Applying cube formulas to a non-cube
The expressions s√2, s√3, 6s² and s³ all assume every edge is equal. For a rectangular box with different length, width and height, the space diagonal is √(l² + w² + h²) and the surface area is 2(lw + lh + wh). Using the cube shortcut on such a solid produces a plausible-looking but wrong answer.
FAQ
What is the difference between a face diagonal and a space diagonal?
A face diagonal joins opposite corners of a single square face and has length s√2. A space diagonal joins opposite corners of the whole solid, passing through its centre, and has length s√3. The space diagonal is always the longer of the two, and it is the longest straight line that fits inside the cube.
Why is the space diagonal equal to s√3?
It is Pythagoras' theorem used twice. The diagonal of a square face is √(s² + s²) = s√2. That face diagonal and one vertical edge form a right-angled triangle whose hypotenuse is the space diagonal, so it is √((s√2)² + s²) = √(3s²) = s√3.
How long is the diagonal of a cube with side 10?
The space diagonal is 17.32050807568877 units, because 10 multiplied by the square root of three gives that value. The face diagonal is 14.142135623730951 units. The same cube has a surface area of 600.0 square units and a volume of 1000.0 cubic units.
Is the space diagonal related to a sphere around the cube?
Yes. A sphere passing through all eight corners of the cube has a diameter equal to the space diagonal, so its radius is half of s√3. The sphere touching the centres of the six faces has a diameter equal to the side length itself. Both facts follow from the cube's symmetry.
Does this formula work for a rectangular box?
Not directly. A cube has one edge length, while a rectangular box has three. For a box with edges l, w and h the space diagonal is √(l² + w² + h²). Setting all three lengths equal to s reduces that expression to s√3, which is exactly the cube case.
Is the volume of a cube bigger than its surface area?
The two are measured in different units, so a direct comparison is not meaningful. Numerically, volume s³ overtakes surface area 6s² once the side exceeds 6; at exactly s = 6 both numbers are 216. Below that side the surface area number is larger, and above it the volume number is larger.
References
- [1], Cube — https://en.wikipedia.org/wiki/Cube
- [2], Pythagorean theorem — https://en.wikipedia.org/wiki/Pythagorean_theorem
- [3], Space diagonal — https://en.wikipedia.org/wiki/Space_diagonal
