Geometry

Volume of a Rectangular Prism

The volume of a rectangular prism is V=ℓwhV = \ell w h: length times width times height, in cubic units. Equivalently, it is the base area times the height, V=BhV = Bh.

V=ℓ⋅w⋅hV = \ell \cdot w \cdot h

Try it with your numbers

Show every step

The formula is quick to apply, but most lost points come from mixed units, fractional edges and mistaking volume for surface area. The sections below cover each of those, plus the reasoning that lets you rebuild the formula from nothing.

Why does the volume of a rectangular prism use three factors?

Start with the floor of the box. A rectangle ℓ\ell units long and ww units wide holds exactly ℓw\ell w unit squares, which is the idea behind the area of a rectangle. Now cover that floor with unit cubes, one cube per square. That first layer contains ℓw\ell w cubes and stands 11 unit tall.

A box that is hh units tall stacks hh identical layers. So the cube count is (ℓw)⋅h(\ell w) \cdot h. That is all the formula says: area of one layer, times the number of layers.

This is why the unit is cubic. You are counting cubes, and a cube is a length times a length times a length. The same logic explains the volume of a cube as the special case ℓ=w=h=s\ell = w = h = s, giving V=s3V = s^3.

Quick check

A box is 66 cm by 44 cm by 33 cm. How many 11 cm cubes cover the bottom layer, and how many fill the whole box?

How do you find the volume of a rectangular prism with units?

Follow the same three moves every time:

  1. Put all three edges in one unit.
  2. Multiply them: V=ℓ⋅w⋅hV = \ell \cdot w \cdot h.
  3. Write the answer in cubic units.

Worked example 1. A planter is 22 m long, 8080 cm wide and 5050 cm tall. Find its volume in cm3\text{cm}^3, then in m3\text{m}^3 and liters.

Convert first: 2 m=200 cm2 \text{ m} = 200 \text{ cm}. Then

V=200⋅80⋅50=16,000⋅50=800,000 cm3.V = 200 \cdot 80 \cdot 50 = 16{,}000 \cdot 50 = 800{,}000 \text{ cm}^3.

To check in meters, use 80 cm=0.880 \text{ cm} = 0.8 m and 50 cm=0.550 \text{ cm} = 0.5 m:

V=2⋅0.8⋅0.5=0.8 m3.V = 2 \cdot 0.8 \cdot 0.5 = 0.8 \text{ m}^3.

Since 1000 cm3=11000 \text{ cm}^3 = 1 L, the planter holds 800800 L.

The trap is converting the answer with a length factor. One meter is 100100 cm, but one cubic meter is 1003=1,000,000100^3 = 1{,}000{,}000 cubic centimeters, because all three edges stretch. This table is worth keeping nearby.

Conversion Value
1 ft31 \text{ ft}^3 1728 in31728 \text{ in}^3
1 yd31 \text{ yd}^3 27 ft327 \text{ ft}^3
1 m31 \text{ m}^3 1,000,000 cm31{,}000{,}000 \text{ cm}^3
11 L 1000 cm31000 \text{ cm}^3

Volume of a rectangular prism with fractions and decimals

Fractional edges work exactly like whole ones. The picture just changes: with edges measured in halves, you fill the box with cubes of side 12\frac{1}{2}, and each one holds 18\frac{1}{8} of a unit cube. A prism that is 32\frac{3}{2} by 22 by 52\frac{5}{2} holds 3⋅4⋅5=603 \cdot 4 \cdot 5 = 60 of those small cubes, so its volume is 60⋅18=15260 \cdot \frac{1}{8} = \frac{15}{2}. Multiplying the edges directly gives 32⋅2⋅52=152\frac{3}{2} \cdot 2 \cdot \frac{5}{2} = \frac{15}{2} as well.

Worked example 2. A crate is 1121\frac{1}{2} ft by 2142\frac{1}{4} ft by 43\frac{4}{3} ft. Convert the mixed numbers first:

V=32⋅94⋅43.V = \frac{3}{2} \cdot \frac{9}{4} \cdot \frac{4}{3}.

Cancel before multiplying. The 44 in the numerator cancels the 44 in the denominator, and the 33 cancels the 33:

V=92=4.5 ft3.V = \frac{9}{2} = 4.5 \text{ ft}^3.

As a check, 32⋅43=2\frac{3}{2} \cdot \frac{4}{3} = 2 and 2⋅94=922 \cdot \frac{9}{4} = \frac{9}{2}. Same result by a different route.

Cancel across the whole product

In a product of fractions, any numerator can cancel with any denominator. Scan for pairs like 32⋅43\frac{3}{2} \cdot \frac{4}{3} before you multiply, and the numbers stay small.

With decimals, multiply as if they were whole numbers, then place the decimal point so the answer has as many decimal places as all the factors combined. For 2.5⋅4⋅1.22.5 \cdot 4 \cdot 1.2, there are two decimal places in total, and 25⋅4⋅12=120025 \cdot 4 \cdot 12 = 1200 becomes 12.0012.00.

How do you find a missing length from the volume?

Because V=ℓwhV = \ell w h, any one edge is the volume divided by the other two. For example, h=Vℓwh = \dfrac{V}{\ell w}. If the base area BB is known, this is simply h=VBh = \dfrac{V}{B}. Division undoes the layers: the volume divided by the layer size tells you how many layers there are.

The harder version hides the edge inside an algebra relationship. This is where negative answers appear, and where they must be thrown out.

Worked example 3. A box has a volume of 360 in3360 \text{ in}^3 and a width of 66 in. Its length is 44 in more than its height. Find the length and height.

Let the height be hh, so the length is h+4h + 4. Then

6⋅h⋅(h+4)=360.6 \cdot h \cdot (h + 4) = 360.

Divide both sides by 66 and expand:

h2+4h=60⇒h2+4h−60=0.h^2 + 4h = 60 \quad \Rightarrow \quad h^2 + 4h - 60 = 0.

Factor: (h+10)(h−6)=0(h + 10)(h - 6) = 0, so h=−10h = -10 or h=6h = 6. A height cannot be negative, so h=6h = 6 in and the length is 1010 in. Check: 10⋅6⋅6=36010 \cdot 6 \cdot 6 = 360. If the quadratic does not factor, the quadratic formula practice problems cover the other route.

What happens to volume when you scale the dimensions?

Doubling every edge multiplies length by 2, area by 4 and volume of a box by 8
Scaling every edge by 2 scales length by 2, area by 4 and volume by 2 × 2 × 2 = 8.

Multiply every edge by a scale factor kk and the new volume is

Vnew=(kℓ)(kw)(kh)=k3 ℓwh.V_{\text{new}} = (k\ell)(kw)(kh) = k^3 \, \ell w h.

So doubling every edge gives 23=82^3 = 8 times the volume, not 22 times. Tripling gives 2727 times. This is the three-dimensional side of a dilation, where lengths scale by kk, areas by k2k^2 and volumes by k3k^3.

Worked example 4. A box is 2×3×42 \times 3 \times 4, so V=24V = 24. Scale every edge by 1.51.5. The new edges are 33, 4.54.5 and 66, and

Vnew=3⋅4.5⋅6=81.V_{\text{new}} = 3 \cdot 4.5 \cdot 6 = 81.

The factor is 1.53=3.3751.5^3 = 3.375, and 24⋅3.375=8124 \cdot 3.375 = 81. Both routes agree.

Scaling only one edge is different: double just the height and the volume only doubles. The cube law applies only when all three edges change by the same factor. This is why a “double size” shipping box holds eight times as much, and why a small increase in each edge makes a surprisingly big jump in capacity.

Try this: A box is 10×10×1010 \times 10 \times 10 cm. Without multiplying out, predict the volume if each edge grows by 10%10\% (so k=1.1k = 1.1). Then compute 1.13⋅10001.1^3 \cdot 1000 and see how far a 10%10\% stretch pushes the volume.

Quick check

A prism has a volume of 50 cm350 \text{ cm}^3. Every edge is tripled. What is the new volume?

Volume vs surface area of a rectangular prism

Bar chart comparing surface area of boxes that all hold volume 24 cubic units
A 1 × 1 × 24 box needs surface area 98, a 2 × 3 × 4 box needs 52, and a cube needs about 50.

Volume measures what fits inside. Surface area measures the material on the outside. They use different units (cm3\text{cm}^3 versus cm2\text{cm}^2) and different formulas, and the surface area of a rectangular prism is 2(ℓw+ℓh+wh)2(\ell w + \ell h + w h). If a problem mentions paint, wrapping paper or fabric, it wants surface area. If it mentions filling, capacity or space, it wants volume.

The two quantities are not tied together. Two boxes can hold the same amount and need very different amounts of cardboard. Compare 1×1×241 \times 1 \times 24 with 2×3×42 \times 3 \times 4. Both have V=24V = 24, but

SA1=2(1+24+24)=98,SA2=2(6+8+12)=52.SA_1 = 2(1 + 24 + 24) = 98, \qquad SA_2 = 2(6 + 8 + 12) = 52.

For a fixed volume, the cube uses the least surface. Here the cube edge would be 243≈2.88\sqrt[3]{24} \approx 2.88, giving a surface area of about 6⋅8.32≈49.96 \cdot 8.32 \approx 49.9. That is the reason packaging designers favor boxes close to cubes, and why animals curl up to lose less heat.

How do you find the diagonal of a rectangular prism?

The space diagonal runs from one corner through the inside of the box to the opposite corner. It comes from applying the Pythagorean theorem twice. First, the diagonal of the base is ℓ2+w2\sqrt{\ell^2 + w^2}. That diagonal and the height hh form a right triangle with the space diagonal as hypotenuse, so

d=ℓ2+w2+h2.d = \sqrt{\ell^2 + w^2 + h^2}.

Worked example 5. Find the space diagonal of a 3×4×123 \times 4 \times 12 box. The base diagonal is 9+16=5\sqrt{9 + 16} = 5. Then

d=52+122=169=13.d = \sqrt{5^2 + 12^2} = \sqrt{169} = 13.

The numbers 3,4,12,133, 4, 12, 13 form a “Pythagorean quadruple”, a cousin of the Pythagorean triples. A straight rod of length 1313 fits in this box exactly corner to corner, and nothing longer will fit, even though no edge exceeds 1212.

Cube shortcut

For a cube with edge ss, the formula collapses to d=3s2=s3d = \sqrt{3s^2} = s\sqrt{3}. A cube with s=5s = 5 has a space diagonal of about 8.668.66.

When does the rectangular prism formula stop working?

The formula V=ℓwhV = \ell w h needs a box with right angles. For a slanted (oblique) prism, the idea survives in the form V=BhV = Bh, but hh must be the perpendicular height, not the slanted edge. Picture a stack of index cards pushed sideways: the stack leans, but it holds the same cards, so the volume is unchanged. Using the slant length is the classic error here.

Other solids borrow the same structure. A cylinder is a base times a height, so the volume of a cylinder is V=πr2hV = \pi r^2 h. A pyramid with the same base and height as a prism holds exactly one third as much, which is the volume of a pyramid formula, V=13BhV = \frac{1}{3}Bh.

For L-shaped or stepped solids, split the shape into boxes and add, or subtract a missing box from a larger one. And if the edges are given as vectors, the volume of the slanted box they span is the absolute value of a 3×3 determinant. When the edges happen to lie along the axes, that determinant reduces to ℓwh\ell w h.

Quick check

A pyramid has the same rectangular base and height as a prism whose volume is 90 cm390 \text{ cm}^3. What is the pyramid's volume?

How do you check a volume answer and use it in real life?

Three quick checks catch nearly every mistake:

  • Round each edge and multiply mentally. For 9.8⋅5.1⋅2.99.8 \cdot 5.1 \cdot 2.9, estimate 10⋅5⋅3=15010 \cdot 5 \cdot 3 = 150.
  • Confirm the unit is cubic, and that every edge shared one unit before multiplying.
  • Divide your answer by two of the edges. You should get the third.

Worked example 6. A concrete slab is 1010 ft by 1212 ft and 44 in thick. How many cubic yards are needed? Convert the thickness: 4 in=134 \text{ in} = \frac{1}{3} ft. Then

V=10⋅12⋅13=40 ft3.V = 10 \cdot 12 \cdot \frac{1}{3} = 40 \text{ ft}^3.

Since 1 yd3=27 ft31 \text{ yd}^3 = 27 \text{ ft}^3, the slab needs 4027≈1.48\dfrac{40}{27} \approx 1.48 cubic yards. In practice, a builder would order 1.51.5 yd³ so there is a little extra.

The same steps size a moving box, an aquarium, a shipping container or a swimming pool. In every case, convert the units, multiply three lengths, and read the answer in cubic units.

Practice problems

0 of 5 solved

  1. Find the volume of a rectangular prism that is 77 in long, 55 in wide and 33 in tall.

  2. A shipping crate measures 2.52.5 m by 44 m by 1.21.2 m. Find its volume.

  3. A rectangular prism has a base area of 48 cm248 \text{ cm}^2 and a volume of 336 cm3336 \text{ cm}^3. Find its height.

  4. A fish tank is 5050 cm long, 4040 cm wide and 3030 cm tall. How many liters of water fill it completely?

  5. A box has a square base, a volume of 432 in3432 \text{ in}^3 and a height of 1212 in. Find its space diagonal.

Common questions

What is the formula for the volume of a rectangular prism?

The formula is V=ℓwhV = \ell w h, where ℓ\ell is length, ww is width and hh is height. It is the same as base area times height, V=BhV = Bh, because the base area of a rectangle is ℓw\ell w.

What units does the volume of a rectangular prism use?

Cubic units, such as cm3\text{cm}^3, in3\text{in}^3 or ft3\text{ft}^3. Every edge must be in the same unit before you multiply, otherwise the product means nothing.

Does it matter which side is the length, width or height?

No. Multiplication can be done in any order, so 2⋅3⋅42 \cdot 3 \cdot 4 equals 4⋅2⋅34 \cdot 2 \cdot 3. Labeling the sides differently never changes the volume.

How do you find the volume of a rectangular prism from its base area?

Multiply the base area by the height: V=BhV = Bh. If the base area is 20 m220 \text{ m}^2 and the height is 33 m, the volume is 60 m360 \text{ m}^3.

How do you convert the volume of a prism to liters?

Find the volume in cubic centimeters, then divide by 10001000, since 11 L equals 1000 cm31000 \text{ cm}^3. A volume of 2500 cm32500 \text{ cm}^3 is 2.52.5 L.

Is a cuboid the same as a rectangular prism?

Yes. Cuboid, rectangular box and right rectangular prism all name the same solid, with six rectangular faces meeting at right angles. If all three edges are equal, it is a cube.

Up next