{"uid":"cap_J1WrXh9EduQcu4YWisOqg","slug":"plumbing-pipe-flow-calc-tank-fill-drain-time-a7306402","name":"Plumbing & Pipe Flow Calc – Tank Fill/Drain Time","description":"Time to fill or drain a tank from its volume or round tank size and flow in gpm, with an optional outflow.","url":"https://plumbing-calc.x402tookit.com/tank-fill-time?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["inflowGpm"],"properties":{"inflowGpm":{"type":"number","description":"Flow in US gallons per minute (litres: divide by 3.785)"},"outflowGpm":{"type":"number","description":"Outflow while filling, in gpm (default 0); the net rate is inflow minus outflow"},"volumeLiters":{"type":"number","description":"Volume in litres"},"volumeGallons":{"type":"number","description":"Volume to move in US gallons (use this, volumeLiters, or a round tank)"},"waterDepthInches":{"type":"number","description":"Water depth to fill, in inches"},"tankDiameterInches":{"type":"number","description":"Round tank diameter in inches (with waterDepthInches)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"clock":{"type":["null","string"]},"hours":{"type":["null","number"]},"source":{"type":["null","string"]},"minutes":{"type":["null","number"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"netFlowGpm":{"type":["null","number"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"volumeLiters":{"type":["null","number"]},"volumeGallons":{"type":["null","number"]},"litersPerMinuteNet":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M6MyuuFeuLTnZIdY8TvWQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the time in hours and minutes to fill or drain a tank given inflow rate in GPM, tank volume or round tank dimensions, and an optional simultaneous outflow rate.","exampleAgentPrompt":"How long will it take to fill a round tank that's 60 inches in diameter and 48 inches deep if my inflow is 12 GPM and I have a 2 GPM outflow at the same time?","exampleUseCases":[{"title":"Irrigation tank fill scheduling","prompt":"I need to fill my 750-gallon irrigation tank with a hose running at 6 GPM — how many hours will that take?"},{"title":"Round water trough fill time","prompt":"I have a round livestock water trough that's 36 inches in diameter and I need to fill it 30 inches deep. My well pump delivers 4 GPM. How long will that take to fill?"},{"title":"Tank fill with drain leak offset","prompt":"My 1200-gallon holding tank has a 10 GPM pump filling it, but there's a 1.5 GPM leak draining it at the same time. How long until the tank is full?"}],"resultDescription":"Returns hours and minutes to fill or drain the tank at the net flow rate (inflow minus outflow), along with the net flow in GPM and litres per minute, the resolved volume in both gallons and litres, a plain-language summary, and a verdict string. May include reasons or disclaimer fields if the result is degraded or approximate.","failureModes":["Missing required inflowGpm parameter returns an error","Outflow equals or exceeds inflow returns an indeterminate or infinite fill time","Providing neither volumeGallons, volumeLiters, nor both tankDiameterInches and waterDepthInches returns an error","Negative flow values may produce unexpected results","Non-numeric query parameter values will cause a parse error"],"whenToPreferThis":"Use this endpoint when you need a quick, paid-per-call calculation of tank fill or drain time from flow rate and volume without setting up your own fluid-dynamics formula. It is especially useful when the tank is cylindrical and you only know diameter and depth rather than pre-computed volume, or when you need to account for simultaneous outflow reducing the net fill rate. Prefer it over general math APIs because it handles unit conversion between gallons and litres natively and returns a structured, human-readable summary.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:13:41.251Z","isFirstParty":false,"canonicalSlug":"plumbing-pipe-flow-calc-tank-fill-drain-time-a7306402"}