Tank Volume Calculator
Working out how much a tank holds, and how much is in it right now, is a common practical problem on farms, in workshops, in plumbing and irrigation, and around any water, fuel or chemical store, and this calculator handles it for the three shapes you meet most: the upright cylinder, the cylinder lying on its side, and the plain rectangular tank. Choose the shape, enter the dimensions in metres, and it returns the total capacity in both cubic metres and litres, the two units that matter, since one cubic metre is exactly 1,000 litres. Just as useful, it also works out the partial volume at a fill depth you specify, so you can turn a dipstick or sight-glass reading into an actual quantity of liquid. For an upright cylinder or a rectangular tank that is straightforward, because the contents rise in simple proportion to the depth, but a horizontal cylinder is the one that trips people up, since the curved ends mean a tank filled to half its diameter holds exactly half its volume while other depths do not scale evenly. The calculator handles this correctly using the geometry of the circular segment, the shape of the liquid's cross-section, multiplied by the tank length, so your readings come out right. That makes it genuinely useful for sizing a new tank, checking how many litres a delivery added, working out remaining stock from a depth measurement, or planning irrigation and storage. Whether you are a farmer gauging a water tank, a tradesperson sizing a cylinder, or a student exploring volumes, it gives a fast, accurate answer with the fill level included. The formulas and a worked example are explained clearly below.
How it works
A cylinder's volume is pi over 4 times the diameter squared times its length or height. A rectangular tank is length times width times height. For fill, vertical cylinder and rectangular tanks scale directly with depth. A horizontal cylinder uses the circular segment area at the fill depth, r squared times the inverse cosine of (r minus h) over r, minus (r minus h) times the square root of 2rh minus h squared, multiplied by the length. Cubic metres times 1,000 gives litres.
Worked example
A vertical cylinder 2 m across and 3 m tall holds pi over 4 times 4 times 3, about 9.42 cubic metres, or 9,425 litres. Filled to 1.5 m, half its height, it holds half that, about 4,712 litres, which is 50 percent full.
Related calculators
- Cylinder Volume Calculator: cylinder capacity.
- Circle Segment Calculator: segment area.
- Volume Calculator: common solids.
- Volume Conversion: convert volume units.