Rearranging the ASME B31.8 design pressure equation for the minimum wall thickness gives:
t_min = P_d × D / (2 × SMYS × F × E_j × T_d)
where D is the pipe outside diameter, P_d is the design pressure, and the denominator collects all the strength and safety factors. This is the wall thickness required to keep the hoop stress within the code-permitted fraction of SMYS.
Because pipe is delivered with a permitted under-tolerance on wall thickness (typically 12.5 % for API 5L), the ordered (or minimum acceptable) thickness must be increased to ensure the mill-thin portion still meets the design requirement:
t_ord = t_min / (1 − mill_tol)
This means the nominal wall ordered from the mill must be at least t_ord so that even the thinnest permissible pipe satisfies t_min.
t_ord:=(t_min)/(1-mill_tol)=0.28 in
Min. ordered thickness incl. mill tolerance
Step 3 — Hoop Stress in Selected Wall Thickness
The actual hoop stress in the selected nominal wall thickness is computed from the Barlow formula to verify it does not exceed F × SMYS × E_j × T_d (the code allowable):
σ_hoop = P_d × D / (2 × t_nom)
The utilisation ratio then expresses the stress as a fraction of SMYS, which must remain ≤ F × E_j × T_d.
sigma_hoop:=(P_d·D_nom)/(2·t_nom)=24.73 ksi
Hoop stress at design pressure
util:=(sigma_hoop)/(SMYS)=0.47
Utilisation ratio (must be ≤ F·E·T)
Code allowable utilisation (F × E × T)
allow:=F·E_j·T_d=0.72
Step 4 — Maximum Allowable Operating Pressure
For the selected nominal wall thickness, the maximum allowable operating pressure (MAOP) is back-calculated using the full ASME B31.8 equation:
MAOP = 2 × SMYS × t_nom × F × E_j × T_d / D
This is the highest pressure that can be applied to the pipe while keeping the hoop stress within the code-permitted limit. It provides a convenient check: MAOP must be ≥ P_d.
MAOP:=(2·SMYS·t_nom·F·E_j·T_d)/(D_nom)=2.2 ksi
MAOP for selected wall thickness
Step 5 — Pressure at Yield (Burst Pressure Reference)
The theoretical pressure to yield the pipe wall (using 100 % SMYS, no design factors) gives an indication of the safety margin against gross yielding. This is not a code requirement but is useful for risk assessment:
P_yield = 2 × SMYS × t_nom / D
P_yield:=(2·SMYS·t_nom)/(D_nom)=3.05 ksi
Theoretical yield pressure (no factors)
safety_factor:=(P_yield)/(P_d)=2.11
Overall safety factor vs. yield
Results & Interpretation
The key outcomes of this calculation are:
t_min — the minimum wall thickness required by ASME B31.8 at the stated design pressure, pipe size, grade, and location class.
t_ord — the minimum thickness to be specified on the purchase order, accounting for the 12.5 % mill under-tolerance. If t_nom ≥ t_ord, the selected schedule is acceptable.
σ_hoop — the actual hoop stress in the selected wall. The utilisation ratio util must not exceed the code allowable F × E_j × T_d.
MAOP — the maximum allowable operating pressure for the chosen wall. MAOP ≥ P_d confirms adequacy of the selected thickness.
safety_factor — for Location Class 1 Div.2 (F = 0.72) and seamless/SAW pipe (E = 1.0) at ambient temperature (T = 1.0), the overall safety factor against yield is 1/0.72 ≈ 1.39, which is typical for gas transmission pipelines in low-population areas. Urban (Class 4, F = 0.40) designs yield safety factors around 2.5.
If t_nom < t_ord, a heavier wall schedule must be selected and the calculation re-run. The MAOP and utilisation ratio should then be re-confirmed for the new nominal thickness.
Assumptions & Limitations
Hoop (circumferential) stress governs; longitudinal and radial stresses are not checked here.
Barlow's formula assumes a thin-walled cylinder (D/t > 20); for very thick walls a Lamé analysis is more appropriate.
No corrosion allowance is included — if an internal or external corrosion allowance is required, add it to t_ord before selecting a schedule.
No bending, thermal expansion, or soil-load stresses are considered; these are checked separately under ASME B31.8 Sections 833 and 834.
Mill tolerance is taken as 12.5 % per API 5L PSL1/PSL2 seamless pipe; verify with the specific pipe specification if different tolerances apply.
Temperature derating factor T_d = 1.0 is valid only up to 121 °C (250 °F); above this temperature use the values in ASME B31.8 Table 841.116A.
This calculation covers design wall thickness only; hydrotest requirements (ASME B31.8 Section 841.3) must be verified separately.
All pressures are gauge pressures.
ASME B31.8 Pipe Wall Thickness Calculation
This worksheet determines the minimum required wall thickness for a gas transmission pipeline in accordance with ASME B31.8 — Gas Transmission and Distribution Piping Systems.
The governing equation is the Barlow hoop stress formula, which relates internal pressure to the circumferential (hoop) stress in the pipe wall. ASME B31.8 introduces design factors to account for location class, joint type, and temperature, giving a design pressure equation:
P = (2 × S × t × F × E × T) / D
where S is the specified minimum yield strength (SMYS), t is the nominal wall thickness, F is the design factor, E is the longitudinal joint factor, T is the temperature derating factor, and D is the outside diameter. This worksheet rearranges for the minimum required wall thickness t and checks the nominal selected thickness.
Pipeline & Material Selection
Select the pipe grade and outside diameter from the dropdowns below. SMYS values follow API 5L and are referenced by ASME B31.8 Table A842.22.
Pipe Grade (API 5L)
Nominal Pipe Size (OD)
Inputs
The following inputs define the design conditions. Design factor F, longitudinal joint factor E, and temperature derating factor T are selected per ASME B31.8 Tables 841.114A, 841.115A, and 841.116A respectively.
Location Class 1, Div. 2 (offshore / remote rural): F = 0.72
Location Class 2 (industrial / sparsely populated): F = 0.60
Location Class 3 (suburban): F = 0.50
Location Class 4 (urban / high-density): F = 0.40
Seamless or SAW pipe: E = 1.0; ERW: E = 1.0 (post-1972); Furnace butt-weld: E = 0.60
T = 1.0 for temperatures ≤ 121 °C; reduced above 121 °C per Table 841.116A