Tank Volume Calculator Barrels: How to Use
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator converts tank dimensions into barrel volume (US oil barrels, 42 US gallons each) for cylindrical, rectangular, and spherical tanks. You enter the tank’s shape and measurements, and it returns the volume in barrels, along with cubic feet and liters for reference. The formula and step-by-step example below show exactly how the calculation works so you can verify the result or compute it by hand.
Formula
The calculator uses the standard geometric volume formulas for each tank shape, then converts the result to US oil barrels. A US oil barrel is exactly 42 US gallons, and one cubic foot holds 7.48052 gallons.
- Cylindrical tank (horizontal or vertical): V = π × (d/2)² × l, where d is the diameter (ft) and l is the length (ft).
- Rectangular tank: V = d × h × l, where d is the width (ft), h is the height (ft), and l is the length (ft).
- Spherical tank: V = (4/3) × π × (d/2)³, where d is the diameter (ft).
After computing the volume in cubic feet, the calculator multiplies by 7.48052 to get US gallons, then divides by 42 to get barrels. The result is shown to two decimal places.
Worked Example
Using the default values: a cylindrical tank with a diameter of 10 ft and a length of 20 ft.
- Radius = d/2 = 10/2 = 5 ft
- Base area = π × (5)² = 3.14159 × 25 = 78.5398 ft²
- Volume = 78.5398 × 20 = 1,570.80 ft³
- Convert to gallons: 1,570.80 × 7.48052 = 11,750.0 gal
- Convert to barrels: 11,750.0 / 42 = 279.76 bbl
The calculator shows 279.76 barrels, matching the manual calculation.
When to Use Barrels vs. Other Units
Barrels are standard in the oil and gas industry, but they are rarely used for water storage or chemical tanks. Use barrels when you are dealing with crude oil, fuel, or other petroleum products. For general industrial storage, you might prefer gallons, liters, or cubic meters. This calculator gives you all three so you can convert without a separate step.
Keep in mind that there are different “barrels” in use: the US oil barrel (42 gal), the US fluid barrel (31.5 gal), and the UK barrel (36 imperial gallons, which is about 43.2 US gal). This calculator always uses the 42-gallon oil barrel, which is the most common in petroleum contexts.
Common Mistakes and How to Avoid Them
- Mixing units: If you enter inches instead of feet, the result will be off by a factor of 1,728 (12³). Always convert all measurements to the same unit first.
- Using the wrong barrel definition: As mentioned, “barrel” can mean different volumes. Confirm that your application uses 42 US gallons per barrel.
- Forgetting the radius vs. diameter: The formula for a cylinder uses the radius, not the diameter. The calculator divides the diameter by 2 automatically, but when doing it by hand, don’t skip that step.
- Horizontal vs. vertical orientation: The formula for a full cylinder is the same either way, but if the tank is partially filled, you need a different calculation that accounts for the liquid level. This calculator only handles full tanks.
Limits of the Formula
The formulas assume perfect geometric shapes with uniform dimensions. Real tanks often have rounded ends, dished heads, or internal baffles that change the actual volume. For a tank with elliptical or hemispherical ends, the volume is larger than a simple cylinder. This calculator gives a good estimate for straight-sided tanks, but for critical applications, consult the tank’s calibration chart or measure the actual liquid capacity.
Also, the calculator assumes the tank is completely full. If you need the volume of liquid at a certain level (e.g., 3 feet from the bottom of a horizontal cylinder), you need a more complex formula that integrates the cross-section area. That is beyond this simple tool.
How to Choose the Right Tank Shape
Select the shape that best matches your tank:
- Cylinder: Most pressure vessels, fuel tanks, and storage drums. If the tank lies on its side, enter the diameter and the length (the long dimension). If it stands upright, enter the diameter and the height.
- Rectangle: Open-top tanks, cisterns, and many plastic storage containers. Enter width, height, and length.
- Sphere: Spheres are less common but are used for pressurized storage of gases and some liquids. Enter the diameter only.
If your tank has a conical bottom or a domed top, the simple formulas won’t be accurate. Break the tank into sections (e.g., cylinder + cone) and calculate each part separately, then add them together.
Frequently Asked Questions
How many gallons are in a barrel?
In the US oil industry, one barrel is exactly 42 US gallons. That is the definition used in this calculator. Other industries may use different barrel sizes, so always confirm the context.
Can I use this calculator for a horizontal tank that is not full?
No, this calculator only computes the total volume of a full tank. For a partially filled horizontal cylinder, you need a formula that uses the liquid height, which is more complex and not included here.
What if my tank has rounded ends?
Rounded or dished ends add volume beyond a simple cylinder. You can estimate the extra volume by treating each end as a partial sphere or ellipsoid, but the easiest way is to use the tank’s calibration chart from the manufacturer.
How do I convert barrels to liters?
One US oil barrel is 42 US gallons, and one US gallon is 3.78541 liters. So one barrel is approximately 158.987 liters. The calculator provides liters directly, but you can also multiply the barrel result by 158.987.
Why does the calculator show a different number than my tank’s nameplate?
Nameplate volumes are often nominal or include only the shell capacity, not the exact internal volume. Also, the tank may have internal fittings, insulation, or a different head shape. The calculator gives a theoretical volume based on outer dimensions, so slight differences are normal.
Related
Formula used
sel shape | Tank shape | Cylinder=1, Rectangle=2, Sphere=3 in d | Diameter or length (ft) | ft | 10 | 0 in h | Height or width (ft) | ft | 8 | 0 in l | Length (ft, for cylinder/rectangle) | ft | 20 | 0 out barrels | Volume (US oil barrels) | bbl | (shape == 1 ? (pi * (d/2)^2 * l) : shape == 2 ? (d * h * l) : (4/3 * pi * (d/2)^3)) * 7.48052 / 42 | 2 out cubic_ft | Volume (cubic feet) | ft³ | shape == 1 ? (pi * (d/2)^2 * l) : shape == 2 ? (d * h * l) : (4/3 * pi * (d/2)^3) | 2 out liters | Volume (liters) | L | (shape == 1 ? (pi * (d/2)^2 * l) : shape == 2 ? (d * h * l) : (4/3 * pi * (d/2)^3)) * 28.3168 | 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.