Liquid capacity

Pipe Volume Calculator

Estimate a pipe’s internal capacity and the mass of the liquid it contains.

Internal dimensions

Enter pipe and liquid details

Capacity
Capacity summary

Pipe contents

Pipe capacity diagram showing internal diameter, radius, length, and liquid-filled interior
Capacity uses the internal diameter rather than the pipe’s outside diameter.

Your pipe capacity will appear here

Enter the pipe’s inside diameter, length, and liquid density.

How Much Liquid Does a Pipe Hold?

Pipe capacity equals π × inside radius² × length. This pipe volume calculator estimates the liquid held in a completely full, straight circular pipe. It reports liters, cubic meters and U.S. liquid gallons, plus liquid mass from the density you enter.

Use the inner diameter of the bore, not the outer pipe diameter or a nominal trade size without checking it. A 9.4 m length with a 76 mm inside diameter holds about 42.64 L. At an assumed density of 985 kg/m³, the contained liquid has a calculated mass of 42 kg after rounding.

How to Calculate Pipe Capacity

  1. Enter Pipe length for the section whose full internal capacity you need. Use the same bore throughout one calculation.
  2. Enter Inner diameter, measured across the liquid space. If you only know outside diameter and wall thickness, prepare the inside dimension separately.
  3. Choose mm, cm, m, ft or in independently for length and diameter. Initially, length uses m and diameter uses mm.
  4. Enter Liquid density in kilograms per cubic meter. The editable initial value is 1000; replace it with a value appropriate to the liquid and conditions when needed.
  5. Select Calculate capacity. Read liters in the main card, then m³, US gal and liquid mass below. Calculate other pipe sizes separately and add compatible quantities.

Length and diameter start empty with examples shown as placeholders. All three numeric inputs must be positive. The density selector accepts kg/m³ only. No flow velocity, pressure, pipe material, fitting count or partial-fill depth is entered.

Pipe Volume and Liquid Mass Formulas

inside radius in meters = inner diameter in meters ÷ 2

volume in m³ = π × inside radius² × length in meters

liquid mass in kg = unrounded volume in m³ × density in kg/m³

liters = volume in m³ × 1,000; US gallons = volume in m³ × 264.172052

The capacity equation applies the OpenStax right-cylinder formula to the interior space. Mass follows from density as mass divided by volume. Multiplying density by m³ leaves kilograms; this is liquid mass, not pipe-wall mass.

Unit conversions follow the NIST reference. The implementation uses the shortened 264.172052 US gal/m³ factor. Each result rounds independently from the unrounded volume: m³ to four decimals, and liters, gallons and kg to two. Recalculating liters from the rounded m³ card can therefore differ.

Pipe Measurements and Capacity Results

Pipe length
Positive length of a constant-bore section. The selected unit can differ from the diameter unit.
Inner diameter
Positive full diameter across the circular bore. Capacity changes with its square.
Liquid density in kg/m³
Positive mass per cubic meter of the contained liquid. Initial 1000 is editable and does not model temperature or composition.
Internal capacity
Main liquid volume in liters, rounded to at most two decimals.
Cubic meters
The same capacity expressed in m³, rounded to at most four decimals.
U.S. gallons
Capacity in U.S. liquid gallons to at most two decimals. This is not an imperial-gallon result.
Liquid mass
Volume times supplied density, in kilograms to at most two decimals. The pipe itself and fittings are excluded.

The diagram marks the internal space conceptually. It does not show actual fill level, wall dimensions, flow direction or pressure.

Pipe Capacity Calculation Example

Illustrative example. Enter length 9.4 m, inner diameter 76 mm and density 985 kg/m³. Convert diameter to 0.076 m and divide by two for a 0.038 m radius.

Capacity is π × 0.038² × 9.4 ≈ 0.04264272204 m³. This equals about 42.64272204 L. Multiplying the unrounded m³ by 985 gives 42.00308121 kg.

Calculation check. Independent arithmetic matches the displayed 42.64 L, 0.0426 m³, 11.27 US gal and 42 kg. Doubling length to 18.8 m doubles unrounded capacity and displays 85.29 L. Converting the original displayed 0.0426 m³ to liters gives 42.6 L because that card already rounded.

Illustrative 76 mm bore at an assumed density of 985 kg/m³
Pipe lengthCapacityLiquid mass
9.4 m42.64 L42 kg
18.8 m85.29 L84.01 kg

Why Inner Diameter Matters So Much

For a full circular pipe, capacity is proportional to length and to the square of inside diameter. This comparison keeps length at 9.4 m and density at the illustrative 985 kg/m³.

Diameter sensitivity for the same pipe length
Inside diameterCapacityChange from 76 mm
76 mm42.64 LReference
83.6 mm51.6 L21% more before rounding
152 mm170.57 LFour times before rounding

The 83.6 mm bore is 10% larger than 76 mm. Squaring 1.1 gives 1.21, so unrounded capacity rises by 21%. Doubling the bore gives a factor of four. These are geometric comparisons, not interchangeable pipe products.

If a circular pipe has a uniform wall, inner diameter equals outer diameter minus twice the wall thickness. Keep all three lengths in the same unit. This form does not perform that subtraction or select a pipe schedule; enter the prepared inner diameter.

Understanding Pipe Volume and Liquid Mass

Volume describes how much the full interior holds. Mass also depends on density. Changing density alone changes the kg result while all capacity units stay the same. The default does not determine whether the actual liquid is water or establish a precise density at a particular temperature.

Diameter has a stronger geometric effect than length: doubling length doubles volume, while doubling inside diameter quadruples it. Use a verified bore dimension. A nominal pipe size or outside diameter can give a materially different answer.

For several sections, calculate each length/diameter group and add their unrounded volumes when possible. Fittings, valves, tanks and trapped air change the total contained liquid; this one-cylinder model does not account for them automatically.

Capacity is not a flow rate. A pipe holding 42.64 L does not necessarily deliver 42.64 L per minute. Flow needs additional information, and liquid mass does not include the empty pipe, supports or pressure-related loads. Very small positive volumes may round to zero in some cards.

Common Pipe Volume Mistakes

  • Using outside diameter instead of the bore.
  • Entering radius where diameter is requested.
  • Assuming a nominal pipe name is its measured inside diameter.
  • Entering kg/L directly into the kg/m³ density field.
  • Treating capacity as liters per minute.
  • Rebuilding a precise total from rounded cards or adding pipe-wall mass implicitly.

Pipe Volume Calculator FAQs

How do I calculate water volume in a pipe?

Convert inside diameter and length to meters, halve diameter for radius, then calculate π × radius² × length for m³. Multiply by 1000 for liters.

Should I use inside or outside diameter?

Use inside diameter because the result describes liquid space. The outer diameter includes the pipe wall and overstates that space.

Does nominal pipe size give the inside diameter?

Do not assume it does. Use the actual bore or a suitable specification for the pipe. This form has no nominal-size or schedule lookup.

Does density change the capacity?

No. Dimensions determine volume. Density changes only the mass of the liquid in that volume.

What does the liquid mass output include?

It includes the calculated mass of the contained liquid in kilograms. Pipe walls, fittings and supports are not included.

Can this calculate a partly full pipe?

No. It assumes the full circular bore is filled along the entered length. There is no fill-depth input.

Can I calculate several pipe sections?

Calculate each constant-bore group separately, then add volumes in matching units. Keep original dimensions when rounding could affect the total.

Why do liters and cubic meters not convert exactly on screen?

They round independently from unrounded volume. The m³ card has four decimals; multiplying that displayed value by 1000 can lose detail retained by the liter card.

Sources and References