Rectangular Prism (Box) Volume Calculator
The workhorse formula: enter length, width and height — in any units, even mixed — and get the volume instantly with V = l × w × h worked out. Boxes, rooms, aquariums, slabs.
- ✓ Mix inches, feet, cm & meters
- ✓ Results in ft³, m³, litres & gallons
- ✓ Formula shown live
— cm³
Enter the values above — the volume updates instantly.
Quick answer: the volume of a box is
V = l × w × h. A 2 ft × 3 ft × 4 ft box holds
24 ft³. Answer units follow your measurement units,
cubed: centimetres in gives cm³ out — and cm³ are millilitres, so a
container measured in cm gives its capacity in mL for free.
The box volume formula, step by step
Worked example: an aquarium 60 cm long, 30 cm wide, 35 cm tall:
- Multiply the first two: 60 × 30 = 1,800 cm² (the base area)
- Multiply by the height: 1,800 × 35 = 63,000 cm³
- Convert if useful: 63,000 cm³ = 63 litres (1,000 cm³ each)
Every prism works this way — a constant cross-section multiplied by a length. For a box the cross-section is the rectangle l × w; for a cylinder it would be the circle π r². That single rule covers most of the solid geometry you meet in daily work.
How to use this calculator
- Measure the three perpendicular dimensions — length, width, height. Order doesn't matter.
- Enter each in its own unit. An 18-inch by 2-foot by 30-cm measurement is a perfectly valid input; conversion happens per field.
- Pick the output unit — cubic feet for construction quotes, litres or gallons for capacity.
- Verify with the formula bar, which substitutes your numbers into l × w × h.
Where box volume shows up in real life
Ordering concrete by the yard
A patio slab is a box lying flat: a 10 ft × 12 ft slab poured 4 inches (0.333 ft) thick holds 10 × 12 × 0.333 = 40 ft³, which is 40 ÷ 27 ≈ 1.48 cubic yards. Suppliers expect a 5–10% waste margin on top of the calculated number.
Room volume for heating and air
A 4 m × 5 m room with a 2.7 m ceiling holds 54 m³ of air. Ventilation rules quote air changes per hour, so the room's volume — not its floor area — decides the fan size. High ceilings punish floor-area guesses.
Shipping boxes and volumetric weight
Carriers bill on whichever is greater: actual weight or dimensional weight derived from the box volume. A 60 × 40 × 40 cm carton occupies 96,000 cm³ = 0.096 m³ — enough for couriers to charge as if it weighed 16 kg, whatever the scale says.
Common mistakes & pro tips
- Dividing by 9 instead of 27. Converting ft³ to yd³? Divide by 27. Nine converts square feet to square yards — a different job.
- Outside dimensions for capacity. Capacity comes from the inside cavity. Wall thickness is subtracted twice per dimension.
- Mixed units fed straight into the formula. Inches times feet times centimetres answers a different question. Convert first — or use the per-field unit selectors above.
- Pro tip: litres hide in centimetres. Measure any container in cm; the cm³ answer divided by 1,000 is litres with no further conversion, because 1 mL = 1 cm³ exactly.
Frequently asked questions
How do I calculate the volume of a box?
Multiply length × width × height. A box 2 ft × 3 ft × 4 ft holds 24 cubic feet. Keep all three measurements in the same unit — mixed units must be converted first, which this calculator does per field automatically.
How many cubic feet are in a cubic yard?
Twenty-seven. A cubic yard is 3 × 3 × 3 feet. The most common estimating error in construction is dividing by 9 instead of 27 — nine is the number of square feet in a square yard, a different thing entirely.
How do I convert a box volume to litres or gallons?
Compute in centimetres and divide cm³ by 1,000 for litres, or compute in cubic inches and divide by 231 for US gallons. A 40 × 30 × 20 cm box holds 24,000 cm³ = 24 litres. Or just pick the output unit above and let the calculator convert.
Which dimension is which — does the order matter?
No. Multiplication is commutative, so l × w × h = h × l × w. Assign the names however you like; just measure three perpendicular directions. For containers, use the inside dimensions when you care about capacity.
What is the difference between a box and a cube?
A cube has all edges equal, so one measurement determines everything (V = a³). A rectangular prism has three independent dimensions, so all three must be measured (V = l × w × h). Every cube is a box, but not every box is a cube.
How do I find a missing dimension from the volume?
Divide the volume by the product of the other two. A box that must hold 60 ft³ with a 4 ft × 5 ft footprint needs a height of 60 ÷ 20 = 3 ft.
Why is my tank's listed capacity smaller than the box volume I calculated?
Nameplate capacities are nominal. Manufacturers round, leave headspace the vessel is never meant to use, and internal walls or fittings displace volume. Your inside measurements plus this calculator are usually a few percent below the label — that difference is real.