Industry TemplatesFree calculatorPDF, Excel, Word exportOil and Gas Equipment

ASME B31.8 Pipeline Design Pressure Calculator

For steel gas pipelines, ASME B31.8 sets the design pressure from the pipe diameter, wall thickness and strength, reduced by a design factor that depends on how many buildings are near the line. This calculator applies that formula and shows the answer in psig, bar and MPa.

Your numbers

in

Nominal OD, for example 12.75 for NPS 12.

in

Use nominal wall, and subtract corrosion allowance first if your design requires it.

Your results

Design pressure
2,202.35
Design pressure in psig from the B31.8 formula.
Design pressure (bar)
151.8469
Design pressure (MPa)
15.1847
Hoop stress at design pressure, % of SMYS
72%
Allowed fraction of SMYS used at the design pressure.
Diameter to wall ratio
34
D/t. Very high or very low values need extra design review.

Screening calculation for the basic hoop stress design formula. It does not cover longitudinal stress, thermal expansion, external loads, fittings, valves or the supplementary rules in the code. Final design must be by a qualified engineer using the current edition of ASME B31.8.

Save results:

Design pressure vs wall thickness

Sweeps Nominal wall thickness from 0.15 to 0.75, holding your other inputs fixed.

Link design data to purchasing

Optional review of how pipe design basis data reaches purchase orders and receiving in your ERP.

Optional. The tool and every export work without this. No spam.

How to use the calculator

Enter the pipe OD and nominal wall, pick the API 5L grade for the specified minimum yield strength, then choose the design factor for the class location, the longitudinal joint factor and the temperature factor. The result is the design pressure from the hoop stress equation. The chart sweeps wall thickness so you can see how much extra pressure capability each wall step gives, which helps when you compare schedules or plate suppliers.

The formula and factors

The design pressure is P = (2 S t / D) x F x E x T, where S is the specified minimum yield strength, t is the nominal wall thickness, D is the outside diameter, F is the design factor, E is the longitudinal joint factor and T is the temperature derating factor. Higher class locations have lower design factors because more people live near the line. Temperature above 250 F reduces the allowable pressure.

  • Class 1 Division 1 is 0.80, Division 2 is 0.72.
  • Class 2 is 0.60, Class 3 is 0.50 and Class 4 is 0.40.
  • Use the factors for the code edition your project is bound to.

Worked example

Take 12.75 inch OD, 0.375 inch wall, X52 with a Class 1 Division 2 location, E of 1 and T of 1. Then P = 2 x 52,000 x 0.375 / 12.75 x 0.72 = about 2,202 psig. In that case the hoop stress at the design pressure is 72 percent of SMYS. If the same line passes through a Class 3 area, F drops to 0.50 and the design pressure falls to about 1,529 psig.

Common mistakes

Common mistakes include using actual mill yield instead of the specified minimum, forgetting to deduct corrosion or erosion allowance from the wall, applying the wrong class location factor, and treating the result as the test or relief pressure. Test pressure, relief setting and operating limits are separate calculations governed by their own rules. Hydrostatic test pressure is not the same as design pressure.

Frequently Asked Questions

Is design pressure the same as MAOP?

Not always. The maximum allowable operating pressure is set by the pipeline operator and the regulations in force, using design pressure, test pressure and history. This calculator only returns the design pressure from the hoop stress formula.

Which wall thickness should I enter?

Use the nominal wall thickness, reduced by any corrosion or erosion allowance that your design basis requires. Some jurisdictions also require a mill tolerance reduction for certain checks, so follow the project design basis.

Can I use this for liquid lines under B31.4?

ASME B31.4 uses a related hoop stress formula with different design factors and rules. Do not reuse the B31.8 factors for liquid pipelines. Check the correct code and its design factor table.

Why does temperature change the result?

At higher temperatures the strength of steel falls, so B31.8 applies a derating factor T. At 250 F and below the factor is 1.0. The factor values in the dropdown are for orientation, confirm them against the code edition.

If you want pipe design data and test records checked against purchase and receiving data in your ERP, we can scope that with you.