Square Feet to CFT Logo
Square Feet to CFT
Geometry Guides 12 min read

Volume of a Rectangular Prism: Formula and Worked Examples

Find the volume of a rectangular prism using length, width, and height. Learn the formula with clear examples, fractions, missing dimensions, and unit checks.

BT
BigTechies Editorial Team
(Updated: Feb 22, 2025)
Finished natural wood rectangular prism blocks and drafting tools on an architect workbench

Finished natural wood rectangular prism blocks and drafting tools on an architect workbench

The volume of a rectangular prism is found by multiplying its length, width, and height. A prism measuring 9 cm long, 4 cm wide, and 5 cm high has a volume of 180 cm³. All three measurements must use the same length unit before you multiply.

The formula is short, but understanding it helps with more than a basic homework question. It explains how many unit cubes fit inside a solid, how to work with fractional measurements, and how to recover a missing side when the volume is already known.

It also helps you distinguish the space a box occupies from the material needed to cover its faces. Those are different measurements with different formulas. Start with the shape and its three dimensions, then choose the calculation that answers your question. The examples below show each step and the units that belong in the final answer.

Quick Answer: Three Dimensions Give the Volume

For a right rectangular prism, multiply length × width × height: V = lwh. Measure all three dimensions in the same unit, then report the answer in cubic units. Alternatively, multiply the rectangular base area by the perpendicular height: V = Bh. Both methods give the same volume.

Recognizing the Shape and Its Measurements

3D isometric diagram of rectangular prism with Length, Width, and Height dimensions labeled
Figure 1: Anatomy of a rectangular prism: Volume equals length multiplied by width multiplied by height.

A right rectangular prism is a box-shaped, three-dimensional solid with six rectangular faces. It has 12 edges and eight vertices, or corners. Its faces meet at right angles. Another common name is cuboid, so the volume of a cuboid uses the same calculation.

The three dimensions are length, width, and height. In a diagram, length and width often describe the base, while height extends from that base to the opposite face. Depending on the object’s position, a measurement may be called depth instead.

The labels are less important than choosing three mutually perpendicular edge lengths. A slanted line across a face or through the solid is a diagonal, not one of those three edges.

A drawing may show only three faces, but hidden faces still belong to the solid. Likewise, the height label may sit beside a rear edge. Follow the label to the edge it describes rather than estimating a measurement from how the picture looks.

Why Counting Cube Layers Leads to the Formula

Imagine a prism made from small cubes, each with edges one unit long. Every unit cube occupies one cubic unit of space.

Suppose the bottom layer contains five cubes along its length and three along its width. That layer contains:

5 × 3 = 15 cubes

Stack four identical layers:

15 × 4 = 60 cubes

The solid therefore has a volume of 60 cubic units. Multiplying the three edge lengths gives exactly the same result:

5 × 3 × 4 = 60

This layer model explains why multiplication works. Length times width counts the cubes in one layer; multiplying by height counts all the layers. Cubes must fill the solid without gaps or overlaps.

It also explains why the answer is cubed. Three length measurements are multiplied together, so the units become unit × unit × unit. If the cube edges measure one centimeter, each cube has a volume of one cubic centimeter.

Fractional edge lengths extend the same idea using smaller cubes. The formula continues to work even when whole unit cubes cannot fill the shape exactly.

The Volume of a Rectangular Prism Formula in Practice

The rectangular prism volume formula is:

V = lwh

Here, V represents volume, l represents length, w represents width, and h represents height.

You can also write:

V = Bh, where B = lw

B is the area of the rectangular base. It already contains two dimensions, so multiplying it by height supplies the third.

Use this method to solve a problem:

  1. Identify the three edge lengths, or the base area and height.
  2. Convert mixed measurements to compatible units.
  3. Substitute the values into the formula.
  4. Multiply and attach the correct cubic unit.

For the opening example:

V = 9 × 4 × 5 = 180 cm³

Using the base-area method gives:

B = 9 × 4 = 36 cm²
V = 36 × 5 = 180 cm³

Notice that cm² × cm becomes cm³. Adding the dimensions, such as 9 + 4 + 5, would not measure the space enclosed by the solid.

For a leaning prism with a rectangular base, V = Bh uses perpendicular height. The slanted connecting edge is not generally the height. The examples here use right prisms, where the vertical edge and perpendicular height coincide.

Solved Problems With Decimals and Fractions

Unit consistency reminder diagram emphasizing matching units before multiplication
Figure 2: Unit matching: Convert all dimensions to the same unit before multiplying.

Decimal Edge Lengths

A display case has internal dimensions of 2.4 m by 1.5 m by 0.8 m. Assuming a rectangular interior:

V = 2.4 × 1.5 × 0.8

First calculate its base area:

2.4 × 1.5 = 3.6 m²

Then multiply by height:

3.6 × 0.8 = 2.88 m³

The dimensions are all in meters, so the answer is cubic meters. Decimal measurements do not change the formula. Keep the decimal places during the calculation and round only if the problem requests it or the measurements justify rounding.

Fractional Edge Lengths

A small rectangular solid measures 2½ inches by 1⅓ inches by ¾ inch.

Convert the mixed numbers to improper fractions:

2½ = 5/2 and 1⅓ = 4/3

Substitute:

V = (5/2) × (4/3) × (3/4)

Cancel common factors or multiply the numerators and denominators:

V = 60/24 = 5/2 = 2½ in³

Fractional dimensions can produce a fractional volume. That is a valid result, not a sign that the method failed. Keeping the fractions exact avoids rounding a repeating decimal such as 1⅓ too early.

These problems show two ways to handle fractional edge lengths: multiply decimals directly when they are given, or simplify fractions when exact fractions are provided.

Recovering a Missing Edge From the Volume

When volume and two dimensions are known, divide by the product of those dimensions.

Missing measurementRearranged formula
Heighth = V/(lw)
Widthw = V/(lh)
Lengthl = V/(wh)

Suppose a prism has a volume of 252 cm³, a length of 9 cm, and a width of 7 cm. Its base area is:

9 × 7 = 63 cm²

Therefore:

h = 252 ÷ 63 = 4 cm

The missing height uses centimeters, not cubic centimeters. Dividing volume by area leaves a length unit.

Here is how to find the missing width of a rectangular prism. A container has a volume of 336 in³, a length of 8 inches, and a height of 6 inches:

w = 336 ÷ (8 × 6) = 7 in

Check by substituting the answer back:

8 × 7 × 6 = 336 in³

This check catches incorrect division and misplaced dimensions. If only volume and one edge are given, you usually need another measurement or relationship to determine the other two edges uniquely.

Matching Units Before You Multiply

A prism measures 0.7 m long, 40 cm wide, and 25 cm high. Multiplying 0.7 × 40 × 25 directly would combine meters and centimeters.

Convert the length to centimeters first:

0.7 m = 70 cm

Now calculate:

V = 70 × 40 × 25 = 70,000 cm³

Alternatively, convert width and height to meters:

V = 0.7 × 0.4 × 0.25 = 0.07 m³

Both answers describe the same volume. One cubic meter contains 1,000,000 cubic centimeters because 100 × 100 × 100 = 1,000,000.

This is a common source of errors: a linear conversion factor must be cubed when converting a cubic unit. Similarly, 1 ft³ equals 12³, or 1,728 in³, rather than 12 in³.

When you start with a base area, its unit must match the height. A base area in cm² paired with a height in centimeters produces cm³. Convert first if the height is in another unit.

Using a Calculator Without Losing the Method

Algebraic formula rearrangement diagram to find missing dimension
Figure 3: Finding missing dimensions: Height equals Volume divided by Base Area.

A rectangular prism volume calculator can handle the arithmetic once you enter length, width, and height. You may also see the tool called a box volume calculator.

Check how it handles units. Some calculators convert separately selected input units; others expect every entered value to use one common unit. A unit label alone does not prove that mixed measurements are converted automatically.

For a quick check, enter 3, 4, and 5 using the same unit. The displayed volume should be 60 cubic units. If you change only the height from 5 to 10, the result should become 120.

For homework, keep the formula and substituted values in your working. A calculator answer alone may hide a wrong measurement or an incorrect unit choice.

For real containers, measure internal dimensions when finding capacity. External dimensions describe the enclosing box-shaped space and include wall thickness. Rounded corners, partitions, or other features can make usable capacity smaller than the simple rectangular estimate.

Joining Prisms and Comparing Their Sizes

Composite solids contain more than one simple shape. For a solid made from non-overlapping rectangular prisms, calculate each part separately and add the results.

Suppose an L-shaped solid can be divided into two parts:

  • Part A: 7 cm × 3 cm × 2 cm = 42 cm³.
  • Part B: 3 cm × 3 cm × 4 cm = 36 cm³.
Total volume = 42 + 36 = 78 cm³

The parts can share a face, but they must not occupy the same space. If your chosen boxes overlap, adding their full volumes counts the overlap twice. Another method is to calculate a larger enclosing prism and subtract a missing rectangular section.

Equal volume also does not require identical dimensions. A 10 × 3 × 4 cm prism and an 8 × 5 × 3 cm prism both have a volume of 120 cm³. One may still be too wide or too tall for a particular opening.

Finally, consider what happens to volume when all dimensions are doubled:

Vnew = (2l)(2w)(2h) = 8lwh

The volume becomes eight times as large. More generally, a uniform scale factor k changes volume by k³. Doubling only one dimension doubles volume; doubling two dimensions multiplies it by four.

Volume, Surface Area, and Capacity Answer Different Questions

Rectangular prism volume word problems often require you to identify the measurement before calculating it. Filling a rectangular space asks about volume. Covering all its faces asks about surface area.

MeasurementWhat it describesFormula for a right rectangular prismUnit type
VolumeThree-dimensional spaceV = lwhCubic units
Surface areaTotal area of six facesSA = 2(lw + lh + wh)Square units
Internal capacitySpace available inside a rectangular containerInternal length × internal width × internal heightCubic units or liquid-volume units

For a solid measuring 6 cm by 4 cm by 2 cm:

Volume = 6 × 4 × 2 = 48 cm³
Surface area = 2(24 + 12 + 8) = 88 cm²

Those answers cannot replace one another. The first measures space; the second measures the combined faces.

Read the wording carefully. An open-top container has no top face to cover, so its required material area differs from the six-face surface-area formula. A partly filled container also requires the actual fill depth when calculating the volume of its contents.

Questions Students Ask About Rectangular Prism Volume

Can You Find Volume With Only Two Dimensions?

Usually, two edge lengths are not enough. You need the third edge, or information that determines it. However, base area and height are sufficient because the area already combines two dimensions. A condition such as “the base is square” can also supply a missing relationship in some problems.

Is a Cube a Rectangular Prism?

Yes. A cube is a special right rectangular prism with all edges equal. Its square faces are also rectangles. If each edge has length s, the volume formula becomes V = s × s × s = s³. A rectangular prism does not require all three dimensions to be different.

Does Turning the Prism Change Its Volume?

No. Rotating a rigid prism changes its position, not the space it occupies. What you call length, width, and height may change, but their product stays the same. For example, 2 × 4 × 7 and 7 × 2 × 4 both equal 56 cubic units.

Why Are Volume Answers Written in Cubic Units?

Volume measures space in three dimensions. Multiplying length, width, and height multiplies three length units, producing a cubic unit. A cubic centimeter represents the space of a cube with one-centimeter edges. Square centimeters measure area, so they are not the correct unit for a three-dimensional volume answer.

What If the Problem Gives Base Area Instead of Width?

Use V = Bh, where B is the base area and h is the perpendicular height. You do not need to recover the separate length and width. For example, a rectangular base of 18 cm² and a height of 7 cm give a volume of 126 cm³.

Can Volume Be Smaller Than One Cubic Unit?

Yes. A prism with fractional edges can occupy less than one cubic unit. For example, dimensions of ½ cm, ½ cm, and ½ cm give a volume of ⅛ cm³. The size of the answer depends on the dimensions and the measurement unit you choose.

Can the Volume of a Box Tell Me Whether an Item Fits?

Volume alone cannot guarantee fit. Compare the item’s dimensions with the box’s internal dimensions and consider its orientation. A long object may have a smaller volume than the box while extending beyond its available length. The opening, padding, and any internal divisions can also limit usable space.

Check the Dimensions, Then Check the Units

Finding the volume of a rectangular prism starts with identifying three perpendicular dimensions or a base area and height. Use compatible units, multiply carefully, and report cubic units. When a side is missing, rearrange the formula and verify the result by substitution. Understanding the layers behind the calculation makes the method easier to apply to fractions, composite shapes, and practical measurement problems.

Related Topics

#Rectangular Prism #Volume Formula #Geometry #3D Shapes #Mathematics
Share this guide:
BT

Written by BigTechies Editorial Team

BigTechies develops accurate, practical calculation and unit conversion tools for contractors, designers, architects, and DIY homeowners. Every formula and reference guide is reviewed for dimensional consistency and mathematical precision.

Related Articles

Continue exploring practical measurement guides

View all guides →

Calculate Your Project in Seconds

Whether you're pouring concrete, spreading garden mulch, or estimating freight container volume, our instant calculator provides exact answers with zero guesswork.