ThisCalculator

Everyday

Tank Volume Calculator ASME: How to Size

Updated · Standard formula, shown below

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 works out the volume of a horizontal or vertical cylindrical tank using the ASME (American Society of Mechanical Engineers) standard for ellipsoidal heads, giving you the total volume in gallons or liters. You enter the tank diameter, straight-side length, and head depth, and you get the volume of the cylindrical section plus both heads. The result is the full capacity of a vessel built to ASME Section VIII, Div. 1, which is the code most pressure vessels and storage tanks in the U.S. follow.

Formula

The ASME standard for ellipsoidal heads (often called 2:1 elliptical heads) defines the head depth as one-quarter of the inside diameter, so h = d/4. The volume of one ellipsoidal head is:

V_head = (π × d³) / 24

where:

  • d = inside diameter of the tank (inches, feet, meters, etc.)
  • h = depth of the head from the tangent line to the crown (must equal d/4 for a true 2:1 head)

The cylindrical section between the two heads is a simple cylinder:

V_cylinder = (π × d² / 4) × L

where L is the straight-side length (the distance between the two head tangent lines).

Total volume = V_cylinder + 2 × V_head. If you are using a different head shape (hemispherical, torispherical, flat), the head volume changes. For a hemispherical head, V_head = (π × d³) / 12. For a torispherical (ASME F&D) head, the volume is slightly less than a 2:1 ellipsoid, but many calculators approximate it as the same or use a factor of about 0.1 × d³.

Worked Example

Using the default values from the calculator: diameter d = 48 in, straight-side length L = 120 in, head depth h = 12 in (which is d/4).

First, the cylinder volume:

V_cyl = (π × 48² / 4) × 120 = (π × 2304 / 4) × 120 = (π × 576) × 120 = 1809.56 × 120 = 217,147 in³

One head volume:

V_head = (π × 48³) / 24 = (π × 110,592) / 24 = 347,393 / 24 = 14,475 in³ (approx)

Two heads: 2 × 14,475 = 28,950 in³

Total in cubic inches: 217,147 + 28,950 = 246,097 in³

Convert to cubic feet: 246,097 / 1728 = 142.4 ft³

Convert to US gallons: 246,097 / 231 = 1065.4 gal

Convert to liters: 246,097 × 0.0163871 = 4033 L

The calculator rounds to 142.4 ft³, 1065.4 gal, and 4033 L.

Why ASME Heads Matter

ASME Section VIII, Division 1 is the construction code for pressure vessels in the U.S. and many other countries. It specifies the minimum wall thickness, materials, and design rules, but it also standardizes head shapes. The 2:1 ellipsoidal head is the most common because it offers a good balance between strength and material cost. Its volume is less than a hemisphere but more than a flat head, and the formula is simple enough to use in a calculator.

When you order a tank, the manufacturer will often state the volume based on the “tan-to-tan” length (the straight side between the head weld lines). The heads add capacity, so the total volume is always greater than the cylinder alone. For a 48-inch diameter tank with 120-inch straight side, the heads add about 12% of the total volume.

How to Use the Calculator Correctly

To get an accurate result, you need the inside dimensions, not the outside. The wall thickness reduces the internal volume. For a thick-walled vessel, using outside diameter will overestimate the volume. Also, the head depth must be measured from the tangent line (where the head meets the straight side) to the crown, not the overall length of the head including the straight flange. Many heads have a small straight flange (typically 1.5 to 2 inches) that is part of the head but is not part of the ellipsoidal shape. If you include that flange in the head depth, the volume will be slightly off.

If you only know the outside dimensions, subtract the wall thickness from the diameter and length. For a tank with insulation, use the inside shell dimensions, not the insulation outer surface.

Common Mistakes and Misconceptions

Mistake 1: Using the wrong head formula. The ASME 2:1 ellipsoid formula is V = πd³/24, but some people use the formula for a full ellipsoid (πd²h/6) and then forget to halve it. For a 2:1 head, h = d/4, so the full ellipsoid volume would be πd²(d/4)/6 = πd³/24, which is actually the same. But if you use a different head depth, you must use the general ellipsoid formula: V_head = (π × d² × h) / 6. That formula works for any ellipsoidal head where h is the depth.

Mistake 2: Forgetting the heads. Some quick estimates only calculate the cylinder volume, which can be 10-20% low for typical tanks.

Mistake 3: Unit mix-ups. Mixing inches and feet will ruin the result. Always convert all dimensions to the same unit before calculating.

Mistake 4: Using outside dimensions. For a tank with 0.5-inch wall, the inside diameter is 1 inch less than the outside. That can change the volume by several percent.

Choosing the Right Head Shape

ASME code recognizes several head types, and each has a different volume:

  • 2:1 Ellipsoidal – V = πd³/24. Most common, moderate cost.
  • Hemispherical – V = πd³/12. Twice the volume of a 2:1 head, used for high pressures.
  • Torispherical (ASME F&D) – V ≈ 0.1 × d³ (a common approximation). Slightly less volume than 2:1, cheaper to make.
  • Flat head – V = 0 (the head is just a flat plate, so it adds no volume). Not allowed for high pressure, but used for atmospheric tanks.

If you are designing a vessel, the volume calculation is usually done after the head type is chosen. For a quick estimate, the 2:1 ellipsoid is a safe default.

Reading the Results

The calculator gives total volume in cubic feet, US gallons, and liters. Note that US gallons are different from imperial gallons (1 US gal = 0.833 imperial gal). For process engineering, you often need the “working volume” which is less than the total because you cannot fill to the very top (vapor space is required). Typically, you fill to about 80-90% of the total volume for a liquid, depending on the vessel’s purpose.

For horizontal tanks, the volume is not linear with liquid level; you need a partial volume formula to find how much liquid is in a partially filled tank. This calculator only gives the full volume.

Safety and Code Considerations

Volume calculation is only one small part of designing a pressure vessel. The wall thickness must be calculated per ASME Section VIII, Div. 1, considering the design pressure, temperature, material, and corrosion allowance. The head must also meet the code’s minimum thickness requirements, which are often thicker than the shell due to the stress concentration at the knuckle. Always have a qualified engineer review the design. The volume calculation is for capacity estimation only, not for safety certification.

When filling a tank, never exceed the maximum allowable working pressure (MAWP) and never fill to the absolute top if the tank has a vent or overflow that could be blocked. The volume you calculate is the geometric capacity; the actual safe fill level is determined by the process design.

Frequently Asked Questions

What does “tan-to-tan” mean in tank dimensions? Tan-to-tan refers to the distance between the two tangent lines where the heads meet the cylindrical shell. It is the straight-side length, not the overall length. The heads add length beyond the tan lines, so the overall length is tan-to-tan plus the depth of both heads.

How do I calculate the volume of a horizontal tank with ASME heads? For a horizontal tank, the full volume is the same as a vertical tank: cylinder plus two heads. But the partial volume (when it is not full) requires a different formula that integrates the cross-section area of the cylinder and the head shape. This calculator only gives the full volume.

Can I use this calculator for a tank with torispherical heads? No, the formula here is for 2:1 ellipsoidal heads. For torispherical heads, use an approximation like V_head ≈ 0.1 × d³, or better, get the exact volume from the head manufacturer. The difference is usually small (less than 5%), but for precise work, use the correct head data.

What is the difference between a 2:1 ellipsoidal head and a hemispherical head? A 2:1 ellipsoidal head has a depth equal to one-quarter of the diameter (h = d/4). A hemispherical head is exactly half a sphere, so its depth is d/2. The hemispherical head has about twice the volume and is stronger, but it is more expensive to fabricate.

Why does my tank’s nameplate volume differ from my calculation? Nameplate volumes are often based on the nominal dimensions (outside diameter and overall length) and may include the heads. They may also be rounded or based on a different head shape. Always use the inside dimensions and the actual head depth for your own calculation.

How do I convert the volume to pounds of a liquid? Multiply the volume in cubic feet by the liquid density in lb/ft³. For water at 60°F, density is about 62.4 lb/ft³. For other liquids, look up the density at the operating temperature. Remember that the tank is never filled to 100% in normal operation, so use the working volume.

Related

Formula used
in d | Tank diameter | in | 48 | 0
in L | Straight-side length | in | 120 | 0
in h | Head depth (2:1 ellipsoidal) | in | 12 | 0
out vol_ft3 | Total volume | ft³ | (pi * d^2 / 4 * L + 2 * (pi * d^3 / 24)) / 1728 | 2
out vol_gal | Total volume | US gal | (pi * d^2 / 4 * L + 2 * (pi * d^3 / 24)) / 231 | 1
out vol_l | Total volume | L | (pi * d^2 / 4 * L + 2 * (pi * d^3 / 24)) * 0.0163871 | 1

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.