sodcalculator

08 Everyday Math

Tank Barrel Calculator: Volume & Dimensions

Tag 08-4637 · Updated · Standard formula, shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

A tank barrel calculator works out the internal volume of a cylindrical tank from its length and diameter, giving you the capacity in gallons, litres, or cubic units. You enter the barrel’s dimensions and it returns the volume, which is essential for sizing fuel storage, water tanks, or pressure vessels. This page explains the formula, how to use it, and common mistakes to avoid.

Formula

The volume of a cylindrical tank (which is what most “barrels” are in industrial and storage contexts) is the cross-sectional area of the circle times the length. The formula is:

V = π × (d/2)² × L

Where:

  • V = volume (cubic feet, cubic metres, litres, gallons)
  • Ï€ ≈ 3.14159
  • d = internal diameter of the barrel (same unit as L)
  • L = internal length of the barrel (same unit as d)

To convert cubic feet to US gallons, multiply by 7.48052. To convert to litres, multiply cubic feet by 28.3168.

Worked Example

Using the default values from the calculator: length = 10 ft, diameter = 4 ft.

  1. Radius = diameter / 2 = 4 / 2 = 2 ft
  2. Area of the circular end = π × r² = π × 2² = π × 4 ≈ 12.5664 ft²
  3. Volume in cubic feet = area × length = 12.5664 × 10 = 125.664 ft³
  4. Volume in US gallons = 125.664 × 7.48052 ≈ 940.0 gal
  5. Volume in litres = 125.664 × 28.3168 ≈ 3558.5 L

The calculator shows 940.0 gallons, 3558.5 litres, and 125.66 ft³, matching the manual calculation.

Why Use a Tank Barrel Calculator?

Knowing the exact volume of a tank or barrel is critical for:

  • Fuel storage – ensuring you don’t overfill or under-order.
  • Water tanks – matching capacity to household or agricultural needs.
  • Chemical processing – calculating residence times or batch sizes.
  • Aquaculture – determining water volume for fish stocking density.
  • Shipping and transport – verifying load volumes against container limits.

It also helps when you need to convert between units (gallons to litres) or when you have a partial fill and need to know how much liquid is inside based on the fill height.

How to Measure a Tank Barrel

Accurate measurement is the foundation of a correct volume. Here are the steps:

  1. Measure the internal length from one inside edge to the other. For a horizontal tank, this is the overall length, not including the heads (the curved ends).
  2. Measure the internal diameter at the widest point. If the tank is horizontal, measure across the end opening. If the tank is vertical, measure across the top or bottom.
  3. If the tank has dished or elliptical heads (common on pressure vessels), the simple cylinder formula underestimates the volume. For those, you need a more complex formula that accounts for the head shape.
  4. Always use the same units for both measurements. If you measure in inches, convert to feet by dividing by 12 before using the formula with feet.

Common Mistakes and How to Avoid Them

Several errors can throw off your volume calculation:

  • Mixing units – Using diameter in feet and length in inches will give a wildly wrong answer. Always convert to one unit system first.
  • Using outside dimensions – The formula needs the internal diameter. The wall thickness of a steel tank can be significant, so measure inside.
  • Forgetting the heads – For tanks with curved ends, the simple cylinder formula gives the volume of just the straight section. Add the head volume separately (often about 10-15% for dished heads).
  • Confusing US and imperial gallons – A US gallon is 231 in³, while an imperial gallon is 277.42 in³. The difference is about 20%, so use the correct conversion factor for your region.

Limitations of the Simple Formula

The formula V = πr²L assumes a perfect cylinder with flat ends. Real tanks often have:

  • Dished or elliptical heads – These add volume. For a standard 2:1 elliptical head, the volume is approximately (Ï€/6) × d³, where d is the diameter.
  • Internal baffles or agitators – These displace some volume, though usually negligible for rough calculations.
  • Insulation or lining – If you need the capacity for liquid, use the inside dimensions of the liner, not the outside shell.

For most practical purposes, the cylinder formula is accurate to within a few percent for tanks with flat or slightly curved ends. For precise engineering work, consult the tank’s manufacturer drawings or use a tank calibration table.

Frequently Asked Questions

How do I calculate the volume of a horizontal tank with elliptical heads?

Use the cylinder formula for the straight section, then add the volume of the two heads. For a 2:1 elliptical head, the volume is (Ï€/6) × d³. For a hemispherical head, it’s (Ï€/12) × d³. Add these to the cylindrical section volume.

What is the difference between a barrel and a tank?

In common usage, a barrel is a smaller cylindrical container (often 55 US gallons), while a tank is any larger storage vessel. The math for volume is the same, but tanks may have different shapes and head configurations.

How many gallons are in a 55-gallon drum?

By definition, a 55-gallon drum holds 55 US gallons. Its dimensions are typically about 22.5 inches in diameter and 33.5 inches in height. Using the formula, the actual volume is about 57.8 gallons, but the rated capacity is 55 gallons to allow for expansion and headspace.

Can I use this calculator for a vertical tank?

Yes, the formula is the same. Just measure the height (instead of length) and the diameter. The volume will be in the same units.

Why does my tank’s nameplate say a different volume than my calculation?

Manufacturers often rate tanks at nominal capacity, which may be less than the geometric volume to allow for expansion, vapor space, or internal components. Also, they may use outside dimensions. Always check the nameplate or data sheet for the official capacity.

How do I convert cubic feet to barrels (oil)?

One oil barrel is exactly 42 US gallons. To convert cubic feet to oil barrels, divide the volume in cubic feet by 5.61458 (since 42 gallons × 0.133681 ft³/gal = 5.6146 ft³).

Related

Formula used
in l | Barrel length | ft | 10 | 0 | 100
in d | Barrel diameter | ft | 4 | 0 | 20
out gal | Volume (US gal) | gal | (pi * d^2 / 4) * l * 7.48052 | 1
out l | Volume (litres) | L | (pi * d^2 / 4) * l * 28.3168 | 1
out ft3 | Volume (ft³) | ft³ | pi * d^2 / 4 * l | 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.

More in this bed

The whole Everyday Math bed →