ThisCalculator

Everyday

Rectangular Prism Volume Equation & How to Use It

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 finds the volume of a rectangular prism (also called a box or a cuboid) when you enter its length, width, and height. You get the volume in cubic units, plus the surface area and the length of the space diagonal. The equation is simply Volume = length × width × height, and the calculator applies it instantly.

Formula

The volume of a rectangular prism is given by:

V = l × w × h

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

All three dimensions must be in the same unit before multiplying. If you mix meters and centimeters, the result will be meaningless.

Worked Example

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

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

So the volume is 30 cubic meters. The calculator shows 30.00 m³. That matches exactly.

When to Use This Equation

Use the rectangular prism volume equation whenever you need to know how much space a box-shaped object occupies. Common real-world uses include:

  • Finding how much water a rectangular aquarium or pool holds.
  • Calculating the volume of a shipping crate, moving box, or storage container.
  • Estimating the amount of concrete needed for a rectangular slab or footing.
  • Determining the capacity of a rectangular fuel tank or cistern.
  • Working out the volume of a room for heating, cooling, or ventilation calculations.

The formula works for any rectangular prism, as long as all six faces are rectangles and opposite faces are parallel. If the shape has slanted sides or non-rectangular faces, you need a different formula.

How to Read the Result

The volume is always in cubic units. If you entered meters, the volume is in cubic meters (m³); if you entered inches, it’s in cubic inches (in³). One cubic meter is the space inside a cube that is 1 meter on each side.

For practical purposes, you may want to convert the result to a more convenient unit. For example, a volume of 30 m³ equals 30,000 liters (since 1 m³ = 1,000 L). If you’re working in feet, 1 cubic foot is about 7.48 US gallons. The calculator gives the raw cubic volume; you do the conversion separately.

Common Mistakes and How to Avoid Them

  • Mixing units: The most frequent error. Always convert all dimensions to the same unit before multiplying. For instance, 2 m × 50 cm × 1 m is not 100 m³; convert 50 cm to 0.5 m first, then multiply: 2 × 0.5 × 1 = 1 m³.
  • Confusing volume with surface area: Volume is the space inside (cubic units), surface area is the total area of all six faces (square units). The calculator shows both, but they answer different questions.
  • Using the wrong dimension for height: In a prism, the height is the dimension perpendicular to the base. If you rotate the box, the labels change, but the product stays the same because multiplication is commutative.
  • Rounding too early: If you round each dimension before multiplying, you can lose accuracy. Multiply first, then round the final answer.

Limitations of the Formula

The formula V = l × w × h only applies to rectangular prisms – shapes with six rectangular faces and right angles. It does not work for:

  • Cylinders (use V = πr²h).
  • Spheres (use V = 4/3 πr³).
  • Cones (use V = 1/3 πr²h).
  • Irregular shapes (use water displacement or numerical integration).

Also, the formula assumes the prism is solid and filled completely. If you’re calculating the volume of a hollow container, the volume of material is the outer volume minus the inner volume.

Frequently Asked Questions

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

A rectangular prism has two identical rectangular bases and rectangular side faces; it looks like a box. A rectangular pyramid has one rectangular base and four triangular faces that meet at a point. The volume of a rectangular pyramid is (1/3) × base area × height, which is one-third of the prism’s volume with the same base and height.

Does the order of length, width, and height matter?

No. Multiplication is commutative, so l × w × h = w × h × l = h × l × w. You can label any side as length, width, or height as long as you use three perpendicular edges. The volume will be the same.

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. For example, a 1×1×10 prism has surface area 42 and volume 10, while a 2×3×3 prism also has surface area 42 but volume 18. You need at least one dimension or a relationship between dimensions to solve for volume.

What units should I use for volume?

Use cubic units that match the linear units you entered. For metric, common units are cubic centimeters (cm³), liters (1 L = 1000 cm³), and cubic meters (m³). For US customary, common units are cubic inches (in³), cubic feet (ft³), and cubic yards (yd³). One US gallon equals 231 in³, and one cubic foot equals about 7.48 gallons.

Can I use this formula for a cube?

Yes. A cube is a special rectangular prism where length = width = height. The formula becomes V = s³, where s is the side length. For example, a cube with side 4 cm has volume 4 × 4 × 4 = 64 cm³.

How do I calculate the volume in liters from cubic meters?

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.

Related

Formula used
in a | Length | m | 5 | 0
in b | Width | m | 3 | 0
in c | Height | m | 2 | 0
out V | Volume | m³ | a * b * c | 2
out S | Surface area | m² | 2 * (a * b + a * c + b * c) | 2
out d | Space diagonal | m | sqrt(a^2 + b^2 + c^2) | 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.