Calculate barrels per inch of a tank from its inside diameter, with total barrels and gallons for a height, or divide barrels by inches of level change.
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Tank barrels per inch (diameter) | Finds the barrels held in each inch of height of a vertical round tank or a full pipe | Requires the inner diameter and a barrel definition |
| Tank barrels per inch (common sizes) | Finds the same capacity for a listed inner diameter from 24 in to 96 in | Requires a preset inner diameter and a barrel definition |
| Barrels ÷ inches | Finds barrels per length from a quantity and the level change it caused | Requires the barrel quantity and the length or level change |
| Total barrels | Finds the barrel quantity in a length or level change | Requires the barrels per length and the length or level change |
| Length or level change | Finds the level change that holds a barrel quantity | Requires the barrel quantity and the barrels per length |
Lengths can be entered in inches, feet, centimeters or meters, and Result per sets the length unit of the answer. The two tank functions take an optional tank height or fill level, which adds the total barrels and gallons, and they also show the capacity per foot.
Barrels Per Inch Formulas
| BPI | Barrels per inch of height (bbl/in) |
| D | Inner diameter (in) |
| V | Cubic inches in one barrel |
Ï€ × (D ÷ 2)² is the area of the tank’s cross-section in square inches, which is also the cubic inches held in each inch of height. Dividing by the size of one barrel turns that into barrels. A US gallon is exactly 231 cubic inches [1], so the size of a barrel depends on how many gallons it is taken to hold.
| Barrel definition | Gallons | Cubic inches |
|---|---|---|
| Petroleum | 42 US gal [1] | 9,702 |
| US liquid | 31.5 US gal [1] | 7,276.5 |
| US beer | 31 US gal [1] | 7,161 |
| UK beer | 36 Imperial gal | 9,987.1 |
The Imperial gallon is about 20% larger than the US gallon [1]. The calculator takes it as 4.54609 liters.
Tank barrels per inch (diameter)
A tank with a 120 in inner diameter holds π × 60² ÷ 9,702 = 1.1657 petroleum barrels per inch, or 13.9885 per foot. At a height of 20 ft that is 279.77 bbl.
Tank barrels per inch (common sizes)
The preset diameters use the same formula. For a petroleum barrel:
| Inner diameter | bbl/in | bbl/ft |
|---|---|---|
| 24 in (2 ft) | 0.0466 | 0.5595 |
| 36 in (3 ft) | 0.1049 | 1.2590 |
| 48 in (4 ft) | 0.1865 | 2.2382 |
| 60 in (5 ft) | 0.2914 | 3.4971 |
| 72 in (6 ft) | 0.4197 | 5.0359 |
| 96 in (8 ft) | 0.7461 | 8.9527 |
Barrels ÷ inches
B is the barrel quantity and L is the length or level change in inches. 100 barrels over 50 in is 2 bbl/in.
Total barrels
A level change of 50 in at 2 bbl/in is 100 barrels.
Length or level change
100 barrels at 2 bbl/in is a level change of 50 in.
Limits of This Estimate
- The tank functions fit a vertical tank with straight walls, or a pipe that is full. They do not give the volume at a liquid depth in a horizontal tank.
- The diameter is the inside one. Wall thickness, shaped ends and anything inside the tank are left out.
- Barrels ÷ inches, Total barrels and Length or level change do not convert between barrel definitions, so the quantity and the rate must use the same barrel.
- Several barrels are set by law or by trade custom [1]. The 36 Imperial gallon UK beer barrel is a brewing-trade measure. These estimates are based on the best available data and estimations.
Sources
- NIST, Handbook 44 (2026), Appendix C, General Tables of Units of Measurement: gallon size and US barrel definitions
