Calculate the internal volume of a cylindrical pipe or tube in liters and cubic meters, based on its inside diameter and length.
📂 Conversion & General ScienceFill in the fields on the left with your circuit's known values, then press the button to see your result instantly. No sign-up required, and no data is sent anywhere — everything is calculated right in your browser.
This calculator finds the internal volume of a cylindrical pipe or tube using the standard formula for a cylinder's volume: π times the radius squared, times the length. Since pipe diameter is almost always specified rather than radius, the calculator divides your entered diameter by two internally, and converts millimeters to meters to keep all units consistent before multiplying. The result is given in both liters and cubic meters, which is useful for a range of practical purposes — estimating how much water or fluid a length of pipe holds, calculating flush or purge volumes for plumbing and irrigation systems, or determining fill quantities for hydraulic and pneumatic tubing. Using inside diameter rather than outside diameter is essential for an accurate result, since the difference between the two, determined by wall thickness, can be significant for thicker-walled pipes. This distinction matters most in plumbing and irrigation design, where miscalculating usable volume can lead to under- or over-sized storage and delivery systems.
Every pipe has two diameters worth knowing, and confusing them is one of the most common sources of error in an otherwise simple volume calculation. Outside diameter describes the pipe as you'd measure it with a tape wrapped around the exterior; inside diameter describes the actual hollow bore where fluid flows — and it's exclusively that inner measurement that determines how much volume the pipe can hold.
The gap between these two diameters is determined entirely by wall thickness, and that gap matters more than it might first appear. A thin-walled pipe has inside and outside diameters that are nearly identical, making the distinction almost academic. But a thick-walled pipe, common in higher-pressure-rated plumbing and industrial applications, can have a meaningfully smaller inside diameter than its outside diameter suggests, and using the wrong figure compounds the error because volume scales with the square of the radius, not linearly.
Pipe specification systems like the Schedule rating used for PVC and steel pipe (Schedule 40, Schedule 80, and so on) exist specifically to standardize wall thickness for a given nominal pipe size, and higher schedule numbers indicate thicker walls designed for higher pressure ratings. Critically, a higher schedule number at the same nominal outside diameter means a smaller actual inside diameter and therefore less internal volume — a detail worth double-checking against a manufacturer's spec sheet rather than assuming from the nominal size alone.
The volume formula itself — π times radius squared times length — is one of the oldest and most reliable in geometry, but it's worth remembering that radius, not diameter, is what actually gets squared in the calculation. This is exactly why halving the diameter incorrectly (or using outside diameter by mistake) produces an error that compounds rather than simply shifting the answer by a fixed amount, since any diameter error gets doubly magnified through the squaring step.
Beyond simple fluid capacity, this same calculation underlies practical tasks like estimating how long it takes to flush contaminants from a length of pipe, calculating the volume of chemical needed to fully purge a pipeline before switching products, or sizing storage for hydraulic fluid in tubing runs — all of which depend on getting the inside-versus-outside diameter distinction right from the start.
Only the inside diameter defines the actual hollow space fluid can occupy; the wall thickness between inside and outside diameter is solid pipe material and holds no fluid, so using outside diameter would meaningfully overestimate the true volume.
Check the pipe's specification sheet or schedule rating (like Schedule 40 or Schedule 80 for PVC), which lists both outside diameter and wall thickness, allowing you to calculate inside diameter by subtracting twice the wall thickness.
Yes, any cylindrical shape uses the same volume formula — just enter the container's inside diameter and its height (used as the 'length' input) to get the same accurate volume calculation.