Barrel Volume Calculator: Find Gallons from Dimensions
- Volume
- in^3
- Result
- Volume
- L
- Result
- Inside diameter
- 23 in
- You entered
A barrel volume calculator estimates how many gallons a barrel-shaped container holds from its inside dimensions. Enter the interior diameter and height in inches; the calculator returns US gallons, along with the volume in cubic inches and liters for comparison.
Formula
This calculator treats the barrel as a straight cylinder. Its volume is the area of the circular base multiplied by the interior height:
V = π × (d / 2)² × h
- V is volume in cubic inches when dimensions are entered in inches.
- d is the inside diameter in inches.
- h is the inside height in inches.
- π is approximately 3.14159.
To convert cubic inches to US liquid gallons, divide by 231, because one US liquid gallon is exactly 231 cubic inches. To convert cubic inches to liters, multiply by 0.016387064; one cubic inch is exactly 0.016387064 liters. The calculator displays the converted results to two decimal places.
Worked Example
Using the default inside diameter of 23 inches and inside height of 35 inches:
- Radius = 23 ÷ 2 = 11.5 inches.
- Base area = π × 11.5² = π × 132.25 ≈ 415.48 square inches.
- Volume = 415.48 × 35 ≈ 14,541.92 cubic inches.
- US gallons = 14,541.92 ÷ 231 ≈ 62.95 US gallons.
- Liters = 14,541.92 × 0.016387064 ≈ 238.31 liters.
The calculated cylinder volume is therefore about 62.95 US gallons, or 14,541.92 cubic inches. The cubic-inch result is rounded for display; the gallon and liter results are calculated from the unrounded formula.
How to Measure a Barrel
Measure the inside, not the outside. Wall thickness, a lid, and a base all reduce the usable space compared with the container’s external dimensions. Measure the inside diameter across the circular interior and the inside height from the bottom to the point you want to count as full.
- For a closed barrel, measure the interior height between the inside surfaces of the base and top.
- For an open drum, use the bottom-to-fill-line distance rather than assuming it can be filled to the rim.
- If the container is not perfectly round, take diameter measurements in two directions and use their average as an approximation.
- Keep all measurements in the same unit. This calculator expects inches; convert centimeters to inches by dividing by 2.54 before entering them.
Measurements need not be exact to get a useful estimate, but small errors can matter. Diameter is especially influential because it is squared: a 1% diameter error produces roughly a 2% volume error, while a 1% height error produces roughly a 1% volume error.
When This Estimate Is Useful
A cylinder calculation is useful for a straight-sided drum or barrel when you want a quick capacity estimate, compare container sizes, or estimate the volume of liquid that could fit below a specified fill height. It gives geometric capacity, not a guarantee of the amount that can safely or practically be filled.
Leave space for a lid, bung, headspace, or liquid expansion if relevant to the container and its intended use. For a partly filled straight cylinder, enter the depth of the liquid as the height. The formula assumes the liquid surface is level and the container is upright.
Do not confuse capacity with the amount currently inside. The calculator reports volume based on the dimensions entered. It cannot identify the liquid, determine its mass, or account for a container’s contents, sediment, internal fittings, or a non-level fill line.
Barrel Shapes and Standards
Not every barrel is a cylinder. Many wooden barrels have bulging sides, while some drums taper or have rounded ends. A cylinder calculation using the maximum diameter will generally overestimate the capacity of a barrel whose diameter narrows toward its ends. For a curved-sided barrel, accurate capacity requires more measurements and a shape-specific method; the simple calculator is an approximation, not a substitute for the container’s stated capacity.
The word “barrel” also does not identify one universal volume. It can refer to different container shapes and capacities depending on context. For example, an oil barrel is a conventional unit of 42 US gallons, but that unit does not mean every physical barrel holds exactly 42 gallons. Check a container’s marking or manufacturer-provided capacity when a precise rated volume matters.
US gallons and imperial gallons are different units. The calculator reports US liquid gallons. One US gallon is about 3.785 liters, whereas one imperial gallon is about 4.546 liters. A number labeled simply “gallons” can therefore be ambiguous; confirm which gallon is meant when comparing measurements.
Common Errors and Limits
- Entering radius as diameter: the input asks for diameter. If you enter the radius instead, the calculated volume will be one-quarter of the correct result.
- Using outside dimensions: this counts the space occupied by the barrel walls and can overstate its interior capacity.
- Mixing units: entering centimeters as though they were inches makes the result much too large. Convert first, or use measurements consistently in a calculation set up for another unit.
- Assuming an exact result: the formula is exact for an ideal cylinder, but measured dimensions and real barrel shapes introduce uncertainty. The displayed decimals do not make the estimate more precise than the measurements.
For a more precise figure, use the container’s documented capacity or measure the actual volume with an appropriate calibrated method. Do not rely on an estimated geometric volume where overfilling could create a safety or handling risk.
Frequently Asked Questions
How many gallons are in a barrel?
A physical barrel has no single universal capacity. An oil barrel is conventionally 42 US gallons, but other barrels and drums can hold different amounts. Calculate a specific container from its interior dimensions or check its capacity marking.
How do I calculate gallons from barrel dimensions?
For a cylindrical barrel measured in inches, calculate π × (diameter ÷ 2)² × height to get cubic inches, then divide by 231 for US gallons. Measure the interior dimensions for an estimate of usable capacity.
Does this calculator give US or imperial gallons?
It gives US liquid gallons. An imperial gallon is larger: approximately 4.546 liters compared with about 3.785 liters for a US gallon.
Can I use this for a bulging wooden barrel?
You can use it for a rough estimate, but a bulging barrel is not a straight cylinder. A cylinder based on its widest diameter may overestimate capacity; use a shape-specific calculation or documented capacity for a better figure.
Should I measure the inside or outside of the barrel?
Measure the inside diameter and inside height. Outside measurements include the walls and may significantly overstate the volume available for liquid.
Related
Formula used
in d | Inside diameter | in | 23 | 0 in h | Inside height | in | 35 | 0 out gal | Volume | US gal | pi * (d / 2)^2 * h / 231 | 2 out cuin | Volume | in^3 | pi * (d / 2)^2 * h | 2 out lit | Volume | L | pi * (d / 2)^2 * h * 0.016387064 | 2
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.