Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
A rectangular prism (also called a cuboid or a box) is fully described by just three numbers — its length, width, and height — from which volume, total surface area, and the space diagonal all follow directly. This is one of the most practically useful 3D shape calculators there is: shipping boxes, rooms, shelving units, aquariums, and storage containers are all rectangular prisms, and knowing the volume (for capacity), surface area (for materials like paint, wrapping, or cardboard), and diagonal (for checking if something long will fit inside) covers most everyday sizing questions.
How it works
Enter length (l), width (w), and height (h). Volume is simply the product of all three dimensions, V = lwh. Surface area sums the areas of all six rectangular faces — there are three pairs of matching opposite faces (top/bottom = lw each, front/back = lh each, left/right = wh each) — giving A = 2(lw+lh+wh). The space diagonal, running corner-to-corner through the box's interior, comes from applying the Pythagorean theorem twice: first finding the diagonal across the base, then combining that with the height, giving d = √(l²+w²+h²).
- Enter length.
- Enter width.
- Enter height.
- Click Calculate to see your results.
Examples
l=5, w=4, h=3
V = 5×4×3 = 60. A = 2(5×4+5×3+4×3) = 2(20+15+12) = 2(47) = 94. d = √(25+16+9) = √50 ≈ 7.07.
l=10, w=10, h=2 (a shallow, wide box)
V = 10×10×2 = 200. A = 2(100+20+20) = 280. d = √(100+100+4) = √204 ≈ 14.28.
Common mistakes to avoid
- Swapping length/width/height values, which doesn't change volume or diagonal but can cause confusion about which faces the surface-area terms represent.
- Forgetting the factor of 2 in the surface area formula (computing only half the actual surface area).
- Using the space diagonal formula for just the base diagonal (forgetting the height term) by mistake.