Calculate barrel or drum capacity in liters, US and UK gallons and oil barrels from inside diameter and height, or look up standard barrel sizes.

Use internal dimensions. Fill means a percentage of volume, not liquid height.

Optional settings
Percent of volume, not of liquid height. Blank means 100%.

1 kg/L is water; crude oil ≈ 0.85. Blank omits mass.

Calculator Functions

FunctionWhat it doesWhat it requires
Cylindrical drum capacityFinds the volume of a straight-sided drum or barrelRequires the inside diameter and the inside height or length
Curved barrel capacityEstimates the volume of a cask that bulges in the middleRequires the inside head diameter, the inside bilge diameter at the widest point and the inside length
Number of barrels neededFinds how many whole barrels hold a given volumeRequires the total volume and the capacity of one barrel, in L, US gal or oil barrels
Standard barrel sizesGives the nominal capacity of a common barrel or drumRequires a barrel type from the list

Dimensions are entered in cm, in, ft or m. The two capacity functions also take a fill percentage and a liquid density in kg/L, which add the volume at that fill and the mass of the liquid. Capacities are listed in liters, US gallons, Imperial gallons, oil barrels, m³ and ft³.

Barrel Capacity Formulas

V = π × D² × L ÷ 4 [1]
VVolume, in the cube of the length unit; 1 m³ is 1,000 L
DInside diameter
LInside height or length

Cylindrical drum capacity

This is the cylinder formula π × r² × h written with the diameter [1]. A round barrel 36 in across holding 30 in of water contains π × 36² × 30 ÷ 4 = 30,536 in³, which is 500.4 L or 132.2 US gal.

Curved barrel capacity

V = π × L ×
(2 × B² + H²) ÷ 12 [2]

B is the bilge diameter, the widest point in the middle, and H is the head diameter at the ends. The formula treats the curve of the staves as part of an ellipse [2]. A cask with a 56 cm head, a 70 cm bilge and a 90 cm length holds about 304.8 L. With B equal to H it gives the same answer as the cylinder formula.

Number of barrels needed

Count = total ÷ capacity,
rounded up

Storing 1,000 L in 55 US gal drums of 208.2 L each takes 1,000 ÷ 208.2 = 4.80, so 5 drums, with 41.0 L of spare capacity.

Standard barrel sizes

A barrel has no single size. An oil barrel is 42 US gallons, or 158.99 L [3], and US federal tax on beer uses a 31 gallon barrel [4]. The other sizes in the list are the usual trade sizes for each container.

Barrel typeNominal sizeLitersUS gallons
Oil barrel42 US gal158.9942.00
Steel drum55 US gal208.2055.00
US beer barrel31 US gal117.3531.00
UK beer barrel36 UK gal163.6643.23
Whiskey barrel53 US gal200.6353.00
Wine barrique225 L225.0059.44

Fill and liquid mass

Mass = V × fill ÷ 100 ×
density

V is in liters and density in kg/L, so the mass is in kg. Water is 1 kg/L.

Limits of This Estimate

  • Capacity depends on inside dimensions. Measuring the outside of a barrel overstates it by the thickness of the walls and ends.
  • The fill percentage is a share of the volume, not of the liquid height. In a barrel lying on its side, half the height is half the volume but a quarter of the height is much less than a quarter.
  • The curved formula assumes a symmetric cask with an elliptical bulge. Casks with flatter or sharper curves hold a little less or more.
  • These estimates are based on the best available data and estimations. Standard sizes are nominal, individual containers vary, and other barrel sizes are set by law or trade custom [4].

Sources

  1. Wolfram MathWorld, Cylinder: volume of a right circular cylinder
  2. Wolfram MathWorld, Barrel: volume of a barrel with elliptical sides
  3. NIST, Guide to the SI (Special Publication 811), Appendix B.8: petroleum barrel of 42 US gallons, US and Imperial gallon in liters
  4. NIST, Handbook 44 (2026), Appendix C, General Tables of Units of Measurement: the range of legal and customary barrel sizes