Hydrogen Pipeline Calculator
Calculate pipeline diameter, flow velocity, pressure drop, and compression power for hydrogen gas transport.
About this calculator
This calculator sizes a hydrogen pipeline for preliminary planning using simplified formulas, not the detailed friction and code-compliance analysis a real ASME B31.12 pipeline design requires. Pipe Diameter is sized to hold a fixed target flow velocity of 15 m/s -- it is not derived from the Weymouth equation or any length-and-friction-based sizing method, which means Pipeline Length has no effect on Pipe Diameter, Flow Velocity, Pressure Drop, or Compression Power at all; length only affects the derived Pressure Drop Per Km display figure. Pressure Drop itself is simply Inlet Pressure minus Outlet Pressure as you enter them -- this calculator does not compute how much pressure a given length and diameter of pipe would actually lose to friction; you supply both pressure boundary conditions directly. Hydrogen density uses a simplified ideal-gas approximation (no real-gas compressibility correction), reasonably close for hydrogen at these pressures but not exact.
Compression Power specifically models the power to raise gas from Outlet Pressure up to Inlet Pressure -- effectively the compressor work to establish the pipeline's stated inlet boundary condition, not ongoing power to move gas already inside the pipe -- assuming continuous year-round operation (8,760 hours/year) at an illustrative $0.06/kWh electricity rate to produce Annual Compression Cost; substitute your actual duty cycle and electricity rate for a real cost estimate. Because Inlet Pressure and Outlet Pressure are independent inputs, you can enter an Outlet Pressure at or above Inlet Pressure, which is physically impossible for passive gas flow -- hydrogen cannot flow "uphill" in pressure without a compressor along the route, which this calculator doesn't model. Flow Configuration Status flags that case explicitly, and Pressure Drop, Pressure Drop Per Km, Compression Power, and Annual Compression Cost all show "N/A" rather than a misleadingly small or zero value when it occurs. Treat every result here as an order-of-magnitude planning estimate: real hydrogen pipeline design must also account for hydrogen embrittlement of pipe materials, ASME B31.12 code requirements, and detailed friction-loss calculations that this simplified tool does not perform.
Inputs
Results
Pipe Diameter
50.9 mm
How to Use This Calculator
- Enter Flow Rate (kg/h), Pipeline Length (km), and Inlet Pressure (bar).
- Set Outlet Pressure (bar) below Inlet Pressure — check Flow Configuration Status if any result shows "N/A".
- Review the Pipe Diameter (mm) result.
- Use Flow Velocity (m/s) and Pressure Drop (bar) to inform your decision.
- Use the chart to visualize the results and explore different scenarios by adjusting inputs.
How the result changes with Flow Rate (kg/h)
| Flow Rate (kg/h) | Pipe Diameter |
|---|---|
| 250 | 36 mm |
| 375 | 44.1 mm |
| 750 | 62.3 mm |
| 1,250 | 80.5 mm |
What each input means
- Flow Rate (kg/h)
- Mass flow rate of hydrogen through the pipeline in kg per hour.
- Pipeline Length (km)
- Total length of the hydrogen pipeline in kilometers.
- Inlet Pressure (bar)
- Pressure at the pipeline inlet after compression.
- Outlet Pressure (bar)
- Required minimum pressure at the pipeline outlet.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersFlow Rate (kg/h) = 500, Pipeline Length (km) = 50, Inlet Pressure (bar) = 70, Outlet Pressure (bar) = 40 = 4 input(s) provided
- Calculate Pipe DiameterD = sqrt(4 x Q / (pi x v_target))50.9 = 50.9
- Calculate Flow VelocityFlow Velocity15 = 15
- Calculate Pressure DropPressure Drop30 = 30
Engine last updated . Checked against 4 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Does Pipeline Length affect Pipe Diameter or Compression Power?
No -- this calculator sizes Pipe Diameter purely to hit a fixed 15 m/s target flow velocity for the given Flow Rate, and Compression Power depends only on Flow Rate and the ratio between Inlet Pressure and Outlet Pressure. Pipeline Length only feeds into Pressure Drop Per Km, a derived display figure; it has no effect on Pipe Diameter, Flow Velocity, Pressure Drop, Compression Power, or Annual Compression Cost anywhere else in this calculator.
Does this calculator compute pressure drop from pipe friction, length, and diameter, and what if Outlet Pressure isn't lower than Inlet Pressure?
No -- Pressure Drop is simply Inlet Pressure minus Outlet Pressure as you enter them; the calculator does not derive that drop from a friction equation applied to a given length and diameter. A real pipeline design (typically using the Weymouth or a similar gas-flow equation) works the other direction -- computing how much pressure a specific pipe would lose over a specific length -- which this simplified planning tool does not attempt. Because these are two independent inputs, you can enter an Outlet Pressure equal to or above Inlet Pressure, which is physically impossible for passive flow -- hydrogen can't flow "uphill" in pressure without an inline compressor this calculator doesn't model. When that happens, Flow Configuration Status flags it as "Invalid," and Pressure Drop, Pressure Drop Per Km, Compression Power, and Annual Compression Cost all show "N/A" instead of a misleadingly small or zero number.
What does Compression Power actually represent here?
It's the theoretical isentropic power to compress hydrogen from Outlet Pressure up to Inlet Pressure at the given Flow Rate -- essentially the compressor work needed to establish the pipeline's stated inlet boundary condition, not ongoing power to push gas that's already moving through the pipe. It uses a fixed hydrogen-specific heat ratio (gamma = 1.41) and does not account for real compressor efficiency losses, which would raise the actual electrical power draw above this theoretical figure. Annual Compression Cost then multiplies that power by an assumed 8,760 continuous operating-hours/year and an illustrative $0.06/kWh electricity rate -- substitute your actual duty cycle and local rate for a real facility cost estimate.
How accurate is the hydrogen density used in these calculations?
It's computed from the ideal gas law at the average of Inlet and Outlet Pressure and a fixed 20°C (293 K), with no real-gas compressibility correction. Hydrogen behaves closer to an ideal gas than many other gases at typical pipeline pressures, so the error is smaller than it would be for, say, natural gas, but this is still a simplified estimate rather than a laboratory-grade equation of state.
Is this calculator sufficient for actual hydrogen pipeline design?
No -- treat it strictly as an early planning estimate. Real hydrogen pipeline design must follow ASME B31.12 code requirements, account for hydrogen embrittlement of candidate pipe materials (hydrogen can degrade certain steels' fatigue and fracture resistance over time), and run detailed friction-loss and stress calculations this simplified tool does not perform. Consult a qualified pipeline engineer and the applicable code edition before specifying any real hydrogen pipeline.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Hydrogen Blending Calculator
Calculate the effects of blending hydrogen into natural gas pipelines including energy content changes, CO₂ reduction, and Wobbe Index impact.
Hydrogen EnergyHydrogen Storage Calculator
Calculate compressed hydrogen tank volume, weight, energy content, and storage densities for different tank types.
Hydrogen EnergyAmmonia-to-Hydrogen Conversion Calculator
Calculate hydrogen yield from ammonia cracking, including conversion efficiency, energy content, and net energy balance.
Oil & GasPipeline Flow Calculator
Calculate gas flow rate from pipe diameter and pressure differential.
More in Energy & Utilities.