How to Calculate the Pipe Size from Flow Rate

Pipe Diameter & Flow Rate Calculator

GPM (US) m³/h Liters/sec CFM
Feet/sec (fps) Meters/sec (m/s)
Typical range: 2–8 fps for water

Recommended Internal Diameter

0.00" (Inches)
0.00 mm

function calculatePipeSize() { var flow = parseFloat(document.getElementById('flowRate').value); var flowUnit = document.getElementById('flowUnit').value; var velocity = parseFloat(document.getElementById('velocity').value); var velocityUnit = document.getElementById('velocityUnit').value; if (isNaN(flow) || isNaN(velocity) || flow <= 0 || velocity <= 0) { alert("Please enter valid positive numbers for flow rate and velocity."); return; } var flowInM3S = 0; if (flowUnit === "gpm") { flowInM3S = flow * 0.0000630902; } else if (flowUnit === "m3h") { flowInM3S = flow / 3600; } else if (flowUnit === "lps") { flowInM3S = flow / 1000; } else if (flowUnit === "cfm") { flowInM3S = flow * 0.0004719474; } var velocityInMS = 0; if (velocityUnit === "fps") { velocityInMS = velocity * 0.3048; } else { velocityInMS = velocity; } var areaSqM = flowInM3S / velocityInMS; var diameterMeters = Math.sqrt((4 * areaSqM) / Math.PI); var diameterInches = diameterMeters * 39.3701; var diameterMM = diameterMeters * 1000; document.getElementById('diameterInches').innerText = diameterInches.toFixed(2); document.getElementById('diameterMM').innerText = diameterMM.toFixed(2); document.getElementById('resultDisplay').style.display = 'block'; document.getElementById('calculationSummary').innerText = "Based on " + flow + " " + flowUnit + " at a velocity of " + velocity + " " + velocityUnit + "."; }

Understanding Pipe Sizing from Flow Rate

In hydraulic engineering and plumbing, determining the correct pipe size is critical for maintaining efficient fluid transport. If a pipe is too small, fluid velocity increases, leading to high pressure drops, noise, and erosion. If it is too large, material costs increase unnecessarily.

The Pipe Sizing Formula

The relationship between pipe size, flow rate, and velocity is governed by the Continuity Equation. The basic formula to find the cross-sectional area (A) is:

Area (A) = Flow Rate (Q) / Velocity (v)

Once you have the area, you calculate the internal diameter (D) using the area of a circle:

D = √[(4 × Area) / π]

Typical Recommended Velocities

When calculating pipe size, choosing the right velocity is key. Different fluids and applications have different "ideal" velocity ranges to prevent sediment buildup or pipe wear:

Application Recommended Velocity (fps)
General Water Supply 4 – 7 fps
Pump Suction Lines 2 – 4 fps
Pump Discharge Lines 5 – 10 fps
Compressed Air 20 – 50 fps

Practical Example

Suppose you need to transport 100 GPM of water and want to maintain a velocity of 5 feet per second (a standard value for municipal water lines).

  1. Convert Flow Rate: 100 GPM = 0.223 cubic feet per second (cfs).
  2. Calculate Area: Area = 0.223 cfs / 5 fps = 0.0446 square feet.
  3. Calculate Diameter: D = √[(4 × 0.0446) / 3.14159] = 0.238 feet.
  4. Final Result: 0.238 feet × 12 = 2.86 inches.

In this scenario, you would likely choose a standard 3-inch pipe to ensure you stay within the desired velocity range.

Important Considerations

  • Internal vs. External Diameter: This calculator provides the Internal Diameter (ID). Pipes are often sold by Nominal Pipe Size (NPS), where the actual ID varies based on the "Schedule" (wall thickness).
  • Pressure Drop: Smaller pipes cause higher friction losses. If your pipe run is very long, you may need a larger pipe than the velocity suggests to reduce pressure drop.
  • Fluid Type: Viscous fluids (like heavy oils) require much lower velocities (usually 1–3 fps) compared to water.

Leave a Comment