{"uid":"cap_xluH5kRkdPe40SNTQP-dh","slug":"plumbing-pipe-flow-calc-pipe-volume-a7ec8079","name":"Plumbing & Pipe Flow Calc – Pipe Volume","description":"Water held in a run of pipe in gallons and litres per foot and in total, from nominal size or inside diameter.","url":"https://plumbing-calc.x402tookit.com/pipe-volume?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":["lengthFeet"],"properties":{"material":{"type":"string","description":"copper-l or pvc-40 (default copper-l)"},"lengthFeet":{"type":"number","description":"Length of the pipe run in feet"},"nominalSize":{"type":"string","description":"Nominal size such as 3/4 or 1-1/4 (with material), or send insideDiameterInches instead"},"insideDiameterInches":{"type":"number","description":"Inside diameter in inches, instead of a nominal size"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"pipe":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"],"items":{"type":"string"}},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"lengthFeet":{"type":["null","number"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}},"totalLiters":{"type":["null","number"]},"totalGallons":{"type":["null","number"]},"litersPerFoot":{"type":["null","number"]},"gallonsPerFoot":{"type":["null","number"]},"totalCubicInches":{"type":["null","number"]},"flowAreaSquareInches":{"type":["null","number"]},"insideDiameterInches":{"type":["null","number"]},"seconds_to_purge_at_1_gpm":{"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_C9lvIMsQGjP-yOUr659Za","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 volume of water held in a pipe run in gallons and litres (per foot and total), given nominal pipe size or inside diameter and pipe length.","exampleAgentPrompt":"How many gallons of water are held in a 75-foot run of 3/4-inch copper Type L pipe, and how long would it take to purge at 1 GPM?","exampleUseCases":[{"title":"Freeze-protection antifreeze sizing","prompt":"I need to know how much water is in a 40-foot run of 1-inch copper Type L pipe so I can figure out how much glycol antifreeze to add — what's the total volume in gallons and litres?"},{"title":"Pre-repair pipe drainage estimate","prompt":"Before I cut into the pipe, tell me how many gallons are sitting in a 25-foot run of 1/2-inch copper Type L pipe so I know how much water to drain out first."},{"title":"PVC irrigation pipe volume check","prompt":"What's the total volume of water in a 100-foot run of 3/4-inch PVC Schedule 40 pipe, in both gallons and litres, and what's the gallons-per-foot figure?"}],"resultDescription":"Returns gallons per foot, litres per foot, total gallons, total litres, total cubic inches, cross-sectional flow area in square inches, inside diameter in inches, and seconds to purge the pipe run at 1 GPM, along with the pipe description and an optional summary or disclaimer.","failureModes":["Missing required lengthFeet parameter returns an error","Unsupported material string (not copper-l or pvc-40) may return an error or default","Providing both nominalSize and insideDiameterInches may cause ambiguity or one being ignored","Non-positive or zero pipe length may produce invalid results","Unrecognized nominal size string (e.g. typo) may return null pipe data"],"whenToPreferThis":"Use this endpoint when you need to know the water volume held inside a specific pipe run — for tasks like antifreeze dosing, purge time estimation, drainage planning, or heat-loss calculations. Prefer it over manual lookup tables when the user specifies pipe length and nominal size or inside diameter. It handles both copper Type L and PVC Schedule 40 nominal sizes. If the user needs pressure loss, velocity, or pipe sizing instead, use the sibling endpoints on the same platform.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T00:34:28.520Z","isFirstParty":false,"canonicalSlug":"plumbing-pipe-flow-calc-pipe-volume-a7ec8079"}