The length of the internal diagonal of a cube can be calculated using the Pythagorean theorem. Through two steps, we can find a formula for the diagonal of cubes. The first step requires us to calculate the diagonal of one of the faces of the cube using the lengths of the sides. In the second step, we use the diagonal of a face and one of the sides to find the final formula for the internal diagonal of a cube.

Here, we will look at these steps in detail. We will derive the formula for the diagonal of a cube and use it to solve some problems.

## Formula to find the diagonal of a cube

There are two diagonals of a cube, the internal diagonal of the cube and the diagonal of a face. In the following image, we can see that both are different. The internal diagonal starts at one vertex and extends to the opposite vertex. The diagonal of a face begins at one vertex and ends at another vertex so that it is completely on one face.

To calculate the diagonal of a face of the cube, we have to use the Pythagorean theorem once. However, to calculate the internal diagonal, we need to use the Pythagorean theorem twice. So, we do this in two steps:

**Step 1:** We calculate the diagonal of a face. All the faces of a cube are square, so we have the following:

To find this distance, we have to use the Pythagorean theorem. If we use *c* to represent the diagonal, we have the following:

Therefore, we have found a formula for the diagonal of the face.

** Step 2:** To find an expression for the internal diagonal, we have to use another right triangle. We use the diagonal of a face as the base of the triangle, one side of the cube as the height of the triangle, and the internal diagonal as the hypotenuse:

We have to use the Pythagorean theorem again to find the length of the diagonal represented by *d*, so we have:

We have found the formula for the internal diagonal of a cube.

## Diagonal of a cube – Examples with answers

The following cube diagonals examples can be used to practice using the formula derived above. It is recommended that you try to solve the problems yourself before looking at the solution.

**EXAMPLE 1**

What is the diagonal of a cube that has sides of length 5 m?

##### Solution

We can use the diagonal formula with . Therefore, we have:

The diagonal measures 8.66 m.

**EXAMPLE 2**

If a cube has sides with a length of 6 m, what is its diagonal?

##### Solution

We use the value in the diagonal formula. Therefore, we have:

The diagonal has a length of 10.4 m.

Start now: Explore our additional Mathematics resources

**EXAMPLE 3**

A cube has sides that are 21 cm long. What is its diagonal?

##### Solution

We have the length , so we use this value in the diagonal formula:

The diagonal measures 36.37 cm.

**EXAMPLE 4**

If the diagonal of a cube is 10 m, what is the length of its sides?

##### Solution

In this case, we have the length of the diagonal and we want to find the length of the sides, so we use and solve for *a*:

The sides are 5.77 m long.

**EXAMPLE 5**

What is the length of the sides of a cube that has a diagonal of 20 m?

##### Solution

We use the length of the diagonal and solve for *a*:

The sides are 11.55 m long.

## Diagonal of a cube – Practice problems

Practice using the cube diagonal formula to solve the following problems. Select an answer and check it to see if you got the correct answer.

## See also

Interested in learning more about cubes? Take a look at these pages:

### Learn mathematics with our additional resources in different topics

**LEARN MORE**