Rectangular Prism Volume: Formula & Calculator
- Surface area
- m²
- Result
- Length
- 5 m
- You entered
- Width
- 3 m
- You entered
This calculator works out 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, along with the surface area, so you can use it for anything from packing a moving box to pouring concrete for a slab.
Formula
The volume of a rectangular prism is the product of its three dimensions:
V = l × w × h
- V – volume (cubic units: m³, cm³, ft³, in³, etc.)
- l – length (same linear unit as width and height)
- w – width
- h – height
All three dimensions must be in the same unit before you multiply. If you measure in meters, the volume comes out in cubic meters; if you measure in feet, it comes out in cubic feet. The surface area formula, shown as a second output, is A = 2(lw + lh + wh).
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³.
So the volume is 30 cubic meters. The surface area is 2 × (5×3 + 5×2 + 3×2) = 2 × (15 + 10 + 6) = 2 × 31 = 62 m².
When to Use This Calculation
Any time you need to know how much space a box-shaped object occupies or how much it can hold, this is the formula. Common uses include:
- Estimating the volume of a shipping carton or storage container.
- Calculating the amount of concrete, soil, or gravel needed to fill a rectangular hole or form.
- Finding the capacity of a rectangular aquarium or water tank (then converting cubic meters to liters or cubic feet to gallons).
- Determining the volume of a room for heating, cooling, or ventilation purposes.
The same formula applies to any shape with six rectangular faces and right angles, whether it’s a shoebox, a brick, or a swimming pool. If the shape has slanted sides or a non-rectangular base, this formula won’t work—you’d need a different approach for prisms with triangular or circular bases.
Common Mistakes and How to Avoid Them
The most frequent error is mixing units. If you measure length in meters but width in centimeters, the result is meaningless. Always convert every dimension to the same unit first. For example, 2 m, 50 cm, and 30 cm should become 200 cm, 50 cm, and 30 cm, or 2 m, 0.5 m, and 0.3 m.
Another mistake is confusing volume with surface area. Volume is the space inside, measured in cubic units; surface area is the total area of all six faces, measured in square units. They are related but not interchangeable.
Rounding too early can also cause errors, especially in multi-step calculations. Keep full precision until the final answer, then round to a sensible number of decimal places.
Finally, remember that a cube is just a special case where length = width = height. The formula still works: V = a³, where a is the edge length.
Practical Tips for Measuring
For a real box, measure the inside dimensions if you want the capacity (what it can hold), and the outside dimensions if you want the space it occupies. The difference is the wall thickness, which can be significant for coolers or insulated shipping containers.
When measuring a large object like a room or a concrete slab, use a laser measure or a stiff tape measure. Measure at several points—walls and floors are often not perfectly straight—and use the average if the variation is small. For critical applications, always add a small margin (e.g., 5–10%) to account for irregularities, spillage, or settling.
For liquids, remember that 1 cubic meter = 1000 liters, and 1 cubic foot ≈ 7.48 US gallons. So a tank that is 2 m × 1 m × 1.5 m holds 3 m³ = 3000 liters.
Limits of the Formula
The formula V = l × w × h assumes the object is a perfect rectangular prism with flat, parallel faces and 90° angles. Real-world objects rarely are. A cardboard box bulges slightly, a concrete form might bow, and a room’s walls are never perfectly square. For most everyday purposes, the error is negligible, but for engineering or scientific work, you may need more precise measurement techniques or a more complex volume calculation (e.g., using integration for irregular shapes).
Also, the formula gives the nominal volume. If you’re filling a container with granular material like sand or grain, the actual amount you can pour in will be less due to void spaces between particles. Similarly, if you’re filling with liquid, you must account for the fact that the container may not be filled to the very top.
Frequently Asked Questions
How do I find the volume if I only know the surface area?
You can’t. There are infinitely many rectangular prisms with the same surface area but different volumes. For example, a 1×1×10 prism has surface area 42, and a 2×3×3 prism also has surface area 42, but their volumes are 10 and 18 respectively. You need at least two dimensions, or one dimension plus the surface area, to solve for the others.
What if the prism isn’t a perfect rectangle?
If the base is a rectangle but the sides are slanted (like a parallelepiped), the volume is base area × height, where height is the perpendicular distance between the bases, not the slant length. If the base is a triangle, circle, or other shape, use the appropriate prism volume formula: V = base area × height.
How do I convert cubic meters to liters or gallons?
1 cubic meter = 1000 liters. For US gallons, 1 cubic meter ≈ 264.17 gallons. For imperial gallons, ≈ 219.97. So multiply the volume in cubic meters by 1000 to get liters, or by 264.17 to get US gallons.
Can I use this formula for a swimming pool?
Yes, if the pool has a uniform depth and rectangular sides. Most pools have a shallow end and a deep end, so you’d need to calculate the volume in sections or use an average depth. For a rectangular pool with a constant slope, the average depth is (shallow depth + deep depth) / 2, then multiply by length and width.
What is the difference between volume and capacity?
Volume is the amount of space an object occupies, measured in cubic units. Capacity is the amount of substance (usually liquid) a container can hold, often measured in liters, gallons, or milliliters. They are mathematically the same for a hollow container, but capacity is usually given in units that are convenient for liquids.
Why does the surface area formula have a factor of 2?
Because a rectangular prism has three pairs of identical opposite faces. The area of the front and back is l×h each, the left and right sides are w×h each, and the top and bottom are l×w each. Adding all six faces gives 2lw + 2lh + 2wh, which is factored as 2(lw + lh + wh).
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 out sa | Surface area | m² | 2 * (l*w + l*h + 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.