What Is the Diagonal of a Cube?
A cube has two kinds of diagonals. The face diagonal runs corner to corner across a single square face, while the space diagonal (also called the body diagonal) passes through the interior of the cube, connecting two opposite corners. This calculator finds both from a single input: the edge length a.
How to Use This Calculator
Enter the edge length of your cube — the length of any one of its sides. The tool instantly returns the space diagonal as the main result and lists the face diagonal alongside it. Use any unit you like (cm, inches, metres); the diagonals come back in the same unit.
The Formula Explained
The face diagonal comes from the Pythagorean theorem applied to one square face: $$d = \sqrt{a^2 + a^2} = a\sqrt{2}$$ The space diagonal extends this into three dimensions by combining a face diagonal with the perpendicular edge: $$d = \sqrt{a^2 + a^2 + a^2} = a\sqrt{3}$$ So for any cube, the space diagonal is always \(\sqrt{3} \approx 1.732\) times the edge, and the face diagonal is \(\sqrt{2} \approx 1.414\) times the edge.
Worked Example
Suppose a cube has an edge length of 5. The face diagonal is $$5 \times \sqrt{2} = 5 \times 1.41421 \approx 7.0711$$ The space diagonal is $$5 \times \sqrt{3} = 5 \times 1.73205 \approx 8.6603$$ Both share the same units as the original edge.
Cube Diagonals for Common Edge Lengths
The table lists the face diagonal \(a\sqrt{2}\) and the space diagonal \(a\sqrt{3}\) for several edge lengths \(a\). Results are rounded to 4 decimal places and are in the same unit as the edge (cm, m, in, and so on).
| Edge length (a) | Face diagonal (a√2) | Space diagonal (a√3) |
|---|---|---|
| 1 | 1.4142 | 1.7321 |
| 2 | 2.8284 | 3.4641 |
| 3 | 4.2426 | 5.1962 |
| 5 | 7.0711 | 8.6603 |
| 10 | 14.1421 | 17.3205 |
| 20 | 28.2843 | 34.6410 |
Note: the ratios are constant for every cube. The face diagonal is always about 1.4142 times the edge, and the space diagonal is always about 1.7321 times the edge. Doubling the edge doubles both diagonals.
Key Constants: √2 and √3
| Constant | Value | Applies to |
|---|---|---|
| √2 | ≈ 1.41421356 | Face diagonal: the diagonal of one square face, \(d_{face}=a\sqrt{2}\) |
| √3 | ≈ 1.73205081 | Space diagonal: corner to opposite corner through the interior, \(d_{space}=a\sqrt{3}\) |
Both come from the Pythagorean theorem. The face diagonal is \(\sqrt{a^2+a^2}=a\sqrt{2}\). The space diagonal is \(\sqrt{a^2+a^2+a^2}=a\sqrt{3}\).
Inverse factors: edge from a diagonal
- From the face diagonal: \(a = d_{face}/\sqrt{2} \approx 0.70711 \cdot d_{face}\)
- From the space diagonal: \(a = d_{space}/\sqrt{3} \approx 0.57735 \cdot d_{space}\)
Both √2 and √3 are irrational numbers. Their decimal expansions never end and never repeat, so every value in the table above is a rounded approximation.
FAQ
Which diagonal is longer? The space diagonal is always longer than the face diagonal, since \(\sqrt{3} > \sqrt{2}\).
Can I find the edge from a diagonal? Yes — divide a known space diagonal by \(\sqrt{3}\), or a face diagonal by \(\sqrt{2}\), to recover the edge length.
Does this work for any unit? Yes. The formulas are dimension-independent, so the output is in whatever unit you entered the edge.