ThisCalculator

Everyday

Rectangular Prism Volume: Formula & Calculator

Updated · Standard formula, shown below

Volume 30.00 m³
Length
5 m
You entered
Width
3 m
You entered
Height
2 m
You entered

This calculator finds the volume of a rectangular prism (also called a box or cuboid) when you enter its length, width, and height. You get the volume in cubic units (like cubic inches, cubic feet, or cubic meters) instantly, along with the formula and a step-by-step example so you can verify the result yourself.

Formula

The volume of a rectangular prism is calculated by multiplying its three dimensions together:

V = l × w × h

  • V = volume (cubic units, e.g., m³, ft³, cm³)
  • l = length (same linear unit as width and height)
  • w = width
  • h = height

All three dimensions must be in the same unit before multiplying. The result is always in cubic units of that unit.

Worked Example

Using the default values from the calculator: length = 5 m, width = 3 m, height = 2 m.

  1. Multiply length by width: 5 × 3 = 15 m² (this is the base area).
  2. Multiply the base area by the height: 15 × 2 = 30 m³.

The volume is 30 cubic meters (30 m³). This matches the calculator’s output.

Why It Works

A rectangular prism is a three-dimensional shape with six rectangular faces. Imagine stacking unit cubes (each 1×1×1) inside the box. The number of cubes in one layer equals the area of the base (length × width). The height tells you how many such layers fit. So total cubes = base area × height = l × w × h. This is why the formula is simply the product of the three edges.

When to Use This Calculator

You’d use this volume calculation in many everyday situations:

  • Finding the capacity of a shipping box or storage container.
  • Calculating how much concrete, soil, or water fits in a rectangular tank or planter.
  • Estimating the volume of a room (for heating/cooling or acoustics).
  • Determining the size of a moving truck or luggage space.
  • Solving math homework or geometry problems.

Just remember: the shape must have straight, perpendicular edges. If the sides are slanted (like a pyramid or a wedge), this formula won’t work.

Common Mistakes & How to Avoid Them

  • Mixing units: If length is in meters and width in centimeters, convert one first. For example, 2 m = 200 cm. Then multiply all in the same unit.
  • Forgetting cubic units: Volume is always cubic (e.g., cm³, ft³), not square or linear.
  • Using the wrong dimension: For a rectangular prism, all three edges must meet at a corner. Don’t accidentally use the diagonal or a face’s diagonal.
  • Rounding too early: If you’re doing a multi-step calculation, keep full precision until the end, then round the final volume.

Real-World Example: Packing a Box

Suppose you have a box that is 24 inches long, 18 inches wide, and 12 inches high. The volume is:

24 × 18 × 12 = 5,184 in³.

To convert to cubic feet (since there are 1,728 in³ in a ft³), divide by 1,728: 5,184 ÷ 1,728 = 3 ft³. That tells you the box holds 3 cubic feet of items.

Limits of the Formula

This formula only works for perfect rectangular prisms. If the shape has curved sides, irregular angles, or is a different 3D shape (cylinder, sphere, cone), you need a different formula. Also, the volume assumes the interior is empty and uniform; if there are walls or internal structures, the actual usable volume is less.

Frequently Asked Questions

Q: Can I use this calculator for a cube?
A: Yes, a cube is a special rectangular prism where all three sides are equal. Just enter the same value for length, width, and height.

Q: What if I only know the volume and two dimensions?
A: You can rearrange the formula to find the missing side: divide the volume by the product of the two known dimensions. For example, if V = 60 cm³, l = 5 cm, w = 4 cm, then h = 60 ÷ (5×4) = 3 cm.

Q: How do I convert cubic inches to gallons?
A: There are 231 cubic inches in one US gallon. Divide the volume in cubic inches by 231. For metric, 1 liter = 1,000 cm³.

Q: Does the order of multiplication matter?
A: No, multiplication is commutative, so l×w×h is the same as w×h×l. Just make sure you use all three distinct dimensions.

Q: What is the difference between volume and surface area?
A: Volume measures the space inside the shape (cubic units), while surface area measures the total area of all six faces (square units). For a rectangular prism, surface area = 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 vol | 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.