ThisCalculator

Everyday

Volume of a Rectangular Prism: Formula & Examples

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 works out 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, along with the formula and a step-by-step example so you can check your own work.

Formula

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

V = l × w × h

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

All three dimensions must be in the same unit before multiplying. If they are not, convert first. The result is always in cubic units because you are multiplying three linear measurements.

Worked Example

Using the calculator defaults: length = 5 m, width = 3 m, height = 2 m.

  1. Write the formula: V = l × w × h
  2. Substitute the values: V = 5 × 3 × 2
  3. Multiply length and width: 5 × 3 = 15
  4. Multiply by height: 15 × 2 = 30

The volume is 30 cubic meters (30 m³). That matches the calculator output rounded to two decimals.

What a Rectangular Prism Is

A rectangular prism is a three-dimensional shape with six rectangular faces, twelve edges, and eight vertices. Every face meets its neighbors at right angles. Common examples include shipping boxes, bricks, aquariums, rooms, and storage containers. When all three dimensions are equal, it becomes a cube, which is a special case where V = side³.

The formula works for any rectangular prism regardless of orientation. You can label any face as the base; the volume stays the same. This is because multiplication is commutative — the order of length, width, and height does not matter.

When to Use This Formula

You need the volume of a rectangular prism whenever you want to know how much space it occupies or how much it can hold. Common situations include:

  • Filling a box with packing material or soil
  • Calculating water volume for an aquarium (1 m³ = 1000 liters)
  • Estimating concrete needed for a rectangular slab
  • Working out the capacity of a shipping container
  • Finding the volume of a room for heating or cooling calculations

For a container with walls, the interior volume is what matters. Measure the inside dimensions, not the outside. If you need the volume of the material itself (like the plastic of a container), subtract the inner volume from the outer volume.

Common Mistakes and How to Avoid Them

The most frequent error is mixing units. If length is in feet and width is in inches, the answer is wrong. Convert everything to the same unit first. For example, 2 ft = 24 in, so a prism 2 ft × 12 in × 6 in should be computed as 24 × 12 × 6 = 1728 in³, not 2 × 12 × 6.

Another common mistake is forgetting to cube the unit. Volume is always in cubic units (m³, ft³, cm³). If you get an answer in square units, you likely multiplied only two dimensions.

Rounding too early can also cause errors. If you convert measurements with decimals, keep extra digits until the final step. For example, 3.5 ft × 2.25 ft × 1.1 ft = 8.6625 ft³. Rounding 3.5 to 4 would give 9.9 ft³, a significant difference.

How to Read the Result

The volume tells you the total space inside the prism. For a box with no lid, the volume still includes the full interior space. For liquids, you can convert cubic units to liters or gallons:

  • 1 m³ = 1000 liters
  • 1 cm³ = 1 milliliter
  • 1 ft³ ≈ 7.48 US gallons
  • 1 in³ ≈ 16.39 milliliters

If you are filling a rectangular tank, the volume gives the maximum capacity. The actual amount you can pour in is slightly less if the tank has a rim or internal fittings. For practical purposes, measure the inside dimensions and account for any objects placed inside.

Limits of the Formula

This formula applies only to prisms with rectangular faces and right angles. It does not work for cylinders, spheres, cones, or irregular shapes. For a triangular prism, you would use the area of the triangular base times the height. For a trapezoidal prism, you would use the trapezoid area times the height.

The formula also assumes the prism is solid and the dimensions are straight-line measurements. If the shape is slightly warped or has curved edges, the volume will be approximate. For very large objects like buildings, minor measurement errors are unavoidable, so the result is an estimate, not an exact value.

Frequently Asked Questions

What if the prism is not a perfect rectangle?

If the faces are not rectangles or the angles are not 90°, the shape is not a rectangular prism. Use a different formula based on the actual shape, such as the prism volume formula (base area × height) for any prism with parallel bases.

Can I use this for a cube?

Yes. A cube is a rectangular prism where length = width = height. The formula becomes V = side × side × side, or side³.

How do I find the volume 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 two dimensions or one dimension plus the surface area to solve for the others.

What units should I use?

Use any consistent linear unit: meters, centimeters, feet, inches, etc. The volume will be in that unit cubed. For example, if you measure in feet, the volume is in cubic feet. If you need liters or gallons, convert after computing the volume.

Why is the volume in cubic units?

Because you are multiplying three linear measurements. Each dimension is a length, and multiplying three lengths gives a cube of that length unit. This is consistent with the idea that volume counts how many unit cubes fit inside the shape.

Does the order of length, width, height matter?

No. Multiplication is commutative, so 5 × 3 × 2 gives the same result as 3 × 2 × 5. Just make sure you have three perpendicular dimensions of the prism.

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.