Volume of a Rectangular Prism Calculator
Enter the length, width, and height of your rectangular prism (also called a cuboid or box) to calculate its volume, total surface area, lateral surface area, and space diagonal instantly. All results update as you type, and the steps panel shows exactly how each value is worked out.
Formula
Worked example
A box that is 10 cm long, 6 cm wide, and 4 cm tall: Volume = 10 x 6 x 4 = 240 cm³. Total surface area = 2 x (10x6 + 10x4 + 6x4) = 2 x (60 + 40 + 24) = 248 cm². Space diagonal = sqrt(10² + 6² + 4²) = sqrt(100 + 36 + 16) = sqrt(152) ≈ 12.33 cm.
What is a rectangular prism?
A rectangular prism is a three-dimensional solid with six rectangular faces, all right angles, and opposite faces that are identical. It is also called a cuboid or, informally, a box. Every face meets its neighbours at 90 degrees, so the shape is fully described by just three numbers: length, width, and height. A cube is a special case where all three dimensions are equal. Real-world examples include bricks, rooms, refrigerators, shipping containers, and any standard cardboard box.
Volume: how to calculate it
Volume measures the three-dimensional space enclosed by the prism. The formula is simply V = l x w x h, where l is length, w is width, and h is height. All three dimensions must be in the same unit before you multiply; if they are not, convert first. The result is in cubic units: if the sides are in centimetres, the volume is in cubic centimetres (cm³), and 1 cm³ equals exactly 1 millilitre of liquid. For metres, 1 m³ equals 1,000 litres. This makes the formula directly useful for tank capacities, storage planning, and concrete or fill estimates.
Surface area: total, lateral, top, and bottom
The total surface area is the combined area of all six faces: S = 2(lw + lh + wh). It tells you how much material is needed to wrap or coat the outside of the box. The lateral surface area covers only the four side faces and excludes the top and bottom: S_lat = 2(l + w) x h. This is useful when the top and bottom are open (such as a wall surrounding a room). The top and bottom each have area l x w, so together they contribute 2lw to the total. Knowing these breakdowns separately is handy for painting, insulation, tiling, and packaging material estimates.
Space diagonal: the longest internal line
The space diagonal is the straight line connecting two opposite corners of the prism, running through its interior. It is the longest straight object that can fit inside the box. By the three-dimensional extension of the Pythagorean theorem, d = sqrt(l^2 + w^2 + h^2). For example, a 10 cm x 6 cm x 4 cm box has a diagonal of sqrt(100 + 36 + 16) = sqrt(152) ≈ 12.33 cm. This is practically important for checking whether rods, pipes, or tubes fit inside a container, and for display cases or instrument cases where the diagonal clearance determines the maximum item length.
Practical applications
Volume calculations for rectangular prisms appear in many everyday situations. In construction, the volume of a concrete slab or footing is length x width x depth. For aquariums and tanks, multiply the interior dimensions in centimetres and divide by 1,000 to get litres. For shipping, carriers charge by dimensional weight (volume divided by a factor, compared against actual weight) so knowing box volume directly affects freight costs. In cooking, a baking pan is a rectangular prism and its volume tells you whether a recipe will overflow. For storage units or moving trucks, comparing box volumes helps maximise packing efficiency.
Common rectangular prism examples
| Object | Length | Width | Height | Approx. Volume |
|---|---|---|---|---|
| Standard brick | 21.5 cm | 10.2 cm | 6.5 cm | 1,424 cm³ |
| Letter-size paper ream box | 28 cm | 21.6 cm | 5 cm | 3,024 cm³ |
| Shoe box (men's size 10) | 33 cm | 20 cm | 12 cm | 7,920 cm³ |
| Standard carry-on luggage | 56 cm | 36 cm | 23 cm | 46,368 cm³ |
| Refrigerator (medium) | 70 cm | 65 cm | 170 cm | 774,500 cm³ |
| Shipping container (20 ft) | 6.1 m | 2.44 m | 2.59 m | 38.5 m³ |
| Olympic swimming pool | 50 m | 25 m | 2 m | 2,500 m³ |
Approximate dimensions and volumes of everyday box-shaped objects. Use these as reference points for your own calculations.
Frequently asked questions
What is the formula for the volume of a rectangular prism?
Volume = length x width x height (V = l x w x h). All three dimensions must be in the same unit. The result is in cubic units: for example, if l, w, and h are all in centimetres, volume is in cm³. One cm³ equals one millilitre, and one m³ equals 1,000 litres.
How is a rectangular prism different from a cube?
A cube is a special type of rectangular prism where all three dimensions are equal (l = w = h). In a general rectangular prism the three sides can each be different lengths. Every cube is a rectangular prism, but not every rectangular prism is a cube.
What is the difference between total surface area and lateral surface area?
Total surface area is the combined area of all six faces: 2(lw + lh + wh). Lateral surface area covers only the four vertical side faces and excludes the top and bottom: 2(l + w) x h. Use the lateral area when the top and bottom are open or irrelevant, such as calculating the area of walls in a room.
What is the space diagonal of a rectangular prism?
The space diagonal is the straight-line distance between two opposite corners of the prism, passing through the interior. It is calculated as d = sqrt(l^2 + w^2 + h^2). It represents the longest object that can fit inside the box, making it useful for checking clearance when packing rods, tubes, or diagonal items.
How do I convert volume between units?
The easiest approach is to convert all three dimensions to the same unit before multiplying. Common conversions: 1 m = 100 cm, so 1 m³ = 1,000,000 cm³. 1 cm³ = 1 mL and 1,000 cm³ = 1 litre. For imperial: 1 ft = 12 in, so 1 ft³ = 1,728 in³. 1 ft³ ≈ 7.48 US gallons. If your dimensions are already in different units, convert them all to one common unit first, then apply the formula.
How do I find the volume of an irregular box or L-shaped room?
Split the shape into two or more non-overlapping rectangular prisms. Calculate the volume of each piece separately using V = l x w x h, then add the volumes together. The same approach works for L-shapes, U-shapes, and any configuration that can be decomposed into rectangular sections.
What is dimensional weight and how does volume relate to it?
Shipping carriers charge the higher of actual weight or dimensional weight. Dimensional weight is calculated as volume divided by a divisor (commonly 5,000 cm³/kg for international parcels or 139 for US domestic in in³/lb). If your box is large but light, knowing its volume lets you estimate whether the dimensional weight will exceed the actual weight and increase your shipping cost.