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.
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.
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.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About
Reviewed and maintained. Last reviewed 2026-06-05 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2019 to 2026 Calculate.co.nz. All rights reserved.