The Pythagorean theorem tells us how to compute the length of the hypotenuse of a right triangle in terms of its legs. The 3-dimensional analogue of this problem is to determine the distance between two opposite corners of a rectangular prism. Such a line segment is called a space diagonal and we show that its length can be computed as $\sqrt{a^2+b^2+c^2}$.