Free tool · Oxygen
Nitrogen purge calculator for vessels and pipelines
Estimate how long it takes, how much nitrogen you need and what it costs to bring a tank, vessel or pipeline from air down to your target oxygen level. Covers flow-through purging, pressure-cycle purging and pipeline purging.
- Time with perfect mixing
- —
- Gas inventory (vessel or pipe)
- —
- O₂ halving time
- —
- Flow velocity · Reynolds number
- —
- Theoretical pipe volumes · time
- —
- Nitrogen cost
- —
- Cylinders needed
- —
- Downtime cost
- —
- Total purge cost
- —
- Analyzer range needed
- —
Method
Flow-through purging assumes the purge gas mixes with the vessel contents and the mixture leaves at the same rate. The oxygen concentration falls exponentially:
C(t) = Cin + (C0 − Cin) · e−K·Q·t / Vn
where Q is the purge flow in Nm³/h, Vn is the gas inventory of the vessel at its pressure and temperature, and K is a mixing factor. With perfect mixing (K = 1), about 3 volume changes take air from 20.9 % to roughly 1 % O₂. Real vessels with poor mixing or dead legs need more, which is why the default is K = 0.5.
Pressure-cycle purging pressurises the vessel with nitrogen and vents it back down, repeating the cycle. Each cycle multiplies the excess oxygen by the pressure ratio Plow/Phigh. Vacuum purging works the same way with a low pressure below atmosphere.
Pipeline purging pushes the air out ahead of the nitrogen rather than diluting it. The tool works out the gas velocity and Reynolds number, estimates how far the nitrogen–air interface spreads using Taylor’s axial dispersion model (turbulent flow: D = 10.1·a·u*; laminar flow: D = Dm + a²u²/48Dm), and finds how many pipe volumes pass before the outlet reaches the target. In a long, straight pipe in turbulent flow this is only slightly more than one pipe volume. The margin factor, 1.5 by default, covers branches, dead legs, valve cavities and uneven flow.
Purge cost is the nitrogen used multiplied by your price per Nm³, per kg of liquid nitrogen (1 kg ≈ 0.80 Nm³) or per cylinder, plus an optional downtime cost per hour for flow-through and pipeline purges. Nitrogen prices vary widely by supplier and delivery method, so the tool does not assume one.
Limits
- You can never purge below the oxygen content of the purge gas itself. PSA nitrogen at 1 % O₂ cannot bring a vessel to 100 ppm.
- The calculation is an estimate for planning. Stratification, dead legs and leaks change the real result, so confirm the end point with an oxygen analyzer at the outlet or the worst-mixed point.
- Pipeline mode assumes one pipe of constant diameter, with nitrogen entering at one end and leaving at the other. The same displacement calculation applies when the gas being removed is a hydrocarbon, but follow your company’s purging procedure and gas-freeing limits.
- This is not a safety assessment. Oxygen-deficient atmospheres are dangerous; follow your site procedures.
Frequently asked questions
How many volume changes does a nitrogen purge need?
With perfect mixing, about 3 volume changes reduce oxygen from 20.9 % to about 1 %, and about 5.3 changes reach 1,000 ppm when the nitrogen itself is very pure. Real vessels need more, so plan with a mixing factor below 1 and confirm with an analyzer.
Is pressure-cycle purging faster than flow-through purging?
For vessels that can take pressure, often yes, because each cycle removes a fixed fraction of the oxygen regardless of mixing. Pressurising to 5 bar(g) and venting to atmosphere removes about 83 % of the excess oxygen per cycle.
Which oxygen analyzer should I use to check a purge?
Use a percent-level analyzer for targets such as 1 to 8 % O₂, and a trace oxygen analyzer for targets in ppm. YORK trace analyzers cover 0.01 ppm to 25 % O₂.
How do I calculate a nitrogen purge for a pipeline?
Work out the gas inventory of the pipe at purge pressure and temperature, then the nitrogen needed to push it out. In turbulent flow a straight pipe needs only slightly more than one pipe volume in theory, because the nitrogen displaces the air like a piston. Branches, dead legs and valve cavities add more, so plan with about 1.5 to 3 pipe volumes and confirm the end point with an oxygen analyzer at the far end.
How do I estimate the cost of a nitrogen purge?
Multiply the nitrogen volume by your supplier’s price per Nm³. For liquid nitrogen priced per kg, 1 kg is about 0.80 Nm³; for cylinders, divide by the gas content of one cylinder. Add downtime if the plant is stopped during the purge. The calculator does this when you enter your price.
More engineering tools
- Dew point calculatorConvert pressure dew point to atmospheric dew point, ppmV, mg/m³ and lb/MMscf, with a pipe condensation check.
- ISO 8573-1 air class checkerFind the ISO 8573-1 water class of your compressed air from a dew point reading at any pressure.
- Analyzer selectorAnswer five questions and get the YORK moisture, oxygen or CO₂ analyzer that fits your application.
- Natural gas water content calculatorConvert water dew point at line pressure to lb/MMscf, mg/Sm³ and ppmV, and check against a pipeline specification.
- SF₆ moisture calculatorConvert SF₆ dew point to ppmV and mg/kg, find the dew point at filling pressure and check IEC limits.
- Hydrogen purity checker (ISO 14687)Check water, oxygen and other impurities against ISO 14687 Grade D for fuel-cell hydrogen.
- Sample line response timeTransport time and T95 response for a gas sample line, from tubing size, length, flow and pressure.
- Moisture and oxygen unit converterppmV, ppmW, mg/m³, mg/Sm³, lb/MMscf and dew point for moisture; %, ppm, ppb and partial pressure for oxygen.
Commissioning a pipeline or inerting a tank?
We can supply portable and online oxygen analyzers to confirm the purge end point, including explosion-proof versions.