Calculate box or cylinder volume from dimensions in inches, or convert cubic inches to cubic feet, liters, US gallons, and Imperial gallons.

Use uniform inside dimensions for ideal full capacity. Rounded corners, contents and unused headspace reduce usable capacity.

Calculator Functions

FunctionWhat it doesWhat it requires
Rectangular volumeFinds the volume of a box, tank or bag with straight sidesRequires the inside length, width and height
Cylinder volumeFinds the volume of a round container such as a pipe, bucket or drumRequires the inside diameter and height
Convert cubic-inch volumeConverts a volume already known in cubic inches into other unitsRequires the volume in cubic inches

Each dimension can be entered in in, ft, cm or mm, and is converted to inches before the volume is worked out. Every result is given in cubic inches, cubic feet, liters, US liquid gallons, imperial gallons, cubic centimeters and cubic meters.

Inches to Volume Formulas

V = L × W × H [1]
VVolume (in³)
LInside length (in)
WInside width (in)
HInside height (in)

A length in inches is one dimension and cannot be converted to a volume on its own. Volume needs three lengths multiplied together, or an area multiplied by a depth, which is why the result is in cubic inches.

Rectangular volume

The main formula applies directly. A box that measures 10 × 12 × 18 inches inside holds 10 × 12 × 18 = 2,160 in³, which is 1.25 ft³, 35.40 L or 9.35 US gallons.

Cylinder volume

V = π × (D ÷ 2)² × H [1]

D is the inside diameter and H is the height, or the length for a cylinder lying on its side. A round container 20 inches across and 9 inches tall holds π × 10² × 9 = 2,827.43 in³, which is 46.33 L or 12.24 US gallons.

Convert cubic-inch volume

The cubic-inch figure is multiplied by the factor for each unit. The same factors turn the box and cylinder results into liters, gallons and cubic feet.

Unit1 in³ equalsBasis
Cubic feet0.000578704 ft³1 ft³ = 1,728 in³
Liters0.016387064 L1 in = 2.54 cm
US liquid gallons0.004329 US gal1 US gal = 231 in³
Imperial gallons0.00360465 imp gal1 imp gal = 4.54609 L
Cubic centimeters16.387064 cm³2.54³
Cubic meters0.000016387064 m³0.0254³

These agree with the NIST factors for the cubic inch, cubic foot, US gallon and imperial gallon [2]. A US gallon of 231 in³ is 3.785412 L, so 231 in³ converts to exactly 1 US gallon and 0.8327 imperial gallons.

Limits of This Estimate

  • The result is the full geometric volume of a perfect box or cylinder. Rounded corners, tapered sides, wall thickness and headspace all reduce what a real container holds.
  • Inside dimensions give capacity. Outside dimensions give the space the object takes up, which is larger.
  • US and imperial gallons are different sizes. An imperial gallon is about 20% larger, so the two gallon figures should not be mixed.

Sources

  1. NASA Glenn Research Center, Volume: volume of a rectangular prism and of a circular cylinder
  2. NIST, Guide for the Use of the International System of Units (SP 811), Appendix B.8: cubic inch, cubic foot, US gallon and imperial gallon in SI units