Pipe Diameter Calculator from Flow Rate

Pipe Diameter Calculator (Flow Rate & Velocity)

Cubic Meters / Hour (m³/h) Cubic Meters / Second (m³/s) Liters / Minute (L/min) US Gallons / Minute (GPM)
Meters / Second (m/s) Feet / Second (ft/s)

Calculated Results

Required Internal Diameter (ID):

0
Millimeters (mm)
0
Inches (in)
0
Meters (m)

Note: This is the internal diameter. Always select the next standard pipe size up.

How to Calculate Pipe Diameter from Flow Rate

In hydraulic engineering and piping design, determining the correct pipe diameter is crucial for system efficiency. Selecting a pipe that is too small leads to high pressure drops, noise, and erosion, while a pipe that is too large increases material and installation costs.

The Fundamental Formula

The relationship between flow rate, pipe area, and velocity is defined by the continuity equation:

Q = A × v

Where:

  • Q: Volumetric Flow Rate
  • A: Internal Cross-sectional Area of the pipe (πd²/4)
  • v: Fluid Velocity

By rearranging the formula to solve for diameter (d), we get:

d = √[(4 × Q) / (π × v)]

Recommended Flow Velocities

When designing a system, engineers typically use "rule of thumb" velocities to prevent cavitation and minimize friction losses:

Fluid Type Typical Velocity (m/s) Typical Velocity (ft/s)
Water (Suction) 0.5 – 1.5 1.6 – 4.9
Water (Delivery) 1.5 – 3.0 4.9 – 9.8
Compressed Air 15 – 30 50 – 100
Steam (Saturated) 20 – 40 65 – 130

Step-by-Step Calculation Example

Suppose you have a water pump delivering 50 m³/h and you want to maintain a velocity of 2.0 m/s.

  1. Convert Flow Rate to m³/s: 50 / 3600 = 0.01389 m³/s.
  2. Calculate Area (A): A = Q / v = 0.01389 / 2 = 0.006945 m².
  3. Calculate Diameter (d): d = √[(4 × 0.006945) / 3.14159] = 0.094 m.
  4. Convert to mm: 0.094 × 1000 = 94 mm.
  5. Final Selection: You would likely choose a standard 100mm (4-inch) pipe.
function calculatePipeDiameter() { var flowRate = 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(flowRate) || flowRate <= 0 || isNaN(velocity) || velocity <= 0) { alert("Please enter valid positive numbers for flow rate and velocity."); return; } // Convert flow rate to m3/s var q_m3s = 0; if (flowUnit === "m3h") { q_m3s = flowRate / 3600; } else if (flowUnit === "m3s") { q_m3s = flowRate; } else if (flowUnit === "lmin") { q_m3s = flowRate / 60000; } else if (flowUnit === "gpm") { q_m3s = flowRate * 0.00006309; } // Convert velocity to m/s var v_ms = 0; if (velocityUnit === "ms") { v_ms = velocity; } else if (velocityUnit === "fts") { v_ms = velocity * 0.3048; } // Calculate Area (A = Q/v) var area = q_m3s / v_ms; // Calculate Diameter in meters (d = sqrt(4A/PI)) var diameterM = Math.sqrt((4 * area) / Math.PI); // Conversions var diameterMM = diameterM * 1000; var diameterIn = diameterM * 39.3701; // Display results document.getElementById("resMM").innerText = diameterMM.toFixed(2); document.getElementById("resIn").innerText = diameterIn.toFixed(2); document.getElementById("resM").innerText = diameterM.toFixed(4); document.getElementById("pipeResultBox").style.display = "block"; document.getElementById("pipeResultBox").scrollIntoView({ behavior: 'smooth', block: 'nearest' }); }

Leave a Comment