Calculate Pipe Diameter Given Flow Rate

Pipe Diameter Calculator .pd-calculator-wrapper { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 800px; margin: 20px auto; padding: 20px; background-color: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; } .pd-form-group { margin-bottom: 20px; } .pd-label { display: block; font-weight: 600; margin-bottom: 8px; color: #333; } .pd-input-row { display: flex; gap: 10px; align-items: center; } .pd-input { flex: 2; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; } .pd-select { flex: 1; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; background-color: white; } .pd-btn { width: 100%; padding: 14px; background-color: #0073aa; color: white; border: none; border-radius: 4px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background-color 0.2s; } .pd-btn:hover { background-color: #005177; } .pd-result-box { margin-top: 25px; padding: 20px; background-color: #fff; border-left: 5px solid #0073aa; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: none; } .pd-result-title { font-size: 1.1em; color: #555; margin-bottom: 10px; } .pd-result-value { font-size: 2em; font-weight: 700; color: #0073aa; } .pd-result-sub { font-size: 0.9em; color: #666; margin-top: 5px; } .pd-error { color: #d63638; margin-top: 10px; font-weight: bold; display: none; } .pd-article { margin-top: 40px; line-height: 1.6; color: #333; } .pd-article h2 { color: #23282d; border-bottom: 2px solid #0073aa; padding-bottom: 10px; margin-top: 30px; } .pd-article h3 { color: #444; margin-top: 25px; } .pd-article p { margin-bottom: 15px; } .pd-article ul { margin-bottom: 15px; padding-left: 20px; } .pd-formula-box { background: #eef; padding: 15px; border-radius: 4px; font-family: monospace; margin: 15px 0; } @media (max-width: 600px) { .pd-input-row { flex-direction: column; align-items: stretch; } }

Pipe Diameter Calculator

m³/h L/min L/s GPM (US) ft³/s
m/s ft/s
Typical water velocity: 1.5 – 3.0 m/s (Suction) | 2.0 – 4.0 m/s (Discharge)
Required Internal Diameter
Cross-Sectional Area:

How to Calculate Pipe Diameter from Flow Rate

Sizing a pipe correctly is a fundamental task in fluid mechanics, plumbing, and process engineering. The relationship between pipe diameter, flow rate, and fluid velocity is governed by the Continuity Equation.

The Core Formula

The basic equation connecting these three variables is:

Q = A × v

Where:

  • Q = Flow Rate (volume per time, e.g., m³/s)
  • A = Cross-sectional Area of the pipe (e.g., m²)
  • v = Velocity of the fluid (e.g., m/s)

Since pipes are circular, the Area (A) is calculated as A = π × (d² / 4), where d is the internal diameter. By substituting this into the first equation and solving for diameter, we get:

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

Why Velocity Matters

You might wonder, "Why do I need to input velocity?" In most design scenarios, the Flow Rate (Q) is a requirement driven by the process (e.g., you need to move 100 liters of water per minute). However, the diameter isn't fixed until you decide how fast the fluid should move.

  • Velocity too high: Results in noise, vibration, pipe erosion, and significant pressure loss (head loss) due to friction.
  • Velocity too low: Requires unnecessarily large (and expensive) pipes and may allow suspended solids to settle out of the fluid (sedimentation).

Common Design Velocities:

  • General Water Service: 1.0 to 3.0 m/s (3 to 10 ft/s)
  • Pump Suction: 0.6 to 1.5 m/s (2 to 5 ft/s)
  • Pump Discharge: 1.5 to 3.0 m/s (5 to 10 ft/s)

Calculation Example

Let's say you need to transport water at a rate of 50 m³/h and you want to maintain a velocity of 2 m/s.

  1. Convert Flow Rate: First, convert 50 m³/h to m³/s.
    50 ÷ 3600 = 0.01389 m³/s.
  2. Apply Formula:
    d = √[ (4 × 0.01389) / (3.14159 × 2) ]
    d = √[ 0.05556 / 6.283 ]
    d = √0.00884
    d ≈ 0.094 meters
  3. Result: 0.094 meters is 94 mm. In this case, you would select a standard pipe size with an internal diameter slightly larger than 94mm, such as a DN100 (4-inch) pipe.
function calculateDiameter() { // 1. Get Elements var flowInput = document.getElementById('flowRate'); var flowUnit = document.getElementById('flowRateUnit'); var velInput = document.getElementById('velocity'); var velUnit = document.getElementById('velocityUnit'); var resultBox = document.getElementById('pdResult'); var errorBox = document.getElementById('pdError'); var resMetric = document.getElementById('resultMetric'); var resImperial = document.getElementById('resultImperial'); var resArea = document.getElementById('resultArea'); // 2. Get Values var Q_val = parseFloat(flowInput.value); var V_val = parseFloat(velInput.value); // 3. Validation if (isNaN(Q_val) || isNaN(V_val)) { errorBox.style.display = 'block'; errorBox.innerHTML = "Please enter valid numbers for Flow Rate and Velocity."; resultBox.style.display = 'none'; return; } if (Q_val <= 0 || V_val 1 GPM = 6.309e-5 m3/s Q_base = Q_val * 0.0000630901964; break; case 'cfs': // Cubic feet per second -> 1 cfs = 0.0283168 m3/s Q_base = Q_val * 0.0283168466; break; } // Convert Velocity to m/s switch(velUnit.value) { case 'ms': // Meters per second V_base = V_val; break; case 'fts': // Feet per second -> 1 ft = 0.3048 m V_base = V_val * 0.3048; break; } // 5. Calculate Area (A = Q / v) -> m2 var Area_m2 = Q_base / V_base; // 6. Calculate Diameter (d = sqrt(4A / pi)) -> meters var Diameter_m = Math.sqrt((4 * Area_m2) / Math.PI); // 7. Conversions for Display var Diameter_mm = Diameter_m * 1000; var Diameter_inch = Diameter_m * 39.3700787; var Area_cm2 = Area_m2 * 10000; // 8. Output Results resultBox.style.display = 'block'; // Main result in MM resMetric.innerHTML = Diameter_mm.toFixed(2) + " mm"; // Sub result in Inches resImperial.innerHTML = "≈ " + Diameter_inch.toFixed(3) + " inches"; // Area result resArea.innerHTML = Area_cm2.toFixed(2) + " cm²"; }

Leave a Comment