Blog
Diagonal of a Rectangular Prism
The space diagonal runs through the interior between opposite corners. It is longer than any single edge and follows d = √(l² + w² + h²).
By Rectangular Prism Calculator

Blog
The space diagonal runs through the interior between opposite corners. It is longer than any single edge and follows d = √(l² + w² + h²).
By Rectangular Prism Calculator

Space diagonal d = √(l² + w² + h²).
Formula
Rectangular Prism Calculator helps you calculate volume, surface area, and the space diagonal from length, width, and height.
The space diagonal runs through the interior between opposite corners. It is longer than any single edge and follows d = √(l² + w² + h²).
Face diagonals lie on one rectangle only; mixing the two types is a frequent source of lost points.
This article defines the space diagonal, compares it to face diagonals, and walks through worked values you can check on the home page.
Build the space diagonal by applying the Pythagorean theorem twice: first along a base diagonal √(l² + w²), then through height to √(c² + h²), which collapses to √(l² + w² + h²).
Engineering sketches sometimes use it for brace or cable length estimates in idealized box frames, though real installations add clearance and offsets.
The diagonal uses all three dimensions. It is not the same as height alone, width alone, or a face diagonal on one side.
Report the result in the same length unit as the edges after the square root.
Squaring edges before the root avoids order mistakes inside the radical. Add the three squares, then take one square root.
If a problem gives a face diagonal and height, you may use the two-step path instead of memorizing the three-term line.
Compare your manual root with the home tool when you want a quick decimal check.
Symbol and unit reminders for all targets appear in rectangular prism formulas; step order for full calculations is in how to calculate a rectangular prism.
Use this order for homework, site checks, packaging quotes, or classroom labs.
Problem: Room model 6 m by 4 m by 2.5 m. Find the space diagonal.
Space diagonal about 7.63 m for the idealized prism model.
Label whether the problem wants a face diagonal or the space diagonal before you substitute.
Keep edge units consistent through squaring and rooting.
The home calculator returns d alongside volume and surface area for the same three inputs.