Rectangular Prism Volume Formula Calculator
- Surface area
- m²
- Result
- Length
- 5 m
- You entered
- Width
- 3 m
- You entered
This calculator computes the volume of a rectangular prism (also called a cuboid or rectangular box) from its length, width, and height. You enter the three dimensions in any consistent unit, and it returns the volume in cubic units, along with the surface area for reference.
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 (linear unit: m, cm, ft, in, etc.)
- w = width (same linear unit as length)
- h = height (same linear unit as length)
All three dimensions must use the same unit. If you mix meters and centimeters, the result will be wrong. The volume unit is the cube of the linear unit: if you measure in meters, volume is cubic meters; if you measure in feet, volume is cubic feet.
Worked Example
Using the calculator defaults: 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. The calculator also shows the surface area: 2 × (5×3 + 5×2 + 3×2) = 2 × (15 + 10 + 6) = 2 × 31 = 62 m².
When to Use This Calculator
Use this tool whenever you need the capacity or space inside a rectangular box. Common situations include:
- Estimating how much soil, sand, or concrete fills a rectangular planter, raised bed, or form.
- Finding the volume of a shipping box or storage container to compare with carrier limits or shelf space.
- Calculating the water volume of a rectangular aquarium (1 m³ = 1000 liters).
- Determining the amount of material (e.g., foam, insulation) needed to fill a rectangular cavity.
The formula only works for shapes with six rectangular faces and right angles. If the shape is a cube (all sides equal), it is a special case of a rectangular prism, and the formula still works.
How to Read the Result
The volume tells you how many unit cubes fit inside the prism. For example, 30 m³ means 30 cubes of 1 m × 1 m × 1 m. When you need a real-world quantity, convert cubic units:
- 1 m³ = 1000 liters
- 1 cm³ = 1 milliliter
- 1 ft³ ≈ 7.48 US gallons
- 1 in³ ≈ 16.39 mL
If you are filling a container with water, remember that the volume of the container is the maximum capacity; you may not want to fill it to the brim.
Common Mistakes and How to Avoid Them
- Unit mismatch: The most frequent error. Convert all dimensions to the same unit before multiplying. For example, if length is 2 m and width is 50 cm, convert 50 cm to 0.5 m first.
- Confusing volume with surface area: Volume is the space inside (cubic units), surface area is the total area of all six faces (square units). They are different quantities.
- Using the wrong formula for non-rectangular shapes: A cylinder uses πr²h, a triangular prism uses (1/2 × base × height of triangle) × length. This calculator is only for rectangular prisms.
- Rounding too early: If you round intermediate results, the final answer can be off. Keep full precision until the end.
Limitations of the Formula
The formula assumes a perfect rectangular prism with flat faces and straight edges. Real objects may have slight irregularities, rounded corners, or walls with thickness. For a container with walls, the internal dimensions (inside length, inside width, inside height) give the true capacity, not the external dimensions. Also, the formula gives the volume of the solid shape itself; if you are filling it with a material that compacts (like soil) or has voids (like gravel), the actual amount needed may differ.
Frequently Asked Questions
How do I find the volume of a rectangular prism if I only know the surface area?
You cannot determine the volume from surface area alone. Many different rectangular prisms can have the same surface area but different volumes. You need at least one additional constraint (e.g., one dimension, or a ratio between dimensions) to find the volume.
What if my dimensions are in different units?
Convert all dimensions to the same unit before using the formula. For example, if length is 2 m and width is 50 cm, convert 50 cm to 0.5 m. Then volume = 2 × 0.5 × height. If you prefer, convert everything to centimeters: 2 m = 200 cm, so volume = 200 × 50 × height in cm.
Can I use this calculator for a cube?
Yes. A cube is a rectangular prism where all three dimensions are equal. Just enter the same number for length, width, and height. The volume will be side³.
How do I convert cubic meters to liters?
Multiply the volume in cubic meters by 1000. For example, 2.5 m³ × 1000 = 2500 liters. Conversely, divide liters by 1000 to get cubic meters.
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 liquid or substance a container can hold, often measured in liters, gallons, or milliliters. For a rectangular container, capacity is the internal volume, which is the same as the volume of water it can hold (if filled to the brim).
Does the order of length, width, and height matter?
No. Multiplication is commutative, so l × w × h gives the same result regardless of which dimension you call length, width, or height. Just make sure you enter three perpendicular dimensions.
Related
Formula used
in l | Length | m | 5 | 0 in w | Width | m | 3 | 0 in h | Height | m | 2 | 0 out volume | Volume | m³ | l * w * h | 2 out area | 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.