You've seen the formula a hundred times: V = l × w × h. But the way it's introduced in most math classes leaves students unsure why it works, when to use it, and what to do when the units don't match. This article covers the whole picture.
What is a rectangular prism?
A rectangular prism is a three-dimensional shape with six rectangular faces, where opposite faces are equal in size. Also called a cuboid or rectangular box.
- Six faces, all rectangles
- Twelve edges, in three groups of four parallel edges
- Eight vertices, each with three edges meeting at right angles
- Opposite faces are congruent
A cube is a special case where all three dimensions are equal. Every cube is a rectangular prism, but not every rectangular prism is a cube.
Deriving the formula
V = l × w × h isn't arbitrary. It comes from how we measure volume.
Imagine a rectangular box with length 5, width 3, and height 4 cm:
- Start with the base. Area = l × w = 5 × 3 = 15 cm². That's the floor.
- Stack layers. Each layer is one unit thick. The box is 4 cm tall, so 4 layers.
- Each layer has volume = base area × 1 unit thick = 15 cm³.
- Total volume = 4 × 15 = 60 cm³.
That's exactly l × w × h = 5 × 3 × 4 = 60. The formula is literally counting how many unit cubes fit inside the box.
The unit problem
Students get tripped up here. If you measure length in inches but width in centimeters, V = l × w × h gives nonsense.
The rule: all three dimensions must be in the same unit before multiplying. The result is in cubic units of that same length.
| If length is in | Volume is in |
|---|---|
| centimeters (cm) | cubic centimeters (cm³) |
| meters (m) | cubic meters (m³) |
| inches (in) | cubic inches (in³) |
| feet (ft) | cubic feet (ft³) |
For mixed units, convert first. For a 2 ft × 50 cm × 18 in box:
- 2 ft = 60.96 cm
- 18 in = 45.72 cm
- V = 60.96 × 50 × 45.72 = 139,374 cm³
Why volume is in cubic units
The "cubic" part reflects the dimensionality:
- One length × one length = an area (square units)
- Two lengths × one length = a volume (cubic units)
This is a consistency rule. If you ever calculate volume and end up with a result in square units, you've made an error.
Worked examples
Example 1: A standard shoebox
Length 30 cm, width 20 cm, height 15 cm.
V = 30 × 20 × 15 = 9,000 cm³
That's also 9 liters (since 1 L = 1,000 cm³).
Example 2: A swimming pool
Length 30 ft, width 15 ft, depth 5 ft.
V = 30 × 15 × 5 = 2,250 ft³
Convert to gallons: 2,250 × 7.48 = 16,830 US gallons.
Example 3: Mixed units
Length 18 inches, width 14 inches, height 10 inches.
V = 18 × 14 × 10 = 2,520 in³
Convert to cubic feet: 2,520 ÷ 1,728 = 1.46 ft³.
Common mistakes
Forgetting to convert units
"2 feet by 50 cm by 18 inches" and you just multiply 2 × 50 × 18 = 1,800 — you've computed nothing meaningful.
Confusing volume with surface area
Surface area is 2(lw + lh + wh), measured in square units. Volume is l × w × h, measured in cubic units.
For a 4 × 3 × 2 box:
- Surface area = 2(12 + 8 + 6) = 52 square units
- Volume = 24 cubic units
Misidentifying the dimensions
"Length, width, and height" are just naming conventions. As long as you have three perpendicular measurements, the volume is the same:
V = 5 × 3 × 4 = 60 V = 4 × 5 × 3 = 60 V = 3 × 4 × 5 = 60
Multiplication is commutative. Order doesn't matter.
Related formulas
Surface area
A = 2(lw + lh + wh)
For a 5 × 3 × 4 prism: 2(15 + 20 + 12) = 94 square units.
Space diagonal
The longest straight line that fits inside the box:
d = √(l² + w² + h²)
For our 5 × 3 × 4 prism: √(25 + 9 + 16) = √50 = 7.07 units.
Face diagonal
d_face = √(side1² + side2²)
For the 5 × 3 face: √(25 + 9) = √34 = 5.83 units.
Volume of a cube
Special case where l = w = h:
V = s³
For a cube with 6 cm sides: V = 6³ = 216 cm³.
Volume beyond rectangular prisms
| Shape | Formula |
|---|---|
| Rectangular prism (cuboid) | l × w × h |
| Cube | s³ |
| Cylinder | π r² h |
| Triangular prism | ½ b × h × length |
| Cone | ⅓ π r² h |
| Sphere | ⁴⁄₃ π r³ |
| Pyramid | ⅓ × base area × h |
Notice the pattern: for any prism (a 3D shape with parallel top and bottom and straight sides), V = base area × height.
The takeaway
V = l × w × h works because volume is, fundamentally, counting how many unit cubes fit inside a box. The most common errors aren't with the formula itself but with the inputs: mixed units, confusing dimensions, or confusing volume with surface area.