Calcamaze

Rectangular Prism Volume Calculator

Find the volume of a rectangular prism (box) from its length, width and height, plus its surface area.

Solve for any value — pick what to calculate in the first field

Result

Volume
60
Surface area
94
Space diagonal
7.0711
Base area
20

A rectangular prism — a box, brick or room shape with six rectangular faces — has a volume equal to length × width × height. Enter all three to get the volume, or choose any one dimension to find it from the volume and the other two. Surface area and the corner-to-corner diagonal are shown too.

Boxes, rooms, aquariums, raised beds and shipping cartons are all rectangular prisms. Multiply length, width and height in the same unit to get the volume, or solve for a missing side when you know the volume.

What is a rectangular prism?

A rectangular prism (also called a cuboid or rectangular solid) is a 3D shape with six rectangular faces that meet at right angles — the shape of a shoebox, a brick, a fish tank or a room. A cube is the special case where all three dimensions are equal.

Its volume is the area of the base times the height, V = l × w × h, which is the number of unit cubes that would fill it. The surface area, 2(lw + lh + wh), is the total area of the six faces — useful for wrapping, painting or insulating. The longest straight line inside the box, from one corner to the opposite corner, is the space diagonal √(l² + w² + h²).

How to use the rectangular prism volume calculator

  1. Choose what to calculate in the first field — usually the volume.
  2. Enter the length, width and height in the same unit.
  3. Read the volume in that unit cubed.

Formula

V = l × w × h

Where V is the volume, l is the length, w is the width, h is the height.

Choose any value to calculate — the calculator rearranges the formula for you.

Worked examples

Gallons in an aquarium

Calculate
Volume
Length
30
Width
12
Height
16
Volume
5,760
Surface area
2,064
Space diagonal
36.0555

A tank 30 × 12 × 16 inches holds 30 × 12 × 16 = 5,760 in³. At 231 in³ per US gallon that is about 24.9 gallons.

Height of a crate from its volume

Calculate
Height
Volume
1.5
Length
1.2
Width
1
Height
1.25
Surface area
7.9
Space diagonal
2.0006

A 1.5 m³ crate with a 1.2 m × 1 m base must be h = 1.5 ÷ (1.2 × 1) = 1.25 m tall.

Volume unit conversions

VolumeCubic inchesLitersUS gallons
1 cubic inch (in³)10.01640.0043
1 cubic foot (ft³)1,72828.31687.4805
1 cubic yard (yd³)46,656764.5549201.974
1 US gallon2313.78541
1 liter (L)61.02410.2642
1 cubic meter (m³)61,023.7441,000264.1721

From volume to capacity

A box 60 cm × 40 cm × 30 cm has a volume of 72,000 cm³. Since 1,000 cm³ is 1 liter, it holds 72 L. In US units, a cubic foot holds about 7.48 gallons, so an aquarium 4 ft × 1.5 ft × 2 ft (12 ft³) holds about 90 gallons before allowing for gravel and glass.

Common mistakes

  • Mixing units — for example length in feet and height in inches. Convert all three dimensions to the same unit first.
  • Confusing volume with surface area. Volume is in cubic units (ft³); surface area is in square units (ft²).
  • Converting cubic units with the linear factor: 1 ft³ is 12³ = 1,728 in³, not 12 in³.
  • Mixing units, such as a length in feet and a height in inches. Convert first.

Frequently asked questions

How do I find the volume of a box?

Multiply length × width × height, all in the same unit. A box 12 in × 10 in × 8 in holds 960 cubic inches.

How do I find the height from the volume?

Divide the volume by the base area: h = V ÷ (l × w). Choose “Height” under Calculate and enter the volume, length and width.

What is the volume of a cube?

The side length cubed. A cube with 3 cm sides is 3 × 3 × 3 = 27 cm³.

How do I convert cubic feet to cubic yards?

Divide by 27, since a cubic yard is 3 ft × 3 ft × 3 ft. 54 ft³ is 2 cubic yards.

Sources

  1. Cuboid, Wolfram MathWorld
  2. Prealgebra 2e, 9.6 Solve Geometry Applications: Volume and Surface Area, OpenStax, Rice University
  3. Special Publication 811: Guide for the Use of the International System of Units, NIST

Last updated · Calculations checked by automated tests· Editorial policy