# Calculate volume of a horizontal cylindrical tank

Calculating the volume of a partially filled horizontal cylindrical tank based on a liquid level is not that straight forward as when having a veritcal cylindrical tank.

The YDOC data loggers are provided with up to 8 calculation channels, which can a/o be used to calculate the volume of a horizontal cylindrical tank based on a measured liquid level.

The equation to calculate the volume in

:TL*(PI*pow(:TR;2)-pow(:TR;2)*acos((:TR-(2*:TR-:LEV))/:TR)+(:TR-(2*:TR-:LEV))*sqrt(2*:TR*:LEV-pow(:LEV;2)))

Where:

The YDOC data loggers are provided with up to 8 calculation channels, which can a/o be used to calculate the volume of a horizontal cylindrical tank based on a measured liquid level.

The equation to calculate the volume in

**m³**is::TL*(PI*pow(:TR;2)-pow(:TR;2)*acos((:TR-(2*:TR-:LEV))/:TR)+(:TR-(2*:TR-:LEV))*sqrt(2*:TR*:LEV-pow(:LEV;2)))

Where:

- :TR is the tank radius in
**m**(You should substitute :TR with the radius of your tank or alternatively use another calculation channel returning the radius). - :TL is the tank length in
**m**(You should substitute :TL with the length of your tank). - :LEV is the measured liquid height in
**m**(e.g. measured with a liquid pressure probe).