Calculate Gallons by Volume: Formula and Examples
- Cubic feet
- ft³
- Result
- Volume
- 231 in³
- You entered
To calculate gallons by volume, divide the volume in cubic inches by 231 for US liquid gallons, or divide cubic feet by about 0.133681. Enter a measured volume in cubic inches in the calculator below to get US gallons, with a cubic-foot equivalent for reference.
Formula
For a volume measured in cubic inches:
- US liquid gallons = volume in cubic inches ÷ 231
- Cubic feet = volume in cubic inches ÷ 1,728
Here, volume is the measured space in cubic inches (in³). The calculator’s first result is US liquid gallons (gal); its second result is cubic feet (ft³). There are 12 inches in a foot, so one cubic foot contains 12 × 12 × 12 = 1,728 cubic inches. A US liquid gallon is defined as 231 cubic inches. The results are rounded to three decimal places; the underlying calculations use the entered value.
Worked Example
Using the calculator’s default input of 231 in³:
- US liquid gallons = 231 ÷ 231 = 1.000 gal.
- Cubic feet = 231 ÷ 1,728 = 0.1336805…, which rounds to 0.134 ft³.
So 231 cubic inches equals one US liquid gallon, or approximately 0.134 cubic feet. The cubic-foot figure is a conversion of the same volume, not an additional amount.
What “Gallons by Volume” Means
A gallon measures volume: the amount of three-dimensional space a liquid or other material occupies. It is not a measure of weight. A gallon of water and a gallon of oil occupy the same volume, but their weights differ because their densities differ. To convert volume to mass or weight, you also need the material’s density and must use consistent units.
The calculator uses the US liquid gallon, commonly meant by “gallon” in US measurements. Other gallon units exist. The imperial gallon used in the United Kingdom and some other contexts is larger: one imperial gallon is exactly 4.54609 litres, while one US liquid gallon is approximately 3.78541 litres. Check which gallon a source or specification means before comparing values.
How to Measure a Shape
For a rectangular container, multiply its internal length, width, and fill height to find volume in cubic inches, then divide by 231. Measure the inside dimensions if you want the liquid capacity; outside dimensions include wall thickness and can overstate the space available.
For example, a rectangular space that measures 12 inches long, 10 inches wide, and 8 inches high has a geometric volume of 12 × 10 × 8 = 960 in³. That is 960 ÷ 231, or about 4.156 US gallons. This assumes the container is filled to that full height and has straight, vertical walls.
- Rectangular prism: length × width × height.
- Cylinder: π × radius² × height. Use the radius, half the diameter, and keep all measurements in the same unit.
- Irregular container: use a reliable capacity marking or a suitable measurement method; a simple length × width × height calculation may not describe its interior.
For a partly filled container, use the liquid’s actual depth rather than the container’s full height when the shape allows that calculation. In a cylinder with a horizontal base and vertical sides, for example, volume is proportional to liquid height. In a tapered or curved vessel, it generally is not.
Conversions and Unit Choices
If your measurement is not in cubic inches, convert it first or use the corresponding factor. Useful equivalents include:
- 1 US liquid gallon = 231 in³.
- 1 US liquid gallon ≈ 3.78541 litres.
- 1 cubic foot = 1,728 in³ ≈ 7.48052 US liquid gallons.
- 1 US liquid gallon = 4 US liquid quarts = 8 US liquid pints = 16 US fluid ounces.
For metric measurements, 1 litre is exactly 1,000 cubic centimetres, and 1 US liquid gallon is approximately 3.78541 litres. To convert litres to US gallons, divide the litre value by 3.78541; to convert US gallons to litres, multiply by that factor. Do not confuse fluid ounces, which measure volume, with ounces used as a unit of mass.
Common Mistakes and Limits
The most common error is mixing units. A volume calculation requires three dimensions in matching units: multiplying inches by feet, for instance, does not produce cubic inches or cubic feet. Convert every dimension to inches before calculating in cubic inches, or convert all to feet before calculating in cubic feet.
Other points to check:
- Use internal dimensions for capacity. External measurements include material and may give a result larger than the usable interior volume.
- Distinguish liquid gallons from other gallon definitions. A US dry gallon is a separate unit; the calculator is for US liquid gallons.
- Account for shape and fittings. Curved walls, sloped sides, rounded corners, and objects inside a vessel reduce or change its capacity relative to a simple bounding-box calculation.
- Round only at the end. Early rounding can shift the final result, particularly when combining several dimensions.
The calculator converts a volume already expressed in cubic inches. It does not determine a container’s exact capacity from a photograph, account for a complicated interior shape, or convert volume into mass. Its result is only as accurate as the input measurement and the geometric method used to obtain that input.
Frequently Asked Questions
How many cubic inches are in a US gallon?
One US liquid gallon is exactly 231 cubic inches.
How many gallons are in a cubic foot?
One cubic foot is about 7.48052 US liquid gallons. Divide cubic feet by about 0.133681 to get gallons, or multiply by 7.48052.
How do I calculate gallons in a rectangular tank?
Multiply its internal length, width, and liquid depth using one consistent unit. If the dimensions are in inches, divide the cubic-inch result by 231.
Is a US gallon the same as an imperial gallon?
No. A US liquid gallon is about 3.78541 litres; an imperial gallon is exactly 4.54609 litres.
Does one gallon always weigh the same?
No. A gallon is a volume, and weight depends on the substance’s density and other conditions. The calculator returns volume, not weight.
Related
Formula used
in volume | Volume | in³ | 231 | 0 out gallons | US liquid gallons | gal | volume / 231 | 3 out cubic_feet | Cubic feet | ft³ | volume / 1728 | 3
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.