Skip to content
Other

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.

Your details

The longest horizontal dimension of the box.
cm
The shorter horizontal dimension of the box.
cm
The vertical dimension of the box.
cm
Volume
240cm³

Length x Width x Height

Total Surface Area248cm²
Lateral Surface Area128cm²
Top / Bottom Face Area60cm²
Space Diagonal12.3288cm
0360720023
Scale factor applied to length
Value
Scale factor applied to lengthVolumeTotal Surface Area
0.256098
0.5120148
0.75180198
1240248
1.25300298
1.5360348
1.75420398
2480448
2.5600548
3720648
  • Volume
  • Total Surface Area

Volume: 240.0000 cm³

  • Your box holds 240.0000 cm³ of space, and its six faces cover 248.0000 cm² in total.
  • The volume-to-surface-area ratio is 0.968 cm, which indicates how efficiently the shape encloses space (a cube maximises this ratio for a given surface area).
  • The space diagonal is 12.3288 cm. This is the longest straight line that fits inside the box, useful for checking whether long items such as pipes or rods will fit.

Next stepTo find how many boxes fit inside a larger space, divide the container volume by this box volume. For liquid capacity, 1 cm³ equals 1 mL and 1 m³ equals 1,000 litres.

Formula

V=l×w×h,Stotal=2(lw+lh+wh),Slat=2(l+w)h,d=l2+w2+h2V = l \times w \times h, \quad S_{\text{total}} = 2(lw + lh + wh), \quad S_{\text{lat}} = 2(l+w)h, \quad d = \sqrt{l^2 + w^2 + h^2}

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

ObjectLengthWidthHeightApprox. Volume
Standard brick21.5 cm10.2 cm6.5 cm1,424 cm³
Letter-size paper ream box28 cm21.6 cm5 cm3,024 cm³
Shoe box (men's size 10)33 cm20 cm12 cm7,920 cm³
Standard carry-on luggage56 cm36 cm23 cm46,368 cm³
Refrigerator (medium)70 cm65 cm170 cm774,500 cm³
Shipping container (20 ft)6.1 m2.44 m2.59 m38.5 m³
Olympic swimming pool50 m25 m2 m2,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.

Sources

Written by Grace Mbeki, MSc Data Scientist & Educator · Nairobi, Kenya

Turning everyday numbers into clear, actionable answers for the decisions that matter most.

Search 3,500+ calculators

Loading search…