molecalculator

Moles & Molar Mass

Pressure Drop Calculation for Gas

Calculator No. 01-11945 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Pressure drop for gas is calculated using the Darcy–Weisbach equation with the gas density and the friction factor, where the pressure loss ΔP = f × (L/D) × (ρv²/2), and for compressible flow the equation is applied over a differential length and integrated. You enter the pipe dimensions, gas properties, and flow rate, and the calculator returns the pressure drop in pascals or bar.

Formula

The Darcy–Weisbach equation for incompressible flow is:

ΔP = f × (L / D) × (ρ × v² / 2)

  • ΔP = pressure drop (Pa)
  • f = Darcy friction factor (dimensionless)
  • L = pipe length (m)
  • D = pipe internal diameter (m)
  • ρ = gas density (kg/m³)
  • v = average flow velocity (m/s)

For gases, the density is often obtained from the ideal gas law: ρ = P × M / (R × T), where P is absolute pressure (Pa), M is molar mass (kg/mol), R = 8.314 J/(mol·K), and T is absolute temperature (K).

Worked Example

Using the calculator defaults: L = 100 m, D = 50 mm, v = 15 m/s, ρ = 1.225 kg/m³, f = 0.02.

Convert D to meters: D = 50 mm = 0.050 m.

Calculate the velocity head: ρ × v² / 2 = 1.225 × 15² / 2 = 1.225 × 225 / 2 = 137.8125 Pa.

Calculate the geometric factor: L / D = 100 / 0.050 = 2000.

Multiply by friction factor: f × (L/D) = 0.02 × 2000 = 40.

ΔP = 40 × 137.8125 = 5512.5 Pa ≈ 5513 Pa.

In bar: 5512.5 / 100000 = 0.055125 bar ≈ 0.0551 bar.

Assumptions

  • Steady, fully developed flow.
  • Incompressible flow (valid for gases when the pressure drop is less than about 10% of the absolute inlet pressure).
  • Constant friction factor along the pipe.
  • Gas density is constant (for the incompressible case).

When to Use This Calculator

This calculator is for single-phase gas flow in a straight, circular pipe. It is suitable for preliminary sizing of gas pipelines, compressed air systems, and ventilation ducts where the pressure drop is small relative to the operating pressure. For long pipelines or high-pressure drops, you must use the compressible flow equations (e.g., the Weymouth or Panhandle equations for natural gas).

How to Choose the Friction Factor

The friction factor depends on the Reynolds number and the pipe roughness. For laminar flow (Re < 2300), f = 64 / Re. For turbulent flow, use the Colebrook equation or the Moody chart. The default value of 0.02 is typical for commercial steel pipe in fully turbulent flow, but you should calculate the actual value for your conditions.

Reynolds number: Re = ρ × v × D / μ, where μ is dynamic viscosity (Pa·s). For air at 20°C, μ ≈ 1.81 × 10⁻⁵ Pa·s.

Common Mistakes and Misconceptions

  • Unit mix-ups: Always convert diameter to meters before using the formula. A common error is using mm without converting.
  • Using gauge pressure instead of absolute: When calculating density from the ideal gas law, use absolute pressure (gauge + atmospheric).
  • Ignoring compressibility: For gases, if the pressure drop is more than 10% of the inlet absolute pressure, the incompressible formula underestimates the drop. Use the integrated form.
  • Confusing friction factor: The Darcy friction factor (f) is four times the Fanning friction factor (f_F). Check which one your source uses.

Compressible Flow Considerations

For gases, when the pressure drop is significant, the density changes along the pipe. The Darcy–Weisbach equation is then applied to a differential length and integrated, leading to:

P₁² − P₂² = (f × L / D) × (G² × R × T / M) × (something) …

In practice, engineers use the general energy equation with the average density or use specialized correlations. For most short pipes with low pressure drops, the incompressible approximation is adequate.

Safety and Scope

This calculator is for engineering study and design planning only. Always follow your project specifications, relevant codes (e.g., ASME B31.8 for gas transmission), and consult a qualified engineer. For hazardous gases, ensure proper ventilation and follow the safety data sheet (SDS) and your supervisor.

Frequently Asked Questions

What is the difference between Darcy and Fanning friction factor?

The Darcy friction factor (f) is used in the Darcy–Weisbach equation and is four times the Fanning friction factor (f_F). The Fanning factor is common in chemical engineering texts. Always verify which one is used in your friction factor chart or correlation.

Can I use this calculator for natural gas pipelines?

For short sections with low pressure drop, yes. For long pipelines, you should use the Weymouth or Panhandle equations, which account for compressibility and elevation changes. This calculator gives a rough estimate only.

How do I calculate gas density if I don’t know it?

Use the ideal gas law: ρ = P × M / (R × T). For air, M ≈ 0.02897 kg/mol. For other gases, use the molecular weight. Ensure P is absolute pressure in Pa, T in Kelvin.

What is a typical friction factor for smooth pipes?

For smooth pipes (e.g., drawn tubing) in turbulent flow, f can be as low as 0.01. For rough pipes (e.g., concrete), f can be above 0.05. Use the Moody chart or Colebrook equation for accuracy.

Why does the calculator give a pressure drop in Pa, not bar?

Pascal is the SI unit for pressure. The calculator also shows bar for convenience. 1 bar = 100,000 Pa. Many engineers prefer bar for gas systems, but the formula naturally works in SI units.

Does temperature affect pressure drop?

Yes, indirectly. Temperature affects gas density (higher T → lower ρ → lower pressure drop) and viscosity (higher T → higher μ → higher friction factor). The calculator requires density as an input, so you must account for temperature when determining density.

Related

Formula used
in L | Pipe length | m | 100 | 0
in D | Pipe internal diameter | mm | 50 | 1
in v | Gas velocity | m/s | 15 | 0
in rho | Gas density | kg/m³ | 1.225 | 0
in f | Darcy friction factor | - | 0.02 | 0.001 | 1
out dP | Pressure drop | Pa | f * (L / (D / 1000)) * (rho * v^2 / 2) | 0
out dPbar | Pressure drop | bar | dP / 100000 | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →