A shoebox, a brick, a book, a fish tank and a room all share the same shape: a box with six flat rectangular faces. In maths that shape is called a rectangular prism, and working out how much space it holds — its rectangular prism volume — takes exactly one multiplication. The Volume Calculator gives the answer in seconds, but the method is simple by hand, and once you know it you can work out how many litres a tank holds or how much air is in a room.
This article works through the method step by step, with three worked examples — a moving box, a fish tank and a room — then the cube as a special case and the common mistakes.
What is a rectangular prism?
A rectangular prism is a shape with six faces, and every face is a rectangle. Opposite faces are identical: the front matches the back, the left side matches the right, and the top matches the bottom. It has 12 edges and 8 corners, every one a right angle.
A shoebox, a brick, a book and a room are all rectangular prisms — anything described by three straight measurements, length, width and height, is one.
A cube is a rectangular prism too, just a very regular one: all six faces are squares and all twelve edges are the same length. That matters, because the cube needs only one measurement where a general prism needs three.
The formula: length × width × height
The volume of a rectangular prism is its length times its width times its height:
V = l × w × h
Measure the three edges that meet at one corner and multiply them together. That is the whole formula. A prism measuring 2 × 3 × 4 has volume 2 × 3 × 4 = 24 cubic units: 2 × 3 is 6, and 6 × 4 is 24.
It does not matter which side you call the length, width or height — multiplication gives the same answer in any order. What matters is three edges, one from each direction, all in the same unit.
Why multiplying three lengths gives cubic units
Picture the 2 × 3 × 4 prism filled with tiny 1-unit cubes, each 1 cubic unit in volume, so counting them counts the volume. The bottom layer is 2 cubes long and 3 wide, so it holds 2 × 3 = 6 cubes. The prism is 4 units high, so there are 4 layers — 6 cubes each, 6 × 4 = 24 cubes in total. That is the volume: 24 cubic units.
That is why a volume answer is never just a number. The three multiplications stack three directions of length, and the unit follows them: centimetres × centimetres × centimetres gives cubic centimetres (cm³), metres give cubic metres (m³). The little ³ records that three lengths were multiplied. A volume of 24 cm³ and a length of 24 cm are different things.
Two conversions make the examples easy to picture: 1,000 cm³ is exactly 1 litre — a 10 cm cube holds 1 litre of water — and 1 m³ is 1,000 litres.
Three worked examples
Example 1 — a moving box, 60 × 40 × 40 cm. Multiply: 60 × 40 = 2,400, then 2,400 × 40 = 96,000 cm³. That is 96,000 ÷ 1,000 = 96 litres — roughly a large suitcase.
Example 2 — a fish tank, 60 × 30 × 40 cm. Multiply length × width × height: 60 × 30 = 1,800, then 1,800 × 40 = 72,000 cm³. Divide by 1,000: 72,000 ÷ 1,000 = 72 litres of water to fill it. In practice you fill it short of the top, so the water you pour in is a few litres less.
Example 3 — a room, 4 m × 3.5 m × 2.5 m. The same formula works in metres: 4 × 3.5 = 14, then 14 × 2.5 = 35 m³ — the volume of air in the room, or 35,000 litres. It is the number a heating or air-conditioning installer wants.
The pattern in all three is the same: measure three sides, multiply, and convert the units only at the end if you need litres
The cube as a special case
A cube is a rectangular prism in which all three sides are equal, so the formula V = l × w × h collapses into one measurement multiplied by itself three times: V = s³, where s is the side length. A cube with side 4 has volume 4 × 4 × 4 = 64 cubic units, and a cube with side 5 has volume 5 × 5 × 5 = 125 cubic units.
Volume grows fast: side 5 gives 125 against side 4’s 64, and doubling the side to 8 gives 512 — eight times bigger, because 2 × 2 × 2 = 8.
So if you ever face a cube, do not hunt for three measurements — one side is enough: measure one edge and cube it. The Volume Calculator has a cube mode that does exactly this, but by hand it is one multiplication done twice.
Common mistakes
- Adding the sides instead of multiplying them. For a 2 × 3 × 4 prism, 2 + 3 + 4 = 9 — but the volume is 24. Adding gives the sum of three edges, a length, not a volume, and it is always far too small. If your answer looks too small, you probably added.
- Mixing units. A prism 2 m long, 30 cm wide and 40 cm high cannot go into the formula as 2 × 30 × 40 = 2,400 — that mixes metres and centimetres. Convert first: 2 m is 200 cm, so the volume is 200 × 30 × 40 = 240,000 cm³, which is 0.24 m³. Make all three the same unit before you multiply.
- Forgetting the answer is in cubic units. “24” on its own is not a volume — 24 cm³ is. Writing the unit catches the adding mistake above: an answer in plain centimetres means you added, or multiplied only once, and a dimension is still missing.
- Confusing volume with surface area. Volume is the space inside, in cubic units; surface area is the skin outside, in square units. A cube with side 4 has volume 4 × 4 × 4 = 64 cm³, but its surface area is six faces of 4 × 4 = 16 cm² each — 6 × 16 = 96 cm². Volume is how much a box holds; surface area is how much cardboard or paint covers it.
- Measuring the outside of a container. For a fish tank or a storage box, the volume that matters is the inside space. Measuring the outside includes the wall thickness, which on a small tank can add several litres that are not really there. Measure the interior directly, or subtract the wall thickness first.
Related tools
For the exact volume of any box, the Volume Calculator works out the rectangular prism, cube, cylinder, cone, sphere and square pyramid — pick the shape, enter the measurements, and it shows the volume and the working. It is free, runs entirely in your browser, and needs no sign-in. For all of ToolZana’s free tools, start at the ToolZana home page.
The short version
A rectangular prism is a box with six rectangular faces; its volume is length × width × height — three measurements in the same unit, multiplied, in cubic units. A 2 × 3 × 4 prism holds 24 cubic units; a 60 × 40 × 40 cm moving box holds 96 litres; a 60 × 30 × 40 cm fish tank holds 72 litres; a 4 × 3.5 × 2.5 m room holds 35 m³ of air. A cube is the special case where all sides are equal, so its volume is the side cubed — side 4 gives 64, side 5 gives 125, side 10 cm gives 1,000 cm³, 1 litre. Multiply, never add; keep the units the same; answer in cubic units. For any other measurements, the Volume Calculator gives the exact answer in seconds.
Frequently Asked Questions
What is a rectangular prism in simple terms?
A rectangular prism is a box shape with six flat faces, every one a rectangle. Opposite faces are identical, it has 12 edges and 8 corners, and every corner is a right angle. A shoebox, a brick, a book and a room are all rectangular prisms. A cube is a special kind in which all six faces are squares and every edge is the same length.
What is the formula for the volume of a rectangular prism?
The formula is V = l × w × h: multiply the length, width and height together. Measure the three edges that meet at one corner, all in the same unit, and multiply: a prism measuring 2 × 3 × 4 has volume 2 × 3 × 4 = 24 cubic units. The order does not matter — 4 × 2 × 3 gives the same 24.
Why is volume measured in cubic units?
Because volume comes from multiplying three lengths, and each length carries its unit with it: centimetres × centimetres × centimetres gives cubic centimetres (cm³). Picture filling the shape with tiny 1-unit cubes: a 2 × 3 × 4 prism holds 6 cubes per layer across 4 layers — 24 cubes of 1 cubic unit each.
How do you find the volume of a rectangular prism with fractions or decimals?
Exactly the same way — multiply the three sides, decimals and fractions included. A prism measuring 2.5 × 4 × 3 cm has volume 2.5 × 4 = 10, then 10 × 3 = 30 cm³. For a fraction, use its decimal form (½ is 0.5, ¾ is 0.75): a prism of ½ × 2 × 3 has volume ½ × 2 × 3 = 3 cubic units. Keep full numbers while you work and round only at the end.
How do you work out the volume of a room?
Measure the length, width and height — wall to wall and floor to ceiling — all in the same unit, then multiply them. A room 4 m long, 3.5 m wide and 2.5 m high has volume 4 × 3.5 × 2.5 = 35 m³, which is 35,000 litres of air. That volume is what heating and air-conditioning installers use: two rooms with the same floor area but different ceiling heights need different amounts of heating.
Is a cube a rectangular prism?
Yes — a cube is a rectangular prism in which all three sides are equal, so all six faces are squares instead of rectangles. So the cube’s formula is simpler: instead of length × width × height, you cube the one side length, V = s³. A cube with side 4 has volume 4 × 4 × 4 = 64 cubic units, and a cube with side 5 has volume 5 × 5 × 5 = 125.
How do you convert cubic centimetres to litres?
Divide by 1,000, because 1 litre is exactly 1,000 cm³. A fish tank of 60 × 30 × 40 cm has volume 72,000 cm³, which is 72,000 ÷ 1,000 = 72 litres, and a moving box of 60 × 40 × 40 cm is 96,000 cm³, or 96 litres. Going the other way, multiply litres by 1,000. The same rule works in cubic metres — 1 m³ is 1,000 litres — so a room of 35 m³ holds 35,000 litres of air.
What happens if the three measurements use different units?
The answer comes out wrong, so convert everything to one unit before you multiply. A prism 2 m long, 30 cm wide and 40 cm high is not 2 × 30 × 40 = 2,400 — that mixes metres and centimetres. Convert first: 2 m is 200 cm, so the volume is 200 × 30 × 40 = 240,000 cm³, which is 0.24 m³ — the unconverted answer is off by a factor of 100.
Can I find the volume from the surface area?
No — the surface area alone does not determine the volume: two boxes can have the same surface area and different volumes. A long, thin box and a nearly cubical box can be wrapped in the same amount of cardboard yet hold very different amounts. You need the three side lengths: multiply them for volume, or add the six face areas for surface area. A cube with side 4 shows the difference plainly — volume 64 cm³, surface area 96 cm².
What is the fastest way to check my answer?
Use the free Volume Calculator. Pick the rectangular prism shape, enter the length, width and height, and it shows the volume with the formula and your numbers substituted in, so you can compare it against your own working line by line. It runs entirely in your browser, handles decimals, and needs no sign-in — handy before you order a tank, book a van, or cut materials to size.