Rectangular Prism Volume Calculator
The workhorse volume formula: length times width times height. Enter the three dimensions in any units, and get the volume of the box in litres, cubic metres, cubic feet and gallons with the working shown.
Formula: V = l × w × h
Length × width × height
A rectangular prism - any box, tank, room or brick - is a rectangle extended through a thickness. Its volume is the base area times the height, or written out fully: V = l × w × h. Multiply the three dimensions in any order; the result is the same because multiplication is commutative.
A worked example: a box 8 cm long, 5 cm wide and 4 cm tall holds 8 × 5 × 4 = 160 cm³, or 160 mL. Scale up: a shipping carton 60 × 40 × 30 cm holds 72,000 cm³ = 72 litres = about 2.54 ft³, the figure freight companies charge against. Keep the units consistent - if the dimensions mix centimetres and metres, convert first, or use the per-field unit selectors here, which convert for you.
The formula also runs backwards. If you know the volume and two sides, the third is V divided by their product: a 160 cm³ box with a 40 cm² base must be 4 cm tall. And because each dimension enters linearly, doubling any one side doubles the volume - unlike a sphere or cube, where doubling all sides multiplies volume by eight.
How to use this calculator
- Measure the three dimensions. Length, width and height - which one is which does not affect the result.
- Enter each with its unit. Mixed units such as a width in inches and a length in centimetres convert automatically.
- Read the volume. Litres headline the panel; cm³, m³, ft³, yd³ and US gallons appear in the table.
- Use the formula bar. It shows l × w × h with your numbers substituted, ready for a quote or worksheet.
Box problems and related calculations
Find the missing dimension
Divide the volume by the product of the two known sides: h = V ÷ (l × w). A 240-litre tank with a 60 × 40 cm base must be 240,000 ÷ (60 × 40) = 100 cm tall. This reverse calculation is the everyday way to size aquariums, planters and shelves from a capacity requirement.
Internal vs external dimensions
Stated box and tank capacities use internal measurements. Wall thickness of even a few millimetres shrinks capacity: a “60 × 40 × 30 cm” outer tank with 5 mm walls holds about 59 × 39 × 29 = 66.7 litres, not 72. Always measure inside for capacity and outside for fitting.
Open-top boxes from a sheet
Cut squares of side x from a sheet L × W and fold up the flaps: the tray holds V = (L − 2x)(W − 2x)x. A quick trial of x values finds the deepest fold for a given sheet.
Diagonals and fitting
Whether an object fits through a door depends on the space diagonal: d = √(l² + w² + h²). A box 60 × 40 × 30 cm has a diagonal of about 78.1 cm - longer than any single side, which is how long items often fit into shorter boxes at an angle.
Box capacity quick reference
| Dimensions (cm) | Volume | Litres | US gallons |
|---|---|---|---|
| 20 × 20 × 20 | 8,000 cm³ | 8.0 L | 2.11 gal |
| 40 × 30 × 20 | 24,000 cm³ | 24.0 L | 6.34 gal |
| 60 × 40 × 30 | 72,000 cm³ | 72.0 L | 19.0 gal |
| 100 × 50 × 50 | 250,000 cm³ | 250.0 L | 66.0 gal |
| 120 × 100 × 150 (pallet) | 1,800,000 cm³ | 1,800 L | 475.5 gal |
The last row is a standard EUR pallet load - 1.8 m³, near a tonne of water. Keep it as a benchmark: most household boxes sit between the first and third rows, between 8 and 72 litres.
Where box volume matters
Shipping and freight
Carriers charge by actual or dimensional weight, whichever is greater - dimensional weight is box volume divided by a factor (commonly 5,000 cm³/kg). A 60 × 40 × 30 cm carton has 72,000 cm³, so 14.4 kg dimensional weight even when nearly empty.
Aquariums and tanks
A 60 × 30 × 40 cm aquarium holds 72,000 cm³ = 72 litres before gravel and equipment. Water weighs a kilogram per litre, so the tank, stand and floor must carry 72 kg plus the glass.
Concrete slabs and footings
A slab 4 m × 3 m × 0.1 m needs 1.2 m³ of concrete. Ready-mix is ordered in cubic metres against exactly this product, usually plus 5-10% for uneven subgrade. The same arithmetic sizes sand, gravel and mulch deliveries by the cubic yard.
Common mistakes & pro tips
- Mixed units across dimensions. 60 cm × 40 cm × 1 m is not 2,400 of anything - convert to one unit first, or use the per-field selectors.
- Using outer dimensions for capacity. Wall and panel thickness eat into internal volume; measure inside the box for what it holds.
- Assuming doubling one side doubles volume quadratically. Each dimension is linear: double the height, double the volume. Only doubling all three gives 8×.
- Ignoring packing voids. Real containers fill less than 100% - spheres, tools and odd shapes leave air. Add a fill factor when estimating how much fits.
- Confusing area and volume stages. l × w alone is the base area in units²; only after multiplying by h do you get units³.
Frequently asked questions
What is the formula for the volume of a rectangular prism?
V = l × w × h - the three perpendicular dimensions multiplied together. A 8 × 5 × 4 cm box holds 160 cm³.How do I find the missing dimension of a box?
h = V ÷ (l × w). Keep volume and lengths in compatible units.