Flow Calculator For Compressible Flow Of Gases

Calculate Isothermal Gas Pressure Drop and Flow Rate

online since 2011
Choose Your Preferred Way to Calculate

Online Calculator

This calculator is not available as Online app.

Desktop App

Pressure drop calculator

Desktop full-featured version.

Free Trial Available
⬇️ Download for Windows ⬇️ MacOS / Linux

Gas Flow Calculator – Calculate Pressure Drop in a Closed Pipeline for Any Perfect Gas

The pressure drop caused by friction during the flow of any perfect gas can be calculated using the following engineering equation:

p12 - p22 = Zm RT ( w A ) 2 ( f L D + 2 ln p1 p2 ) 2

Where:

p1,2 – inlet and outlet pressure of the pipeline;
w – mass flow rate;
Zm – mean compressibility factor;
R – gas constant;
T – temperature;
f – friction factor;
L – pipe length;
D – internal pipe diameter;
A – pipe cross-sectional area.

The equation is derived under the following assumptions:

  • isothermal gas flow
  • no sudden expansions or contractions
  • no mechanical energy added or removed
  • steady-state flow
  • gas behaves as a perfect gas
  • velocity is the cross-sectional average
  • friction factor is constant
  • pipeline is straight and horizontal

The gas constant R used in this equation is obtained from the ratio of the universal gas constant and the molar mass of the gas:

R = Ru M

Where Ru is the universal gas constant, equal to 8314 J/(mol·K) and identical for all perfect gases.

The equation of state for a perfect gas is:

p ρ = RT

Where:

  • p – absolute gas pressure
  • ρ – gas density
  • T – temperature
  • R – gas constant

Volumetric Flow Rate at Varying Conditions

In any steady flow of a fluid, the conservation of mass principle applies. Therefore, in compressible gas flow, the mass flow rate remains constant. However, due to frictional pressure losses, the gas density decreases, causing an increase in its volume, volumetric flow rate, and flow velocity.

If the pressure drop is small and does not produce a significant change in gas density, the flow may be considered incompressible even though the gas is compressible by nature. In such cases, incompressible flow equations can be used to estimate the pressure drop.

The actual volumetric flow rate in a pipeline can be recalculated if the flow rate is known at specific conditions and both sets of parameters (p, T) are available, using the following formula:

q1 = q p p1 T1 T

Where:

q – volumetric flow rate;
p – pressure;
T – temperature.

Gas Flow Velocity

The gas flow velocity can be calculated from the continuity equation using:

v = q A = 4q π D 2

Where:

  • v – gas flow velocity
  • q – volumetric flow rate
  • A – internal cross-sectional area of the pipe
  • D – internal pipe diameter

Registration

Select a fair price and enable the full service:

  • Switch between metric and imperial units in one click
  • Export calculation results in Word .docx or Excel .xlsx format
  • Preview results on one place and copy/paste it in your favorite text editor
  • Send results back to your email
  • Support the future of this project

And even more... get access to the full set of 19 desktop calculators available for MacOS, Linux or Windows.

Full Year Service

Prepaid Monthly Cost
$3.33/month

Full year $39.95/year

Why Use This Calculator?

Accurately calculating gas flow rate and pressure drop is crucial in designing and optimizing pipelines, ventilation systems, and gas distribution networks. This calculator helps determine these values for any gas flowing through a round, closed pipe by applying standard engineering principles.

With this tool, you can:

  • ✔ Ensure proper pipe sizing and avoid excessive pressure losses
  • ✔ Optimize system efficiency and minimize energy costs
  • ✔ Understand flow behavior under different conditions
  • ✔ Improve accuracy in engineering calculations

Whether you’re designing a system, troubleshooting flow issues, or optimizing an industrial process, this calculator provides quick and reliable results.

When Is This Calculator Useful?

This tool is suitable for gases such as:

  • Air, nitrogen, oxygen, carbon dioxide
  • Natural gas, methane, propane, hydrogen
  • Helium, argon, ammonia, and other process gases

It applies to both laminar and turbulent flow regimes, making it useful in industries like oil and gas, HVAC, chemical processing, and power generation.

How Does the Calculation Work?

This calculator assumes that gas temperature remains constant, regardless of the pressure drop. While real-world systems may experience temperature changes due to pressure variations, this model is accurate for:

  • Long pipelines without sudden changes in conditions
  • Pipes with thermal insulation that prevent heat loss
  • Steady-state flow, where external heat exchange compensates for pressure-related cooling

However, for systems where temperature changes significantly due to rapid compression or expansion, an adiabatic flow model would be required.

Volumetric vs. Mass Flow Rate: Understanding the Relationship

Gas flow rate can be expressed as:

  • 1️⃣ Volumetric flow rate (Q): Measured in m³/s, L/min, or SCFM
  • 2️⃣ Mass flow rate (ṁ): Measured in kg/s, lb/min, or g/h

The relationship between these is given by:

ṁ = Q × ρ

Where:

  • = Mass flow rate (kg/s)
  • Q = Volumetric flow rate (m³/s)
  • ρ = Gas density (kg/m³)

Conversion Between Volumetric and Mass Flow Rate

To convert between the two:

Q = ṁ / ρ

Gas density can be calculated using the ideal gas law:

ρ = P / (ZRT)

Where:

  • P = Absolute pressure (Pa)
  • Z = Compressibility factor
  • R = Specific gas constant (J/kg·K)
  • T = Absolute temperature (K)

Calculator Limitations

This calculator is not suitable for:

  • Adiabatic flow, where temperature changes due to pressure variations
  • Sudden flow restrictions causing abrupt pressure changes
  • Systems with significant elevation differences

What Inputs Are Required?

To perform a calculation, enter:

  • 📌 For pressure drop calculation: Flow rate and pipe diameter
  • 📌 For flow rate calculation: Pressure drop and pipe diameter
  • 📌 To convert between volumetric and mass flow: Gas density at operating conditions

Accurate inputs ensure precise calculations for pipeline design and optimization.

Pump selection calculator – head vs flow performance curve

💧 Pump selection calculator — head–flow curves and speed optimization

Pump Selection Calculator
Pipe network calculator

💧 Pipe Network Analysis — online and free to use!

Network Calculator

Desktop App

Pressure drop calculator
Professional-grade pipe flow calculations
Fast. Accurate. Reliable.
Free Trial Available
Win Download MacOS / Linux

Features in desktop app

  • Save/Open multiple results
  • Export to Word and Excel
  • Print results
  • Create list of custom fluid properties
  • Resistance factor K for valves/fittings
  • Pipe surface roughness selection
  • Pipe material selection
  • Gauge vs absolute pressure toggle
  • Compressible isothermal flow
  • Dry air isothermal flow
  • Gas offtake flow
  • Natural gas flow
  • No admin rights required to install

Need a helping hand?

Powered by natural intelligence - NI

calculation_guru

If you need a quick calculation, but you are not still familiar how to use the calculator, you can order calculation service from the calculator developer.

📋 Order calculation service