Fluid Mechanics
How to Calculate Pipe Size
Pipe sizing starts with one equation: Q = A × v. The flow rate must equal the pipe's cross-sectional area multiplied by the average velocity. Rearranging for a circular pipe gives you the minimum inside diameter - then you round up to the nearest standard nominal size from a pipe schedule table.
Final answer from the example
Required bore
37.6 mm
Minimum inside diameter at 1.5 m/s
Standard pipe
DN 40
Nearest standard size above requirement
Actual velocity
1.27 m/s
In DN 40 Sch 40 (ID ≈ 40.9 mm)
Key formulas
Required inside diameter
d = √(4Q / πv)
Derived from Q = A × v with A = πd²/4. Q must be in m³/s and v in m/s to get d in metres.
Continuity equation (the source)
Q = A × v
Volumetric flow rate equals pipe cross-sectional area multiplied by average velocity. This is the starting point for all pipe sizing.
Velocity check through an existing pipe
v = Q / A = 4Q / (πd²)
Use this when you already have a pipe and want to confirm the velocity is within acceptable limits for the flow rate.
Variables and units
| Symbol | Meaning | Typical units |
|---|---|---|
| d | Required inside (bore) diameter | mm, in, m |
| Q | Volumetric flow rate | L/min, US gpm, m³/h, m³/s |
| v | Target average flow velocity | m/s, ft/s |
| A | Pipe internal cross-sectional area | mm², m², in² |
Quick reference conversions
General liquid piping
0.5–3 m/s
Typical target velocity band for water and most liquids in service piping.
Chilled water systems
1–2.5 m/s
Common HVAC chilled-water design range.
Domestic water supply
0.5–2 m/s
Lower velocities reduce noise and erosion in household plumbing.
DN 25 Sch 40 ID
≈ 26.6 mm
Actual bore of nominal 1-inch (DN 25) Schedule 40 pipe.
DN 40 Sch 40 ID
≈ 40.9 mm
Actual bore of nominal 1½-inch (DN 40) Schedule 40 pipe.
DN 50 Sch 40 ID
≈ 52.5 mm
Actual bore of nominal 2-inch (DN 50) Schedule 40 pipe.
Step-by-step solved example
Example problem
Size a pipe to carry 100 L/min of water at a target average velocity of 1.5 m/s. Find the minimum inside diameter and identify the nearest standard metric pipe size.
1. Convert flow rate to m³/s
Q = 100 L/min. Convert: 100 ÷ 1,000 ÷ 60 = 0.001667 m³/s. The formula requires SI base units - m³/s for flow rate.
2. Substitute into d = √(4Q / πv)
d = √(4 × 0.001667 / (π × 1.5)) = √(0.006667 / 4.7124) = √0.001415.
3. Calculate the required diameter
d = √0.001415 = 0.03762 m = 37.6 mm. This is the minimum inside diameter that keeps average velocity at or below 1.5 m/s for the given flow.
4. Round up to the nearest standard pipe size
The nearest standard metric size above 37.6 mm is DN 40 (nominal 40 mm). Schedule 40 DN 40 pipe has an actual inside diameter of about 40.9 mm. Use the larger bore - never size down.
5. Verify the actual velocity at the selected size
With DN 40 (ID = 40.9 mm = 0.0409 m): A = π × 0.0409² / 4 = 0.001314 m². v = 0.001667 / 0.001314 = 1.27 m/s. This is within the typical 0.5–3 m/s band for general liquid piping.
Practical field notes
Inside diameter ≠ nominal pipe size
DN 40 pipe is not 40 mm inside diameter. The actual bore depends on both the nominal size and the wall schedule. Always look up the specific inside diameter from a pipe dimension table for your schedule (Sch 40, Sch 80, etc.) before finalising sizing.
Always round up, never down
If the calculated minimum bore falls between standard sizes, choose the next larger nominal size. Choosing a smaller pipe increases velocity above your target, which can cause noise, erosion, and pressure-drop issues.
Pipe sizing is not pressure-drop analysis
This calculation gives you a diameter based on velocity only. A complete design also needs a friction-loss analysis using the Darcy-Weisbach equation or Hazen-Williams formula to confirm the available pressure can drive the required flow through the full pipe run including fittings, bends, and elevation.
Velocity bands are screening guidelines
The 0.5–3 m/s range is a starting point, not a universal code requirement. Acceptable velocity depends on fluid type, pipe material, entrained solids, noise limits, and specific project or code requirements.
Common mistakes to avoid
- Using nominal pipe size (e.g., DN 40) as the inside diameter without checking the actual bore for the specific wall schedule.
- Entering flow rate in L/min without converting to m³/s before using the formula.
- Rounding the calculated bore down to a smaller standard size instead of up.
- Treating velocity bands as code-compliance pass/fail limits rather than as design screening guidelines.
- Skipping the pressure-drop analysis after selecting the pipe size - velocity alone does not confirm the system will work.
When to use the calculator instead
Use the calculator when you need to switch between L/min, gpm, and m³/h, compare multiple nominal pipe sizes side-by-side, or check an existing pipe's velocity for a new flow rate. It also applies the correct inside-diameter values for standard pipe schedules automatically.
Calculation FAQs
How do I calculate pipe diameter from flow rate?
Use d = √(4Q / πv). Convert flow rate to m³/s and choose a target velocity in m/s. The result is the minimum inside diameter in metres. Multiply by 1,000 to get millimetres, then round up to the next standard nominal pipe size.
What target velocity should I use for water?
For general liquid piping, 0.5–3 m/s is the common design range. Use 1–2 m/s for most domestic and commercial water systems for a balance between pipe cost, noise, and erosion. Chilled water and condensate systems often use slightly different ranges.
What is the difference between nominal pipe size and inside diameter?
Nominal pipe size (NPS in the US, DN in metric) is a trade label - not a real dimension. The actual inside diameter depends on both the nominal size and the wall schedule. For example, DN 40 Schedule 40 pipe has an inside diameter of about 40.9 mm, not exactly 40 mm.
Does this calculation give me pressure drop?
No. Pipe sizing from Q = Av gives you a minimum diameter based on velocity only. Pressure drop requires pipe length, roughness, fluid viscosity, fittings, elevation, and the Darcy-Weisbach or Hazen-Williams equation.
Can I use this for gas piping?
This example assumes incompressible liquid flow. Gas piping involves compressibility, pressure ratios, and different velocity limits - typically much higher velocities - and uses a different calculation approach.
References
- Pipe Flow - Velocity and Flow Rate
Engineering ToolBox
Reference for Q = Av, pipe velocity bands, and common unit conversions for liquid piping.
- Pipe Sizing - Recommended Velocities
Engineering ToolBox
Velocity band guidance for water, steam, and other fluids in piping systems.
- Pipe Schedule Charts
Pipe Flow Software
Schedule 40 and Schedule 80 inside diameter reference values for standard DN/NPS pipe sizes.