ThisCalculator

Everyday

Rectangular Prism Volume Formula & Calculator

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

This calculator works out the volume of a rectangular prism (also called a cuboid or a box) from its length, width, and height. Enter the three dimensions in any consistent unit – centimeters, meters, inches, feet – and you get the volume in cubic units (cm³, m³, in³, ft³). The calculation is simply length × width × height.

Formula

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

V = l × w × h

Where:

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

The order of multiplication does not matter – you can multiply length by height first, then by width. The result is always the same.

Why It Works

A rectangular prism is a three-dimensional shape with six rectangular faces, and opposite faces are identical. Think of it as a stack of identical flat layers. If you know the area of the base (length × width), then the volume is simply that base area multiplied by the height. This is the same logic behind the formula for any prism: volume = base area × height. For a rectangular base, the base area is l × w, so the volume is l × w × h.

This is also why the units work out to cubic units. When you multiply centimeters by centimeters by centimeters, you get cubic centimeters (cm³). If you mix units – say, length in meters and width in centimeters – the result is meaningless until you convert everything to the same unit.

Worked Example

Using the default values from the calculator: length = 10 cm, width = 5 cm, height = 4 cm.

Step 1: Write down the formula.

V = l × w × h

Step 2: Substitute the numbers.

V = 10 × 5 × 4

Step 3: Multiply.

10 × 5 = 50, then 50 × 4 = 200

So the volume is 200 cm³. The calculator displays 200.00 cm³, which matches.

When to Use This Calculation

You need the volume of a rectangular prism any time you are filling, emptying, or comparing the capacity of a box-shaped object. Common real-world situations include:

  • Finding how much water an aquarium holds (in liters or gallons).
  • Calculating the volume of a shipping box to estimate freight costs.
  • Working out how much concrete is needed for a rectangular slab.
  • Determining the capacity of a storage container or a swimming pool.
  • Calculating the volume of a room for heating or cooling estimates.

In all these cases, as long as the object is a true rectangular prism (all angles 90°, opposite faces equal), the formula applies exactly.

Common Mistakes and How to Avoid Them

The most frequent error is mixing units. For example, if you measure length in meters, width in centimeters, and height in millimeters, you cannot multiply them directly. Convert all dimensions to the same unit first. If you want the volume in cubic meters, convert everything to meters. If you want cubic centimeters, convert everything to centimeters.

Another common mistake is confusing volume with surface area. Surface area is the total area of all six faces, measured in square units. Volume is the space inside, measured in cubic units. They are completely different quantities.

Rounding too early can also cause errors, especially when dimensions are decimals. Keep full precision during the multiplication, then round only the final answer to the number of decimal places you need.

Units and Conversions

Volume is always in cubic units. If you measure in inches, the volume is in cubic inches (in³). If you measure in feet, it is cubic feet (ft³). For metric, centimeters give cm³ and meters give m³.

Sometimes you need the volume in liters or gallons. Useful conversions:

  • 1 liter = 1,000 cm³
  • 1 m³ = 1,000 liters
  • 1 US gallon ≈ 3.785 liters
  • 1 cubic foot ≈ 7.48 US gallons

For example, an aquarium that is 60 cm long, 30 cm wide, and 40 cm high has a volume of 60 × 30 × 40 = 72,000 cm³, which is 72 liters. To get US gallons, divide by 3.785: about 19 gallons.

Limitations and Extensions

This formula works only for rectangular prisms – shapes with six rectangular faces and right angles. For other shapes, you need different formulas:

  • Cylinder: V = π × r² × h (where r is the radius of the circular base)
  • Sphere: V = (4/3) × π × r³
  • Cone: V = (1/3) × π × r² × h
  • Irregular shapes: Use water displacement or numerical integration.

Also, the formula assumes the prism is solid and the dimensions are the internal dimensions if you are measuring capacity. For a container with thick walls, the external dimensions give the external volume, not the actual capacity. Measure the inside for true holding volume.

Frequently Asked Questions

What is the difference between a rectangular prism and a cuboid?

They are the same thing. A cuboid is a box-shaped object with six rectangular faces. A rectangular prism is the more general geometric term, but in everyday use, both refer to the same shape.

Can I use this formula for a cube?

Yes. A cube is a special rectangular prism where all three dimensions are equal. If the side length is s, then the volume is s × s × s = s³. You can use the same calculator by entering the same number for length, width, and height.

How do I find the volume if I only know the surface area?

You cannot uniquely determine the volume from surface area alone. Different combinations of length, width, and height can give the same surface area but different volumes. You need at least two dimensions, or one dimension plus the surface area, to solve for the third.

What if my box is not exactly rectangular?

If the shape has slanted sides or rounded corners, the rectangular prism formula will give an approximation, not an exact volume. For a more accurate result, use a formula that matches the actual shape, or measure the volume by water displacement.

Why is the volume in cubic units?

Volume measures three-dimensional space. When you multiply three lengths together, each with a unit like meters, you get cubic meters – the unit for volume. This is analogous to area, which is in square units because it is the product of two lengths.

Related

Formula used
in l | Length | cm | 10 | 0
in w | Width | cm | 5 | 0
in h | Height | cm | 4 | 0
out V | Volume | cm³ | 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.