Formula

Volume of a rectangular prism

Also written: volume of a box · length times width times height · V = lwh · V = Bh

V=l×w×h=BhV = l \times w \times h = Bh

The volume of a box is length times width times height. Equivalently it is the base area times the height, which is the form that works for any prism.

What each part means

l,w,hl, w, h
the three edge lengths, all in the same unit
BB
the area of the base, which for a box is l × w

Volume of a rectangular prism calculator

Enter the three edges of a box to find its volume with V=l×w×h=BhV = l \times w \times h = Bh. The steps cover the floor first, then stack the layers, and the answer is written in cubic units.

The steps below find the volume of a box 6 long, 4 wide and 3 tall, using V=l×w×hV = l \times w \times h. Turn on JavaScript to try your own measurements.

Worked example: l=6,w=4,h=3

The volume is 72 cubic units.

A box 6 by 4 by 3 Shows a box with its length 6 along the front, its height 3 up the left side and its width 4 going back. The three edges out of sight are dashed. l = 6 h = 3 w = 4
A box 6 by 4 by 3

Picture the box

The picture shows a box 6 long, 4 wide and 3 tall, with the length along the front, the height up the side and the width going back.

V=l×w×h=Bh

Cover the floor

The base is l by w, so one layer holds l×w unit cubes. That is the base area B.

B=l×w=6×4=24 square units

Then stack the layers

The box is 3 tall, so there are that many identical layers.

V=B×h=24×3=72 cubic units

The same in one line

V=6×4×3=72 cubic units

Write the units

Three lengths were multiplied, so the answer is in cubic units.

Runs on your device: nothing you type is sent or saved. Want to see why three lengths count cubes? Read the volume lesson, or review the area of a rectangle that forms the base.

When to use it

You need how much fits inside a box, tank or room. The Bh form extends to prisms whose base is a triangle or any other shape.

It counts cubes, in two stages

Cover the floor. A base 66 by 44 holds 2424 unit cubes — that is the rectangle’s area, earning its keep.

Then stack. A box 33 cubes tall holds 33 identical layers of 2424:

24×3=7224 \times 3 = 72

Multiplication counts equal groups, and the layers are equal groups.

Why the units are cubed

Each unit cube is one centimeter in all three directions — one cubic centimeter, written cm³.

MultipliedQuantityUnits
oneperimetercm
twoareacm²
threevolumecm³

The exponent counts the dimensions. If three lengths were multiplied the units carry a 33, and if they do not, a factor was missed.

Bh is the general form

V=BhV = Bh

This is the same product grouped differently — BB is already l×wl \times w for a box. Its advantage is that it keeps working when the base is not a rectangle: a prism with a triangular base has volume BhBh with BB being the triangle’s area.

One formula, any prism.

A cube

V=s3V = s^3

Where “cubed” for a third power comes from: s3s^3 is the volume of a cube with edge ss.

Rearranged

h=Vlwl=Vwhh = \frac{V}{lw} \qquad l = \frac{V}{wh}

Divide by the product of the two dimensions you know.

Volume is not surface area

MeasuresUnits
volumewhat fits insidecm³
surface areathe wrapping outsidecm²

Different questions, different units. And stopping after two dimensions gives the base area, not the volume — the commonest slip here, and the units expose it. See volume of a rectangular prism.

Lessons that teach this

Related