Refinery Pipe Size Calculator

Enter duty flow to get practical diameters fast. Check velocities against refinery design targets easily. Download tables to support piping reviews and approvals daily.

Inputs

Use operating flow, not peak surge.
Select a unit that matches your datasheet.
Typical liquid lines often use 1–3 m/s.
Adds allowance for fouling and future capacity.
Use operating temperature density.
Needed for Reynolds number and friction.
Straight length only; fittings are excluded.
0.045 mm is typical for new carbon steel.
Affects inside diameter and velocity.
Reset

Example data table

These examples show typical inputs and the resulting nominal size using common schedules.

Service case Flow Design velocity Schedule Suggested NPS Notes
Light hydrocarbon transfer 120 m³/h 2.0 m/s 40 NPS 8 Balanced velocity and pressure drop.
Cooling water supply 300 m³/h 2.5 m/s 40 NPS 12 Check pump head margin for long runs.
Viscous product loading 60 m³/h 1.2 m/s 80 NPS 6 Lower velocity helps limit shear losses.
Slop oil circulation 90 m³/h 1.6 m/s 40 NPS 6 Validate with line routing and fittings.

Formula used

  • Flow conversion: inputs are converted to m³/s.
  • Pipe sizing: D = √(4Q / (πV)), then apply safety margin.
  • Velocity check: V = Q / A using the selected inside diameter.
  • Reynolds number: Re = ρVD / μ (μ from cP to Pa·s).
  • Friction factor: laminar f = 64/Re; turbulent uses Swamee–Jain.
  • Pressure drop: Darcy–Weisbach ΔP = f(L/D)(ρV²/2).

This tool supports preliminary sizing. Confirm final selection with project specifications, corrosion allowance, fittings, elevation, and applicable codes.

How to use this calculator

  1. Enter operating flow and choose the correct unit.
  2. Set a design velocity based on your service.
  3. Add safety margin if future capacity is expected.
  4. Enter density and viscosity at operating temperature.
  5. Provide line length and roughness for a pressure check.
  6. Choose a schedule to reflect your wall thickness choice.
  7. Press Calculate to see results above the form.
  8. Download CSV or PDF to attach to your review package.
Tip: If velocity looks high, raise the nominal size or reduce the target velocity. If ΔP is high, review length, fittings, or consider a larger line.

Flow and velocity basis

Pipe size begins with continuity: Q equals velocity times area. The calculator converts the entered flow to m³/s, applies your design velocity, and computes internal diameter as D = √(4Q/(πV)). In refinery liquid lines, 1–3 m/s is common for transfer and circulation, while 0.6–1.5 m/s often suits suction and viscous services. Validate velocities against erosion, noise, and cavitation limits always.

Safety margin for future duty

The safety margin increases the computed diameter by a chosen percentage before selecting a nominal size. Use 5–10% when duty is well defined, and 10–20% when routing, fouling, or product slate may change. A modest margin can reduce later tie-ins and helps preserve pump head during debottlenecking.

Reynolds number interpretation

Reynolds number Re = ρVD/μ indicates flow regime and friction sensitivity. Below Re 2,300, laminar flow produces higher friction dependence on viscosity and may justify a lower velocity target. Most refinery process lines are turbulent, where friction depends more on diameter and roughness than on viscosity changes. Tracking Re also supports heat-transfer assumptions and helps flag unusually high shear rates in sensitive products.

Roughness and schedule effects

Absolute roughness ε affects turbulent losses. New carbon steel is often approximated near 0.045 mm, while aged or scaled pipe can be higher. Schedule selection changes inside diameter; thicker walls reduce ID, raising velocity and pressure drop for the same nominal size. Use the schedule that meets pressure and mechanical needs, then confirm hydraulics remain acceptable. If corrosion allowance is large, treat the reduced end-of-life ID as the controlling case.

Pressure drop screening and design follow-up

Pressure drop is estimated with Darcy–Weisbach: ΔP = f(L/D)(ρV²/2). The calculator uses laminar f = 64/Re and a fast turbulent correlation (Swamee–Jain) for screening. For detailed design, add equivalent length for elbows, valves, strainers, and control elements, then include elevation changes, vapor pressure margin, and pump curve checks. Fittings can contribute 20–60% of total loss on congested pipe racks, so confirm with a line list and isometric count.


FAQs

1) Which flow unit should I choose?

Use the unit from your datasheet. The calculator converts inputs to m³/s internally, so results remain consistent across m³/h, L/s, L/min, gpm, and bbl/h.

2) What design velocity should I start with?

For many liquid services, 1–3 m/s is a common starting range. Use lower targets for suction, viscous products, or erosion-prone streams, and verify against your project specification.

3) Why does the recommended NPS change with schedule?

Different schedules have different inside diameters. A smaller ID raises velocity and pressure drop at the same flow, which can move the selection to the next larger nominal size.

4) Does this include fittings and valves?

No. The pressure drop uses straight length only. Add equivalent lengths or K-values for elbows, tees, valves, strainers, and control devices during detailed hydraulic calculations.

5) What roughness value should I enter?

0.045 mm is a typical screening value for clean new carbon steel. Increase it for aged, scaled, or internally corroded lines, or follow your company’s standard roughness assumptions.

6) When should I download the report?

Download CSV or PDF after a successful calculation. Attach it to line sizing notes, then update inputs as routing, fittings, and operating conditions become better defined.


Standard nominal size reference

Inside diameters shown are typical values used for quick selection.

NPS Sch 40 ID (mm) Sch 80 ID (mm)
1/2 15.8 13.7
3/4 20.9 18.6

Fatal error: Uncaught TypeError: Argument 1 passed to h() must be of the type string, int given, called in /home/u294241901/domains/codingace.net/public_html/construction/refinery_pipe_size.php on line 634 and defined in /home/u294241901/domains/codingace.net/public_html/construction/refinery_pipe_size.php:9 Stack trace: #0 /home/u294241901/domains/codingace.net/public_html/construction/refinery_pipe_size.php(634): h(1) #1 {main} thrown in /home/u294241901/domains/codingace.net/public_html/construction/refinery_pipe_size.php on line 9