Pressure Vessel Volume Formula With Heads: Worked Example
A pressure vessel's volume is the shell plus two heads. The shell is a cylinder, each head is a dome, and you add them. This article gives the formula, runs one invented horizontal vessel with 2:1 heads through a full volume, a partial fill and a water weight, and shows each result the way the pressure vessel volume calculator prints it, so you can check your own hand work line by line.
The formula in three lines
Use inside dimensions throughout, and measure the shell length L from tangent line to tangent line, where the straight shell meets each head.
- Shell = (π/4) × D² × L, with D the inside diameter.
- One 2:1 semi-ellipsoidal head = π × D³ ÷ 24. The head is half an ellipsoid whose depth is a quarter of the diameter.
- One hemispherical head = π × D³ ÷ 12, half a sphere. A flat head adds nothing.
Full volume = shell + 2 × one head. Work in one length unit, then convert at the end: 231 cubic inches make a US gallon and 1,728 make a cubic foot.
Why the heads matter
Leave the heads out and you have sized a pipe with flat ends. Every number built on the volume then comes out low: the water you order for a hydrotest, the weight that lands on the saddles and foundation, and the gallons you read off a level gauge.
How low depends on the vessel's shape. For two 2:1 heads, the heads' share of the full volume is D ÷ (3L + D). A long, slim vessel hides the error. A short, fat one does not: at L = D the heads hold a quarter of the total. Hemispherical heads hold twice as much again, so picking the wrong head type is its own mistake.
Heads also change the answer at a partial level. The liquid in the heads rises in a different shape from the liquid in the shell, so you cannot take the shell's percentage full and apply it to the whole vessel.
Worked example: the invented vessel
A horizontal drum is 60 in. inside diameter and 180 in. tangent to tangent, with a 2:1 semi-ellipsoidal head on each end. These are invented study numbers. Each head is 15 in. deep (a quarter of 60), so the drum is 210 in. long inside, head to head.
Step 1: full volume
- Shell = (π/4) × 60² × 180 = π × 162,000 = 508,938.0 in³.
- Each head = π × 60³ ÷ 24 = π × 9,000 = 28,274.3 in³, so both heads hold 56,548.7 in³.
- Total = 508,938.0 + 56,548.7 = 565,486.7 in³.
- In gallons: 565,486.7 ÷ 231 = 2,447.99 US gal. In cubic feet: 565,486.7 ÷ 1,728 = 327.25 ft³. In metric: 9.2667 m³, or 9,266.67 L.
The heads hold 244.80 gal of that, exactly 10% here, since 60 ÷ (3 × 180 + 60) = 60 ÷ 600. With flat ends you would have written 2,203.19 gal. Swap in hemispherical heads and the same shell holds 2,692.79 gal.
Step 2: partial fill at 15 in.
Take a liquid level of 15 in., measured from the lowest inside point. That is a quarter of the diameter. The radius R is 30 in.
- Wetted area of the shell's circle at level h: R² × acos((R − h) ÷ R) − (R − h) × √(2Rh − h²). Here that is 900 × acos(0.5) − 15 × √675 = 900 × 1.0472 − 15 × 25.981 = 942.48 − 389.71 = 552.77 in².
- Liquid in the shell = 552.77 × 180 = 99,497.9 in³.
- Liquid in both heads: put the two heads together and they make one ellipsoid, so their liquid is half a spherical cap of the same height for 2:1 heads. That is 0.5 × π × h² × (3R − h) ÷ 3 = 0.5 × π × 225 × 75 ÷ 3 = 8,835.7 in³.
- Total liquid = 99,497.9 + 8,835.7 = 108,333.7 in³, which is 468.98 US gal, 62.69 ft³ or 1.7753 m³.
A quarter of the height holds only 19.2% of the volume, because the bottom of a horizontal drum is its narrowest slice. Fill to 30 in., half the diameter, and you get 1,224 US gal, exactly half of 2,447.99. That symmetry is a quick check on any partial-fill formula.
Step 3: water weight
The calculator takes water at 1,000 kg/m³ and multiplies by the specific gravity, here 1.0. One pound is 0.45359237 kg.
- Full: 9.2667 m³ × 1,000 = 9,266.7 kg, or 20,429.5 lb.
- At 15 in.: 1.7753 m³ × 1,000 = 1,775.3 kg, or 3,913.8 lb.
On the same basis, one US gallon of water at SG 1.0 weighs about 8.3454 lb, so 2,447.99 × 8.3454 gives the same 20,429.5 lb. The heads alone carry about 2,043 lb of water when the drum is full, which is weight a flat-end estimate never puts on the supports.
Try one question
Question 1 of the free 10-question check on API 510. No signup. About 13 minutes. Most checks include 2 calculation questions, with a calculator on the page. Then ask Patch, the AI study assistant, why the answer is right and the others are wrong.
IV. Practical knowledge - general
Which hydrotest situation carries the highest brittle fracture risk?
Press A-D or 1-4 to choose an answer while this question is on screen.
Choose an answer to begin
Check each step with the calculator
Open the pressure vessel volume calculator and set horizontal, 2:1 semi-ellipsoidal, inches, D = 60, L = 180 and SG = 1. Leave the level blank for the full vessel, and you should see:
- Each head (depth 15 in.): 16.36 ft³ = 122.4 US gal = 463.33 L = 0.4633 m³.
- Full vessel: 327.25 ft³ = 2,447.99 US gal = 9,266.67 L = 9.2667 m³.
- Liquid mass at SG 1: 9,266.7 kg = 20,429.5 lb.
Then enter a level of 15:
- Liquid volume at 15 in.: 62.69 ft³ = 468.98 US gal = 1,775.27 L = 1.7753 m³ (19.2% full).
- Liquid mass at SG 1: 1,775.3 kg = 3,913.8 lb.
If your hand result differs, check three things first: that L runs tangent to tangent and not head to head, that you used two heads and not one, and that you used inside dimensions.
Set it up in a spreadsheet
Put the inside diameter in B1, the shell length in B2, the liquid level in B3 and the specific gravity in B4, all lengths in inches. Then:
- Shell (in³):
=PI() / 4 * B1^2 * B2 - One 2:1 head (in³):
=PI() * B1^3 / 24 - Full (US gal):
=(PI() / 4 * B1^2 * B2 + 2 * PI() * B1^3 / 24) / 231 - Liquid at level B3 (US gal):
=(((B1/2)^2 * ACOS((B1/2 - B3) / (B1/2)) - (B1/2 - B3) * SQRT(B1 * B3 - B3^2)) * B2 + 0.5 * PI() * B3^2 * (1.5 * B1 - B3) / 3) / 231 - Liquid weight (lb): the liquid gallons times
8.3454 * B4
With 60, 180, 15 and 1 in the input cells, the rows return 508,938.0, 28,274.3, 2,447.99, 468.98 and 3,913.8. For hemispherical heads, change each 24 to 12 and the 0.5 to 1.
Where this fits for API 510
Volume is not one of the calculation areas in our API 510 calculations guide, but it is the first number in a hydrotest plan: how much water to bring and what it weighs. The weight sits on the saddles, legs or skirt and the foundation, on top of the vessel's own weight, so check those loads with the responsible engineer before a test. The volume does not set the test pressure. For that, the hydrotest pressure calculator works the paragraph inputs, and the static head calculator adds the pressure of the water column at a low point. Our article on pressure testing and impact testing covers what the Body of Knowledge asks about the test itself.
Next step
Take the free 10-question check at /api-510#q1 to see which API 510 calculation areas need work, with every answer explained. Then ask the study buddy at /study-assistant for a fresh invented vessel to size by hand.
FAQ
What is the formula for a pressure vessel volume with 2:1 heads?
Volume = (π/4) × D² × L + 2 × (π × D³ ÷ 24), with D the inside diameter and L the shell length from tangent line to tangent line, all in one unit.
How do I find the volume of a partly filled horizontal vessel?
Multiply the wetted area of the shell's circle by the shell length, then add the heads' liquid, which for 2:1 heads is half a spherical cap of the same level: 0.5 × π × h² × (3R − h) ÷ 3.
How much does the water in a full vessel weigh?
Take the volume in cubic meters times 1,000 kg, or the US gallons times about 8.3454 lb, then multiply by the specific gravity if the liquid is not water.
Sources
- Pressure vessel volume calculator, Long Seam: formulas, the 1,000 kg/m³ water basis and the results quoted above. Checked 21 Nov 2026.
- NIST Guide to the SI, Appendix B.8: Factors for Units Listed Alphabetically, National Institute of Standards and Technology: the inch, foot, US gallon, cubic inch and pound factors. Checked 21 Nov 2026.
- API 510 calculations guide, Long Seam: the calculation areas listed from the Body of Knowledge. Checked 21 Nov 2026.
Long Seam editorial team
Your next step
Ready to see where you stand on API 510?
Free, untimed and scored by domain. No signup. About 13 minutes. Most checks include 2 calculation questions, with a calculator on the page.
Free 10-question checkAPI 510 course. Lessons, timed practice exams and a plan around your exam date.
Get API 510 course · $199More free practice
- Read a free lesson
- Take the free 25-question practice test
- Question of the day
- Free flashcards
- Print the study checklist (free PDF)
- Print the flashcards as cut-out cards (free PDF)
The free check and the course are on the API 510 page.
Ask Patch for a plan built around your exam date