Rectangular Prism Volume Formula Proof
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator computes the volume of a rectangular prism (also called a cuboid or a box) when you enter its length, width, and height. You get the volume in cubic units, and the formula is V = l × w × h. The proof of this formula is straightforward: it counts the number of unit cubes that fit inside the prism, layer by layer.
Formula
The volume of a rectangular prism is the product of its three dimensions:
V = l × w × h
- V = volume (cubic units)
- l = length (same linear unit)
- w = width (same linear unit)
- h = height (same linear unit)
All three dimensions must be in the same unit before multiplying. If you measure in centimeters, the volume is in cubic centimeters (cm³); in meters, it is cubic meters (m³); in inches, cubic inches (in³); and so on.
Worked Example
Using the calculator defaults: length = 5 cm, width = 3 cm, height = 4 cm.
- Write the formula: V = l × w × h
- Substitute the values: V = 5 × 3 × 4
- Multiply length × width: 5 × 3 = 15
- Multiply by height: 15 × 4 = 60
The volume is 60 cm³. The calculator shows 60.00 cm³, matching this result.
Why the Formula Works: A Visual Proof
The proof relies on counting unit cubes. Imagine a unit cube (1 unit on each side) – it occupies 1 cubic unit of space. A rectangular prism with dimensions l, w, and h can be packed with exactly l × w × h such cubes.
First, consider the base: a rectangle of length l and width w. You can place l cubes along the length and w cubes along the width, giving l × w cubes in one layer. Then stack layers on top of each other until you reach the height h. Since each layer is identical and there are h layers, the total number of cubes is (l × w) × h.
This is the same as multiplying all three dimensions. The order of multiplication does not matter – you could also count w × h cubes in a side layer and then multiply by l, giving the same result. This is why the formula is commutative: V = lwh = whl = hlw.
When to Use This Formula
Use the rectangular prism volume formula whenever you need the space inside a box-shaped object with flat, rectangular faces and right angles. Common examples include:
- Packaging: volume of a shipping box or a cereal box
- Construction: concrete needed for a rectangular slab or footing
- Aquariums: water volume in a rectangular tank (then convert to liters or gallons)
- Moving: estimating how much fits in a moving truck or storage unit
- Shipping: calculating dimensional weight for freight (volume matters for pricing)
The formula applies to any prism with a rectangular base, even if it is tilted – as long as the faces are rectangles and the prism is straight (right prism), the volume is still base area × height.
Common Mistakes and How to Avoid Them
Unit mix-ups are the most frequent error. If you multiply centimeters by meters, you get a meaningless number. Always convert all dimensions to the same unit first. For example, if a box is 2 m long, 50 cm wide, and 30 cm high, convert 50 cm to 0.5 m and 30 cm to 0.3 m before multiplying: 2 × 0.5 × 0.3 = 0.3 m³.
Another mistake is confusing volume with surface area. Surface area is the total area of all six faces, measured in square units, while volume is the interior space, measured in cubic units. They are different quantities.
Rounding too early can also cause errors. If you have a measurement like 3.7 cm, keep the full value in your calculation and round only the final answer. The calculator here rounds to two decimal places, which is fine for most purposes.
Units: Metric and US Customary
Volume units follow the cube of the linear unit. In the metric system, common units are cubic millimeters (mm³), cubic centimeters (cm³), cubic meters (m³), and liters (1 L = 1000 cm³). In the US customary system, common units are cubic inches (in³), cubic feet (ft³), and cubic yards (yd³).
For practical conversions:
- 1 m³ = 1,000,000 cm³ = 1000 L
- 1 ft³ = 1728 in³ (12³)
- 1 yd³ = 27 ft³ (3³)
- 1 gallon (US) = 231 in³
If you need volume in gallons, compute in cubic inches first, then divide by 231. For liters, compute in cubic centimeters and divide by 1000.
Limitations of the Formula
This formula works only for rectangular prisms – shapes where all faces are rectangles and all angles are 90°. It does not apply to:
- Cylinders (use πr²h)
- Spheres (use 4/3πr³)
- Cones (use 1/3πr²h)
- Irregular shapes (use water displacement or integration)
Also, the formula assumes the prism is solid (filled completely). If the object has hollow parts, you must subtract the volume of the hollow regions. For example, a rectangular box with walls of thickness t has an interior volume of (l – 2t)(w – 2t)(h – 2t), not lwh.
Frequently Asked Questions
What is the formula for the volume of a rectangular prism?
The volume is length × width × height, or V = lwh. All dimensions must be in the same unit, and the result is in cubic units.
How do I find the height if I know the volume and the base area?
Rearrange the formula: h = V / (l × w). For example, if volume is 60 cm³ and the base area (l × w) is 15 cm², then height = 60 / 15 = 4 cm.
Does the order of length, width, and height matter?
No. Multiplication is commutative, so l × w × h equals w × h × l, etc. Just be consistent with units.
What if the prism is not a perfect rectangle? Does the formula still work?
If the base is a rectangle but the sides are slanted (an oblique prism), the volume is still base area × height, where height is the perpendicular distance between the bases. But if the faces are not rectangles, you need a different formula.
How do I convert cubic centimeters to liters?
Divide by 1000. Since 1 liter = 1000 cm³, a volume of 60 cm³ is 0.06 liters.
Can I use this formula for a cube?
Yes. A cube is a rectangular prism where all sides are equal, so V = a³, which is the same as l × w × h with l = w = h = a.
Related
Formula used
in l | Length | cm | 5 | 0 in w | Width | cm | 3 | 0 in h | Height | cm | 4 | 0 out V | Volume | cm³ | l * w * h | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.