Cubic Inches of a Cylinder Calculator

Find the volume of a cylinder in cubic inches from its diameter and height using V = π × r² × h, with the same volume also shown in cubic feet, US gallons, and liters.

Quick Facts

Formula
V = π × r² × h, where r = diameter ÷ 2
1 cubic foot = 1,728 in³; 1 US gallon = 231 in³; 1 liter ≈ 61.024 in³.

Your Results

Calculated
Volume
-
Cubic inches (in³)
Cubic feet
-
Volume ÷ 1,728
US gallons
-
Volume ÷ 231
Liters
-
Volume × 0.0163871

Ready

Enter a diameter and height, then press Calculate.

Frequently Asked Questions

What is the formula for cubic inches of a cylinder?
Volume in cubic inches equals π × r² × h, where r is the radius (half the diameter) in inches and h is the height or length in inches. This calculator asks for diameter, so it divides by 2 internally to get the radius before squaring it.
How do I convert cubic inches to gallons, cubic feet, or liters?
Divide cubic inches by 231 to get US gallons, divide by 1,728 to get cubic feet, or multiply by 0.0163871 to get liters. This calculator performs all three conversions automatically alongside the cubic-inch result.
What happens if I enter the radius instead of the diameter?
The result will be wrong. This calculator expects diameter (the full width across the circle) and halves it internally to get the radius. Entering the radius by mistake halves the true radius again, and since radius is squared in the formula, the computed volume ends up only one quarter of the actual volume.
My measurements are in centimeters or millimeters — how do I use this calculator?
Convert both diameter and height to inches first, since the formula and outputs assume inch measurements throughout. Divide centimeters by 2.54, or millimeters by 25.4, to get inches before entering the values.
How do I find the cubic inches of a hollow cylinder (a pipe or tube)?

Calculate the volume of the outer cylinder first using the outer diameter, then calculate the volume of the empty inner bore using the inner diameter and the same height. Subtract the inner volume from the outer volume to get the volume of the wall material. If you want the usable interior capacity of the pipe, use only the inner diameter calculation.

Why does doubling the diameter have more effect than doubling the height?

Because the radius is squared in the formula V = π × r² × h. Doubling the height doubles the volume (a linear relationship). Doubling the diameter doubles the radius, but since r is squared, the cross-section area becomes four times larger — and the volume quadruples. For the same increase in volume, adding height is usually the more efficient approach for tall containers; widening the base grows volume much faster for low, wide shapes.

Understanding cubic inches of a cylinder

A cylinder's volume is the area of its circular cross-section multiplied by its height. The circle's area is π × r², so multiplying by the height h gives the standard formula V = π × r² × h. Enter the diameter (not the radius) and the height, both in inches — the calculator halves the diameter to get r before applying the formula, so there is no need to do that conversion yourself.

Converting the result

Cubic inches are a small unit, so this calculator also converts the same volume into cubic feet (divide by 1,728), US gallons (divide by 231), and liters (multiply by 0.0163871). That makes it easy to compare a computed volume against a tank capacity, shipping spec, or container size given in a different unit, without doing the conversion arithmetic by hand.

Common cylinder sizes and their volumes in cubic inches

Knowing the volume of standard cylinder sizes helps you cross-check your results and build intuition for the formula. A 4-inch diameter, 6-inch tall cylinder — the calculator's default — holds about 75.4 cubic inches (roughly 0.33 US gallons), which is close to the volume of a quart-size mason jar. A 12-inch diameter, 12-inch tall cylinder holds about 1,357 cubic inches or 5.9 gallons — useful for sizing rain barrels, compost buckets, or custom-built tanks. Note that larger diameters grow volume fast: because the radius is squared, doubling the diameter quadruples the cross-section area.

Diameter (in)Height (in)Volume (in³)US gallonsLiters
2412.570.0540.206
4675.400.3261.236
612339.291.4695.561
812603.192.6119.886
12121,357.175.87622.242
18246,107.2626.44100.11

Practical uses and measurement tips

Cubic inch volume calculations come up often in plumbing (pipe volume for pressure-drop calculations), woodworking (turning blank size to bowl capacity), aquariums (tank volume before purchasing a filter rated in gallons per hour), engine sizing (engine displacement is sometimes stated in cubic inches), and custom packaging (fitting a product inside a cylindrical container). When measuring a physical cylinder, use the outer diameter if you want total material volume and the inner diameter if you want the usable interior capacity — for a pipe with thick walls these differ significantly. Always measure across the widest point of the circle at a right angle; an off-center measurement produces a chord, not a true diameter.

Unit conversionFormulaExample (75.4 in³)
Cubic inches → cubic feet÷ 1,7280.0436 ft³
Cubic inches → US gallons÷ 2310.326 gal
Cubic inches → liters× 0.0163871.236 L
Cubic inches → fluid ounces÷ 1.8046941.78 fl oz
Cubic inches → milliliters× 16.3871,235.6 mL
Nominal pipe size (NPS)Inner diameter (in)Volume per foot (in³/ft)
½ inch pipe0.6223.64
¾ inch pipe0.8246.41
1 inch pipe1.04910.39
2 inch pipe2.06740.35
4 inch pipe4.026153.05