Pipe Volume Calculator
- Cylinder volume:
V = πd²L / 4 - Cross-sectional area:
A = πd² / 4 - Liquid mass:
m = ρ × V
Use this Pipe Volume Calculator to estimate the internal volume of a pipe from its inner diameter and length. Enter the pipe’s inside diameter, pipe length, and liquid density, then calculate cross-sectional area, internal volume, and estimated liquid mass.
Important Note: This Pipe Volume Calculator estimates static internal pipe volume and liquid mass for a straight, full, cylindrical pipe section. It uses inner diameter, pipe length, and liquid density to calculate cross-sectional area, volume, and estimated filled-pipe liquid mass.
Use the pipe’s inner diameter, not outer diameter. Results can vary if the pipe has wall thickness, fittings, valves, bends, reducers, slope, partial filling, temperature effects, pressure effects, or fluid density changes. This calculator does not calculate flow rate, pressure loss, pump sizing, pipe velocity, or hydraulic performance.
Reviewed by: AjaxCalculators Editorial Team
Last updated: April 29, 2026
Method source: Standard cylinder-volume geometry using A = πd² / 4, V = A × L, and liquid mass = density × volume
Editorial standards: AjaxCalculators Editorial Policy
What This Pipe Volume Calculator Calculates
This calculator estimates the volume inside a cylindrical pipe. It uses the pipe’s inner diameter and length to calculate how much space is available inside the pipe, then uses liquid density to estimate the mass of liquid that would fill that volume.
The calculator can estimate:
- Cross-sectional area
- Internal pipe volume
- Liquid mass
- Volume in different units
- Mass in different units
- Step-by-step derivation
The live tool uses three main inputs: inner diameter, pipe length, and liquid density. It is designed for static capacity estimates, not flow-rate calculations.
What Pipe Volume Means
Pipe volume is the amount of space inside a pipe. For a straight round pipe, the internal volume is the volume of a cylinder.
The key measurement is the inner diameter, not the outer diameter. The inner diameter measures the open space inside the pipe where liquid can fit. The outer diameter includes pipe wall thickness and should not be used for liquid capacity unless the wall thickness has already been subtracted.
Pipe volume is useful for estimating:
- how much water a pipe can hold
- how much liquid is inside a pipe section
- how much a filled pipe may weigh
- how much liquid may need to be drained, flushed, or treated
- how much chemical, antifreeze, or cleaning solution may be needed for a pipe run
How the Pipe Volume Calculator Works
1) Cross-Sectional Area Formula
The calculator first finds the circular cross-sectional area inside the pipe.
A = πd² / 4
In this formula:
- A is cross-sectional area
- π is pi, approximately 3.14159
- d is the inner diameter of the pipe
This formula is equivalent to the circle area formula A = πr², because radius is half of diameter.
2) Internal Pipe Volume Formula
After cross-sectional area is known, the calculator multiplies area by pipe length.
V = A × L
Combining the area and length formulas gives:
V = πd²L / 4
In this formula:
- V is internal pipe volume
- d is inner diameter
- L is pipe length
3) Liquid Mass Formula
To estimate the liquid mass inside the pipe, the calculator multiplies volume by liquid density.
m = ρ × V
In this formula:
- m is liquid mass
- ρ is liquid density
- V is liquid volume
For water near room temperature, a practical density estimate is close to 997 kg/m³, although exact water density changes with temperature and dissolved substances.
Pipe Volume Formula Summary
| What You Want to Find | Formula | Meaning |
|---|---|---|
| Cross-sectional area | A = πd2 / 4 | Area of the circular opening inside the pipe. |
| Pipe volume | V = A × L | Internal pipe volume from area and length. |
| Pipe volume directly | V = πd2L / 4 | Combined cylinder-volume formula using diameter and length. |
| Liquid mass | m = ρ × V | Mass from liquid density and volume. |
| Diameter from radius | d = 2r | Used when radius is known instead of diameter. |
| Radius from diameter | r = d / 2 | Used to connect diameter-based and radius-based circle formulas. |
Worked Example: Pipe Volume from Diameter and Length
Suppose a pipe has:
- Inner diameter: 100 mm
- Pipe length: 12 m
- Liquid density: 997 kg/m³
Step 1: Convert diameter to meters
100 mm = 0.1 m
Step 2: Calculate cross-sectional area
A = πd² / 4
A = π × 0.1² / 4
A = π × 0.01 / 4
A ≈ 0.007854 m²
Step 3: Calculate internal volume
V = A × L
V = 0.007854 × 12
V ≈ 0.09425 m³
Step 4: Convert volume to liters
1 m³ = 1000 L
0.09425 m³ × 1000 ≈ 94.25 L
Step 5: Calculate liquid mass
m = ρ × V
m = 997 × 0.09425
m ≈ 93.97 kg
So, a 100 mm inner-diameter pipe that is 12 m long holds about 0.094 m³, or about 94.25 liters, and contains about 94 kg of water near room temperature.
Worked Example: Small Pipe in Inches and Feet
Suppose a pipe has:
- Inner diameter: 2 inches
- Pipe length: 50 feet
Step 1: Convert diameter to feet
2 inches = 2 ÷ 12 = 0.1667 ft
Step 2: Calculate cross-sectional area
A = πd² / 4
A = π × 0.1667² / 4
A ≈ 0.02182 ft²
Step 3: Calculate pipe volume
V = A × L
V = 0.02182 × 50
V ≈ 1.091 ft³
Step 4: Convert cubic feet to US gallons
1 ft³ ≈ 7.48052 US gallons
1.091 × 7.48052 ≈ 8.16 US gallons
So, a 2-inch inner-diameter pipe that is 50 feet long holds about 1.09 ft³, or about 8.16 US gallons.
Worked Example: Liquid Mass from Pipe Volume
Suppose the internal pipe volume is 0.25 m³, and the liquid density is 850 kg/m³.
Step 1: Use the mass formula
m = ρ × V
Step 2: Substitute the values
m = 850 × 0.25
Step 3: Calculate
m = 212.5 kg
So, a pipe volume of 0.25 m³ filled with a liquid of density 850 kg/m³ contains about 212.5 kg of liquid.
How to Use This Pipe Volume Calculator
- Enter the pipe’s inner diameter.
- Select the diameter unit, such as millimeters, centimeters, meters, inches, or feet.
- Enter the pipe length.
- Select the pipe length unit.
- Enter the liquid density.
- Select the density unit.
- Click Calculate.
- Review the cross-sectional area, internal volume, and liquid mass.
- Use the result-unit dropdowns to view outputs in the units you need.
- Use the step-by-step derivation to check the calculation path.
How to Interpret the Results
| Result | What It Means | Important Caution |
|---|---|---|
| Cross-sectional area | The area of the circular opening inside the pipe. | It is calculated from inner diameter, not outer diameter. |
| Internal volume | The amount of space inside the pipe section. | This assumes the pipe is straight, cylindrical, and completely full. |
| Liquid mass | The estimated mass of liquid inside the pipe. | Mass depends on the entered density; different liquids have different densities. |
| Step-by-step derivation | The formula path and unit conversions used by the calculator. | Check units, inner diameter, length, and density before using the result. |
If the pipe is only partially full, the actual liquid volume and liquid mass will be lower than the full-pipe result.
Inner Diameter vs Outer Diameter
The inner diameter and outer diameter are not the same measurement. Pipe capacity depends on the open space inside the pipe, so this calculator should use inner diameter.
| Measurement | Meaning | Use in This Calculator |
|---|---|---|
| Inner diameter | The open internal width where liquid flows or is stored. | Use this value. |
| Outer diameter | The full outside width of the pipe including wall thickness. | Do not use unless it equals the internal opening. |
| Wall thickness | The pipe material thickness between inner and outer surfaces. | Needed if converting outer diameter to inner diameter. |
Using outer diameter instead of inner diameter will overestimate pipe capacity because the pipe wall does not hold liquid.
Common Unit Conversions for Pipe Volume
| Conversion | Value |
|---|---|
| 1 m3 | 1000 L |
| 1 L | 0.001 m3 |
| 1 ft3 | 28.3168 L |
| 1 ft3 | 7.48052 US gallons |
| 1 US gallon | 3.785411784 L |
| 1 UK gallon | 4.54609 L |
| 1 inch | 25.4 mm |
| 1 foot | 0.3048 m |
Water Density and Liquid Density
The calculator includes liquid density because the same pipe volume can contain different liquid masses depending on what liquid is inside.
For example:
- Water near room temperature is close to 997 kg/m³.
- Some oils are lighter than water.
- Saltwater, syrups, slurries, and chemical solutions may be heavier than water.
Use the actual density of the liquid when accuracy matters. Density can change with temperature, concentration, pressure, and dissolved materials.
Common Liquid Density Examples
These values are general planning examples only. Use product data, engineering data, or laboratory values when precision matters.
| Liquid | Approximate Density | Note |
|---|---|---|
| Water near room temperature | About 997 kg/m3 | Common default for water-filled pipe estimates. |
| Fresh water rounded estimate | About 1000 kg/m3 | Useful for quick planning estimates. |
| Light oil | Often below 1000 kg/m3 | Depends strongly on oil type and temperature. |
| Saltwater | Usually above freshwater | Varies by salinity and temperature. |
| Syrups, slurries, and chemical solutions | Material-specific | Use supplier, lab, or engineering density data. |
Density can change with temperature, concentration, pressure, dissolved materials, and fluid composition.
Pipe Volume vs Flow Rate
Pipe volume and flow rate are different calculations. This calculator estimates static internal capacity, not moving-flow behavior.
| Calculation | What It Measures | Typical Formula | This Calculator? |
|---|---|---|---|
| Pipe volume | How much liquid the pipe can hold when full. | V = πd2L / 4 | Yes |
| Liquid mass | How much the liquid inside the pipe weighs or masses. | m = ρ × V | Yes |
| Flow rate | How much liquid moves through the pipe per unit time. | Q = A × velocity | No |
| Pressure drop | Pressure loss caused by friction, fittings, and flow conditions. | Depends on hydraulic method | No |
For flow rate, velocity, friction loss, pump sizing, or pressure-drop work, use an appropriate hydraulic calculation method instead of a static pipe-volume calculator.
When to Use a Pipe Volume Calculator
A pipe volume calculator is useful whenever a straight pipe can be treated as a cylinder and you need an estimate of internal capacity.
| Use Case | How the Result Helps |
|---|---|
| Water pipe capacity estimates | Estimates how much water a full pipe section can hold. |
| Plumbing and irrigation planning | Helps estimate volume in pipe runs before filling or draining. |
| HVAC and hydronic loop estimates | Supports rough system-volume planning for straight pipe sections. |
| Chemical flushing or dosing estimates | Helps estimate the amount of liquid inside a pipe section. |
| Pipe draining or filling estimates | Shows approximate volume to drain, flush, fill, or treat. |
| Liquid mass estimates | Estimates the mass of the liquid when density is known. |
Important Assumptions and Limitations
- This calculator assumes a straight cylindrical pipe section.
- It assumes the pipe is full when calculating liquid mass.
- It uses inner diameter, not outer diameter.
- It assumes the entered liquid density is appropriate for the fluid, temperature, pressure, and concentration.
- It does not account for fittings, valves, bends, tees, reducers, elbows, tanks, pumps, filters, coils, heat exchangers, or equipment volume.
- It does not calculate partially filled pipe volume.
- It does not calculate flow rate, pipe velocity, pressure drop, friction loss, pump head, or hydraulic performance.
- It does not account for pipe slope, trapped air, expansion, contraction, deformation, corrosion, scaling, deposits, or real system geometry.
- Water density changes with temperature and dissolved substances.
- Displayed values may be rounded for readability.
- For engineering, plumbing, process, chemical dosing, safety, or code-controlled work, verify dimensions, density, and system requirements from official specifications or qualified professional guidance.
Common Mistakes to Avoid
- Do not use outside diameter when the calculator asks for inner diameter.
- Do not forget to convert millimeters, inches, feet, and meters correctly.
- Do not assume all liquids have the same density as water.
- Do not use full-pipe volume for a pipe that is only partially filled.
- Do not ignore fittings, valves, or equipment if they add meaningful volume.
- Do not confuse volume with flow rate.
- Do not use the result for pressure or pump sizing without hydraulic calculations.
- Do not round too aggressively when chemical dosing or safety margins matter.
Practical Uses
This Pipe Volume Calculator can be useful for:
- estimating water volume in a pipe
- calculating pipe capacity in liters, cubic meters, gallons, or cubic feet
- estimating liquid mass inside a pipe
- checking chemical treatment volume
- planning pipe flushing or draining
- checking irrigation or plumbing pipe storage volume
- estimating hydronic system pipe volume
- learning cylinder-volume formulas
- converting pipe dimensions into practical capacity estimates
When You May Need a Different Calculator
This calculator is best for static internal pipe volume. You may need a different calculator or engineering method if your problem involves flow, pressure, or non-cylindrical volume.
| Need | Better Tool or Method |
|---|---|
| Flow rate from velocity | Use Q = A × velocity or a flow rate calculator. |
| Water velocity from flow rate | Use velocity = flow rate ÷ area. |
| Pressure drop or friction loss | Use a hydraulic/friction-loss method such as Darcy-Weisbach or Hazen-Williams where appropriate. |
| Pump head | Use a pump head or hydraulic system calculation. |
| Partially full pipe volume | Use a circular segment or partially filled pipe method. |
| Pipe weight including wall material | Use pipe dimensions, material density, and annular volume. |
| Tank or vessel volume | Use a tank volume calculator. |
| Annular volume around a pipe | Use an annular volume calculation. |
| Volume through fittings, valves, or equipment | Use manufacturer data or a full system-volume takeoff. |
References
- NIST — Circumference, Area and Volume
- USGS Water Science School — Water Density
- NIST Guide to the SI — Conversion Factors
- NIST — Approximate Conversions from U.S. Customary Measures to Metric
Related Calculators
- Volume Calculator
- Cubic Feet Calculator
- Cubic Yard Calculator
- Density Mass Volume Calculator
- Flow Rate Calculator
- Water Intake Calculator
- mg to mL Calculator
- mL to Grams Converter
Pipe Volume Calculator Disclaimer
This Pipe Volume Calculator provides static internal volume and liquid mass estimates for straight, full, cylindrical pipe sections. Results depend on accurate inner diameter, pipe length, selected units, liquid density, and the assumption that the pipe is completely filled.
This calculator does not account for outer diameter, wall thickness unless already reflected in the inner diameter, fittings, valves, bends, tees, reducers, elbows, tanks, pumps, equipment volume, pipe slope, trapped air, partial filling, temperature effects, pressure effects, scaling, corrosion, or real system geometry. It does not calculate flow rate, pipe velocity, pressure drop, friction loss, pump head, hydraulic capacity, or pipe wall weight.
For engineering, plumbing, process-system, chemical dosing, safety, or code-controlled work, verify dimensions, density, volume requirements, and system assumptions using project specifications, manufacturer data, calibrated measurements, or qualified professional guidance.