ASME B31.3 Straight Pipe Pressure Calculator

← Back to Engineering Library

Two straight process pipes can share the same outside diameter and nominal wall yet have different internal-pressure results. The material’s allowable stress at design temperature, the applicable joint factors and the wall remaining after allowances all affect the calculation.

Enter the outside diameter and wall basis, then supply the values for the material and design condition from the edition of ASME B31.3 specified for the project. The starting inputs are illustrative so you can follow the arithmetic.

Internal pressure for straight process pipe

Load Grade B carbon steel pipe inputs
View pressure result

Use a listed temperature. Confirm the permitted wall undersize and total allowance after loading the inputs.

Pipe dimensions
Design-temperature inputs

Internal pressure from pipe wall

10.622 MPa

2 × 138 × 1 × 1 × 4.2675 / (114.3 − 2 × 0.4 × 4.2675) = 10.622 MPa

How the nominal wall is allocated

4.2675 mm available for pressure

1 mm allowance · 0.7525 mm permitted undersize

Minimum wall is the entered wall times one minus the permitted undersize fraction. Subtract the total mechanical, corrosion, and erosion allowance to find the available wall. For a guaranteed minimum wall, enter zero undersize.

t = T(1 − f) − c, where T is the entered wall, f is the undersize fraction and c is the total allowance. Default case: 6.02(1 − 0.125) − 1 = 4.2675 mm.

P=2SEWtD−2Yt

In ASME B31.3-2024 equation (3a) solved for pressure, multiply twice the allowable stress S by the dimensionless factors E and W and the available wall t. Divide by the outside diameter D less twice the product of Y and t. Use one length unit throughout. The pressure has the same unit as the allowable stress.

Use code values for the material, product form, joint and design temperature. This calculation covers straight pipe under internal pressure. Paragraph 304.1.2(b) requires a separate evaluation when t reaches D/6 or P/(SE) exceeds 0.385.

Worked example for a straight metallic pipe

Suppose a pipe has a 114.3 mm outside diameter and a 6.02 mm nominal wall. The purchase specification permits the wall to be 12.5% below nominal. The guaranteed minimum is therefore 6.02 × 0.875 = 5.2675 mm. After a 1 mm allowance, 4.2675 mm remains for internal pressure.

Enter S = 138 MPa, E = 1, W = 1 and Y = 0.4. Equation (3a), solved for pressure, gives 2 × 138 × 1 × 1 × 4.2675 divided by (114.3 − 2 × 0.4 × 4.2675), or 10.622 MPa. The available wall is about 3.73% of the outside diameter and P/(SE) is about 0.077. Both are inside the equation’s applicability limits.

Replacing E = 1 with an applicable E = 0.85 changes the numerator by that same factor. With the other inputs unchanged, the result is 9.029 MPa. This shows why the product and joint details belong alongside its size in a pressure check.

Straight pipe pressure under five input conditions

Condition Allowance (mm) Factor E Factor W Available wall (mm) Pressure (MPa)
No added allowance 0.0 1.00 1.00 5.2675 13.206
Reference 1.0 1.00 1.00 4.2675 10.622
Quality factor 0.85 1.0 0.85 1.00 4.2675 9.029
Weld factor 0.90 1.0 1.00 0.90 4.2675 9.560
Larger allowance 2.0 1.00 1.00 3.2675 8.075

Download the straight pipe pressure comparison (PDF)

All cases use 114.3 mm outside diameter, 6.02 mm nominal wall, 12.5% undersize, S = 138 MPa and Y = 0.4.

Seamless Grade B pipe pressure by schedule and temperature

Start with the material marking, nominal pipe size and schedule. The calculator presets cover ASTM A106 Grade B, ASTM A53 Type S Grade B and API 5L Grade B PSL 1 seamless pipe. They load the outside diameter and nominal wall for selected NPS 1 through 8 sizes and Schedules 40 and 80. They also load the allowable stress at a listed metal temperature from ASME B31.3-2024, Table A-1 for SI or A-1C for U.S. customary units.

Use the temperature table that matches the project basis. The output unit switch converts the active inputs while keeping the selected stress basis. Apply a new preset to use a different table point. Review the permitted wall undersize and the mechanical, corrosion and erosion allowances against the actual pipe and service. The preset leaves both deduction fields editable.

For an NPS 4 Schedule 40 A106 Grade B pipe at 400 °F, use a 4.500 in outside diameter, a 0.237 in nominal wall and a 19,900 psi allowable stress. If the specification permits 12.5% undersize and the total allowance is 0.040 in, the wall available to resist pressure is 0.237 × 0.875 − 0.040 = 0.167375 in. With E = 1, W = 1 and Y = 0.4, equation (3a) gives 2 × 19,900 × 0.167375 ÷ (4.500 − 0.8 × 0.167375) ≈ 1,525.738 psi.

Changing the same worked case to Schedule 80 increases the nominal wall to 0.337 in and the result to 2,361.217 psi. Keeping Schedule 40 and raising the metal temperature to 800 °F reduces the stress input to 11,400 psi and the result to 874.041 psi. Compare the schedule and temperature effects separately before comparing suppliers or operating conditions.

For the SI NPS 4 Schedule 40 case at 350 °C, use the printed 118 MPa stress, 114.30 mm outside diameter and 6.02 mm nominal wall. After 12.5% undersize and a 1.00 mm allowance, 4.2675 mm remains. Substituting gives 2 × 118 × 4.2675 ÷ (114.30 − 0.8 × 4.2675) ≈ 9.083 MPa.

Seamless Grade B pipe pressure examples

A106 Grade B, ASME B31.3-2024, with 12.5% nominal-wall undersize, E = W = 1, and Y = 0.4. Total allowance is 0.040 in in the U.S. cases and 1.00 mm in the SI cases.

Pipe size and schedule Metal temperature Allowable stress Pipe wall pressure
NPS 4 Sch 40 400 °F 19,900 psi 1,525.738 psi
NPS 4 Sch 80 400 °F 19,900 psi 2,361.217 psi
NPS 4 Sch 40 800 °F 11,400 psi 874.041 psi
NPS 4 Sch 40 350 °C 118 MPa 9.083 MPa
NPS 4 Sch 80 350 °C 118 MPa 14.038 MPa
NPS 8 Sch 80 400 °C 95.1 MPa 9.116 MPa

Download the Grade B pipe pressure examples (PDF)

Can I use the same preset for welded Grade B pipe?

Use manual inputs for welded pipe. Verify the exact product form, quality factor, weld joint strength reduction factor and allowable stress for the job. The preset loads E = 1 and W = 1 for the specified seamless cases and Y = 0.4 for ferritic steel within the listed range.

Why do older Grade B pressure charts give different values?

Compare the edition, design method, material identification, minimum wall, deductions and temperature. The presets apply the 2024 general straight-pipe equation and Appendix A stresses. A chart for Chapter IX high-pressure fluid service uses its own design rules and stress tables.

What if my pipe size or temperature is missing?

Use manual entry with the exact pipe dimensions and the justified allowable stress at design metal temperature. Check the code’s minimum-temperature rules for cold service. Material note 57 flags potential graphitization after prolonged exposure above 800 °F or 427 °C.

Why can SI and U.S. table results differ?

Appendix A tabulates stress at different temperature points and precision in each system. Converting the display of one case preserves its stress basis. Selecting and applying a point from a different Appendix A table is a separate calculation.

Preset sources are ASME B31.3-2024, Appendix A lines 32, 33 and 39 and Table 304.1.1-1, and ASME B36.10-2022, Table 2-1.

Where this calculation fits

Use it to compare straight sections for a specified pressure and design temperature. For example, compare two purchasing options with different guaranteed wall thicknesses, or budget a corrosion allowance at the start of a design review. Check each operating scenario at its own pressure and temperature. For the assembled line, also evaluate fittings, branch connections, valves, flanges, and any other applicable loads.

Questions about straight pipe pressure

Where do I get allowable stress S?

Use the value for the exact material specification, grade, product form and design metal temperature in the applicable code edition. Check the table notes. The number in the worked example is an entered value for demonstrating the calculation.

How do E and W differ?

E is the applicable quality factor, such as the longitudinal weld-joint or casting quality factor. W is the weld-joint strength reduction factor specified for the design condition. Check the code rules for each before using unity.

What does Y represent?

Y is the coefficient used with the pressure term in the thickness equation. Select it from the edition’s Table 304.1.1-1 for the applicable material and temperature. Confirm that the geometry is within the table’s scope.

How do I enter a measured or guaranteed wall?

Enter the justified minimum wall with 0% undersize, then account for the additional allowances appropriate to that basis. A single measurement may miss a thinner location. For an in-service assessment, use the applicable inspection and fitness-for-service method.

Which deductions belong in the total allowance?

Include the applicable mechanical, corrosion and erosion allowances. Apply the product’s permitted wall undersize in its own field to avoid deducting it twice. Account for thread or groove depth when it applies.

When does the tool require a separate evaluation?

Paragraph 304.1.2(b) applies special considerations when the available wall reaches one-sixth of the outside diameter or when P/(SE) exceeds 0.385. The calculator clears the result if either condition applies.

Can I use the result for a bend or a pipe exposed to vacuum?

Bends and external pressure have their own procedures under paragraph 304. For vacuum, check collapse and stiffness under the applicable external-pressure rules.

What pressure is reported?

The result is the internal pressure differential supported by the entered straight-pipe wall under equation (3a). When the pipe exterior is at atmospheric pressure, it corresponds to gauge pressure. Establish the rating of the complete system separately.

Reference: ASME B31.3-2024, Process Piping, paragraphs 302.3 and 304.1 and Table 304.1.1-1.

Related Engineering Calculators

Share This Article
Tags: