Rectangular Prism Volume: Formula & Examples
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 works out the volume of a rectangular prism (also called a cuboid or a box) from its length, width, and height. You enter the three dimensions in any consistent unit (meters, centimeters, feet, etc.), and it returns the volume in cubic units of that same unit. The formula is simply length × width × height, and the worked example below shows exactly how to apply it.
Formula
The volume of a rectangular prism is given by:
V = l × w × h
Where:
- V = volume (cubic units, e.g., m³, cm³, ft³)
- l = length (same linear unit as width and height)
- w = width (same linear unit)
- h = height (same linear unit)
All three dimensions must be in the same unit before multiplying. If they are not, convert them first (e.g., 1 m = 100 cm, 1 ft = 12 in).
Worked Example
Using the default values from the calculator: length = 5 m, width = 3 m, height = 2 m.
- Multiply length by width: 5 × 3 = 15 m² (this is the base area).
- Multiply the base area by height: 15 × 2 = 30 m³.
The volume is 30 cubic meters, which matches the calculator output. Notice that the unit is cubed because you multiplied three linear measurements.
Why This Formula Works
A rectangular prism is a three-dimensional shape with six faces, all of which are rectangles, and opposite faces are identical. You can think of it as stacking identical flat rectangles (the base) one on top of another. If the base has area l × w, and you stack h layers, the total space occupied is (l × w) × h. This is the same logic used for a stack of paper: each sheet is a rectangle, and the stack height times the sheet area gives the total volume.
When to Use Volume of a Rectangular Prism
You use this calculation whenever you need to know how much space a box-shaped object occupies or how much it can hold. Common real-world situations include:
- Finding the capacity of a shipping box or storage container.
- Calculating the volume of a room to size an air conditioner or heater.
- Determining how much concrete is needed for a rectangular slab.
- Working out the volume of a fish tank or aquarium (then converting to liters or gallons).
- Estimating the amount of soil or mulch for a rectangular garden bed.
For a tank, remember that the inside dimensions are what matter for capacity. If the walls are thick, measure the interior, not the exterior.
Common Mistakes and How to Avoid Them
The most frequent error is mixing units. For example, multiplying 2 m × 50 cm × 1 m without converting gives a meaningless number. Always convert all dimensions to the same unit first. A second common mistake is confusing volume with surface area. Volume is the space inside (cubic units), while surface area is the total area of all six faces (square units). For a box with dimensions 5, 3, and 2, the surface area is 2(5×3 + 5×2 + 3×2) = 62 m², which is different from the 30 m³ volume. Also, be careful with rounding: if you round intermediate steps, you may lose precision. Use the full values until the final answer.
Units and Conversions
Volume is always in cubic units. If you measure in meters, the volume is in cubic meters (m³). If you measure in centimeters, the volume is in cubic centimeters (cm³). To convert between common volume units:
- 1 m³ = 1,000,000 cm³ (because 1 m = 100 cm, so 100³ = 1,000,000).
- 1 ft³ = 1,728 in³ (because 12³ = 1,728).
- 1 m³ ≈ 35.3147 ft³.
- 1 liter = 1,000 cm³.
- 1 US gallon ≈ 3,785.41 cm³.
For a quick conversion to liters or gallons, you can multiply the volume in cm³ by 0.001 to get liters, or divide by 3,785.41 to get US gallons. This is handy for aquarium or container capacity.
Limitations of the Formula
This formula only applies to perfect rectangular prisms—shapes where all angles are right angles and opposite faces are parallel. If the object is slightly tapered, has rounded corners, or is irregular, the formula will overestimate or underestimate the true volume. For such shapes, you would need more advanced methods (e.g., integration or water displacement). Also, the formula gives the geometric volume; it does not account for wall thickness. For a hollow container, the usable volume is the interior volume, which may be significantly smaller than the exterior dimensions suggest.
Frequently Asked Questions
What is the difference between a rectangular prism and a cuboid?
They are the same thing. A cuboid is a convex polyhedron with six rectangular faces; a rectangular prism is the same shape. The terms are used interchangeably in mathematics and everyday language.
How do I find the volume if I only know the surface area?
You cannot determine the volume from surface area alone. Different dimensions can give the same surface area but different volumes. For example, a box 1×1×10 has surface area 42 and volume 10, while a box 2×3×3 has surface area 42 and volume 18. You need at least one dimension or a relationship between dimensions.
What if the prism is not sitting on its base?
It doesn’t matter. Volume is independent of orientation. You still multiply the three perpendicular dimensions. Just label them length, width, and height for convenience; the product is the same.
Can I use this formula for a cube?
Yes. A cube is a special rectangular prism where all three dimensions are equal. If each side is s, the volume is s³. You can use the same calculator by entering the same value for length, width, and height.
How do I convert cubic meters to liters?
Multiply the volume in cubic meters by 1,000. Since 1 m³ = 1,000 liters (because 1 m = 100 cm, so 1 m³ = 1,000,000 cm³, and 1,000 cm³ = 1 L). For example, 30 m³ = 30,000 liters.
Why is the volume in cubic units?
Because you multiply three linear measurements. Each linear unit (like meters) gets multiplied three times, so the unit becomes m × m × m = m³. This represents the number of unit cubes that fit inside the shape.
Related
Formula used
in l | Length | m | 5 | 0 in w | Width | m | 3 | 0 in h | Height | m | 2 | 0 out V | Volume | m³ | 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.