Volume of a Rectangular Based Prism: Formula & Examples
- Base area
- m²
- Result
- Length
- 5 m
- You entered
- Width
- 3 m
- You entered
The volume of a rectangular based prism (also called a rectangular prism or a cuboid) is the amount of space it occupies, calculated by multiplying its length by its width by its height. To use this calculator, enter the length, width, and height in any consistent units (like meters, centimeters, or feet), and you’ll get the volume in cubic units (m³, cm³, ft³) instantly.
Formula
The formula for the volume of a rectangular based prism is:
V = l × w × h
Where:
- V = volume (in cubic units, e.g., cm³, m³, in³)
- l = length of the base (in linear units, e.g., cm, m, in)
- w = width of the base (same linear unit)
- h = height of the prism (same linear unit)
All three dimensions must be in the same unit before multiplying. If you measure in different units (e.g., length in meters, width in centimeters), convert them first.
Worked Example
Using the default values from the calculator above (length = 5 m, width = 3 m, height = 2 m):
- Write the formula: V = l × w × h
- Substitute the values: V = 5 × 3 × 2
- Multiply length × width: 5 × 3 = 15 (this is the base area in m²)
- Multiply by height: 15 × 2 = 30
The volume is 30 cubic meters (m³). This matches the calculator output. Notice that the base area is 15 m², and multiplying by the height gives the volume—this works for any prism: volume = base area × height.
When to Use This Formula
Use this formula whenever you need the volume of a box-shaped object: a shipping carton, a concrete slab, a fish tank, a room, a storage container, or a rectangular swimming pool. It applies to any shape with a rectangular base and vertical sides (a right rectangular prism). If the sides are slanted (an oblique prism), the formula still works if you use the perpendicular height, not the slant height.
This calculation is essential in many practical fields:
- Construction: Estimating concrete, gravel, or soil needed for a rectangular foundation or trench.
- Shipping: Calculating cargo volume to determine shipping costs (often in cubic meters or cubic feet).
- Aquariums: Determining water volume to size filters and heaters.
- HVAC: Calculating room volume to size air conditioners or heaters.
How to Read the Result
The result is in cubic units. For example, if you input centimeters, the volume is in cubic centimeters (cm³). If you input feet, the volume is in cubic feet (ft³). To convert between cubic units, multiply or divide by the conversion factor cubed:
- 1 m³ = 1,000,000 cm³ (100 cm × 100 cm × 100 cm)
- 1 ft³ = 1,728 in³ (12 in × 12 in × 12 in)
- 1 m³ ≈ 35.3147 ft³
- 1 gallon (US) = 231 in³ (so 1 ft³ ≈ 7.48 gallons)
For example, a tank that is 60 cm long, 30 cm wide, and 40 cm high has a volume of 60 × 30 × 40 = 72,000 cm³. That equals 72 liters (since 1 L = 1,000 cm³) or about 19 US gallons.
Common Mistakes and How to Avoid Them
- Mixing units: Multiplying meters by centimeters gives a meaningless result. Always convert to the same unit first.
- Confusing height with slant height: For a slanted prism, use the perpendicular distance between the bases, not the edge length.
- Forgetting to cube the unit: The answer is always in cubic units, not square units. A common error is writing m² instead of m³.
- Using the wrong formula: This formula works only for rectangular bases. For triangular, circular, or other bases, use the appropriate formula (e.g., V = πr²h for a cylinder).
- Rounding too early: If you round intermediate steps, you may get a slightly different final answer. Keep full precision until the end.
Limitations of the Formula
The formula assumes a perfect rectangular prism with flat, parallel faces. Real-world objects may have slight irregularities, but the formula gives a very good approximation for most practical purposes. For objects with non-uniform shapes, you might need more advanced methods like integration or water displacement.
Also, the formula gives the internal volume if you use internal dimensions. For a container with thick walls, the external volume is larger than the internal capacity. For example, a concrete block has an outer volume (for shipping) and an inner volume (for hollow space).
Frequently Asked Questions
How do I find the volume if I only know the base area and height?
Simply multiply the base area by the height: V = base area × height. For a rectangular base, the base area is length × width, so this is the same formula.
What if the prism is not a perfect rectangle but has a rectangular base?
As long as the base is a rectangle and the sides are perpendicular to the base, the formula V = l × w × h still works. If the sides are slanted, use the perpendicular height (the vertical distance from base to top).
Can I use this formula for a cube?
Yes. A cube is a special rectangular prism where length = width = height. So V = side³. For example, a cube with side 3 cm has volume 27 cm³.
How do I convert volume to liters or gallons?
1 liter = 1,000 cm³ = 0.001 m³. 1 US gallon = 3.78541 liters = 231 in³. For example, a 50 cm × 40 cm × 30 cm tank has volume 60,000 cm³ = 60 liters ≈ 15.85 US gallons.
Why do I need to cube the units?
Volume is a three-dimensional measurement. When you multiply three lengths, the unit is raised to the third power (cubed). For example, cm × cm × cm = cm³. This distinguishes volume from area (which is squared).
What is the difference between a rectangular prism and a rectangular pyramid?
A prism has two parallel, identical bases and rectangular side faces. A pyramid has one base and triangular sides meeting at a point. The volume of a rectangular pyramid is one-third of the prism’s volume: V = (1/3) × l × w × h.
Related
Formula used
in l | Length | m | 5 | 0 in w | Width | m | 3 | 0 in h | Height | m | 2 | 0 out vol | Volume | m³ | l * w * h | 2 out area | Base area | m² | l * w | 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.