Mathematics · Formula

Volume of a rectangular prism

The volume of a box with rectangular faces.

Mathematics librarySymbols definedWorked example
Formula
V = lwh

The volume of a box with rectangular faces.

What the symbols mean

  • l — length
  • w — width
  • h — height
  • V — volume

What it means

Volume is the product of the three dimensions. Surface area is 2(lw + lh + wh), which is a common point of confusion.

Worked example

Example

A box 4 m by 3 m by 2 m has volume 24 m³ and surface area 52 m².

Apply it

The live calculator applies this relationship with your own numbers and shows the substituted working.

Open the calculator

Related formulas

These relationships often appear alongside the volume of a rectangular prism in the same problems.

Frequently asked questions

What is the volume of a rectangular prism formula?

The relationship is V = lwh. The volume of a box with rectangular faces.

When should I use the volume of a rectangular prism formula?

Volume is the product of the three dimensions. Surface area is 2(lw + lh + wh), which is a common point of confusion.

How do I avoid unit mistakes?

Write each quantity with its unit before substituting, convert to the units the formula expects, and check that the result's unit matches the quantity you are solving for. Angles must be in radians for calculus-based expressions unless the page says degrees.

Sources and standards

The equation form, symbols and expected units on this page are checked against the reference works below.

How these are used: sources and standards.

Reviewed November 2026 · Educational reference. See the disclaimer and methodology.