3D Pythagorean Theorem - Formula and Examples

The 3D Pythagorean theorem is an extension of the 2D Pythagorean theorem that can be used to solve problems in three dimensions such as cubes, and rectangular pyramids. In three dimensions, the general formula of the 3D Pythagorean theorem is $latex {{c}^2}={{x}^2}+{{y}^2}+{{z}^2}$, where x, y, and z are the corresponding lengths of the three dimensions.

In this lesson, we will examine at how the Pythagorean theorem works in three dimensions. We will also look at the proofs and examples with solutions.

GEOMETRY
3D Pythagorean theorem formula

Relevant for...

Exploring examples with answers of the 3D Pythagorean theorem.

See examples

GEOMETRY
3D Pythagorean theorem formula

Relevant for...

Exploring examples with answers of the 3D Pythagorean theorem.

See examples

3D Pythagorean Theorem formula and proof

The Pythagorean theorem is a formula that can be used to calculate the lengths of a right triangle’s three sides. The Pythagorean theorem tells us that, the square of the hypotenuse is equal to the sum of the squares of the legs.

Remember that the hypotenuse is the triangle’s side opposite the right angle (90°), and the legs are the triangle’s other two sides. The following triangle will be used to demonstrate this:

diagram of a right triangle with sides

In this triangle, the formula of the Pythagorean theorem is:

$latex {{c}^2}={{a}^2}+{{b}^2}$

This formula holds true in 2D, how about in 3D?

Imagine a cube and we want to find the length of the diagonal, that is, the distance from the bottom-most left front corner to the top-most right back corner (A to B):

We can draw a right triangle on the bottom face of the prism. Then, we assign c, x, and y as three sides of the right triangle.

In the diagram above, we can identify a right triangle, where we can use the Pythagorean theorem to find c.

$latex {{c}^2}={{a}^2}+{{b}^2}$

$latex {{c}^2}={{x}^2}+{{y}^2}$

$latex  {c}= \sqrt{{{x}^2}+{{y}^2}}$

Let h be the distance we wanted to know. To find the length of h, we can use the value of c as one of the legs of a right triangle, which has the sides, c, h, and z.

Here is the solution below:

$latex h^2={{c}^2}+{{z}^2}$

$latex {{h}^2}=(\sqrt{x^2+y^2})^2+{{z}^2}$

$latex  {{h}^2}={{x}^2}+{{y}^2}+{{z}^2}$

We can now derive a general formula using the final result of the solution.

The formula of the 3D Pythagorean Theorem is:

$latex {{c}^2}={{x}^2}+{{y}^2}+{{z}^2}$

3D Pythagorean theorem – Examples with answers

We can solve different 3D Pythagorean theorem situations using the formula shown above. There is a thorough solution for each of the following examples. Try to solve the problems yourself before looking at the solution.

EXAMPLE 1

Find the length of c in the cube below.

Solution

EXAMPLE 2

Find the length of h in the prism below.

prism-example -2
Solution

EXAMPLE 3

Find the length of h in this prism below.

Solution

EXAMPLE 4

Find the length of the h, in the diagram below.

cube-example -4
Solution

EXAMPLE 5

Find the length of x of the cube in the diagram below.

cube-3dexample -5
Solution

EXAMPLE 6

Find the length of the diagonal of the cube that has the three sides with a length of 3 mm.

Solution

3D Pythagorean theorem – Practice problems

Test your knowledge on this topic by solving the 3D Pythagorean theorem questions below. To answer the exercises, use the 3D Pythagorean theorem formula outlined above. If you are having trouble with these exercises, look over the examples that have been solved above.

Find the length of the diagonal of a cube that has 1 m side lengths.

Choose an answer






Find the length of the diagonal of a cube that has 2 m side lengths.

Choose an answer






Find the length of the diagonal of a rectangular prism with a coresponding length of $latex 2~\sqrt{2}$ m, width of $latex 2~\sqrt{2}$ m and height of $latex 2~\sqrt{2}$ m?

Choose an answer






Find the length of the diagonal of a rectangular prism with a length of 4 m, width of 1 m and height of $latex 2~\sqrt{2}$ m?

Choose an answer






Find the side length of the cube that has a diagonal with a length of $latex \sqrt{3}$ m.

Choose an answer






See also

Interested in learning more about the Pythagorean theorem? Take a look at these pages:

Learn mathematics with our additional resources in different topics

LEARN MORE