# calculating volume of a horizontal cylindrical tank from depth

Has anyone found a good formula to convert a depth of fluid to a volume remaining in a tank for a cylindrical tank laying horizontal? (with or without half sphere end caps) Much Thanks!

-

## migrated from mathematica.stackexchange.comSep 6 '12 at 15:41

This question came from our site for users of Mathematica.

Is this a mathematical or Mathematica-related question? If it is generally about math, this question should be migrated... –  Yves Klett Sep 6 '12 at 15:33
The version without half sphere end caps was asked here. –  Américo Tavares Sep 6 '12 at 16:11
(Pi*r^2)/2 + Sqrt[h]*(h - r)*Sqrt[-h + 2*r] + r^2*ArcTan[(h - r)/(Sqrt[h]*Sqrt[-h + 2*r])] –  belisarius Sep 6 '12 at 16:14
Not a duplicate: This tank has half-sphere end caps. –  Lord_Farin Oct 24 '13 at 10:30