ETEnggToolsEngineering utilities
Back to standards

standard

ASME B31.3 Pipe Wall, Bend Thickness, Hoop Stress, and Hydrotest: A Beginner's Guide

A step-by-step beginner's guide to every B31.3 calculator input, straight and bend wall equation, temperature factor, hoop-stress utilization, hydrotest check, MAWP result, and warning, with a complete TP316 worked example.

Published Jul 10, 2026

#subsea engineering#fatigue#stress analysis#weld design#buckling#materials#engineering calculations#engineering standards

This guide explains the complete calculation performed by the EnggTools ASME B31.3 Pipe Wall, Hoop Stress and Bend Thinning Calculator in beginner-friendly language. It starts with the physical meaning of pressure and wall thickness, explains every input and symbol, and then reproduces a complete 9.525 mm OD × 1.48 mm wall TP316 example step by step.

The implemented method is based on ASME B31.3-2024, principally paras. 304.1.1, 304.1.2, 304.1.3, 304.2.1, 332.1, 345.2.1, and 345.4.2; Eqs. (2), (3a), (3c), and (24); and Tables A-1, A-3, 302.3.5-1, and 304.1.1-1. ASME B36.10 and B36.19 provide listed pipe dimensions when a standard NPS and schedule are selected. This article explains the method but does not reproduce the Code. Always verify the calculation beside the licensed edition adopted by the project.

1. The calculation in one simple picture

Pressure tries to expand a pipe. The metal wall resists that expansion. A higher pressure, larger outside diameter, lower allowable stress, weaker weld, tighter bend, larger manufacturing tolerance, or larger corrosion allowance can require more wall thickness.

The calculator follows this sequence:

  1. Establish the internal-minus-external pressure difference.
  2. Read temperature-dependent material values S, W, and Y.
  3. Calculate the straight-pipe pressure thickness t.
  4. Add corrosion, erosion, and mechanical allowances to obtain finished required wall tm.
  5. Apply the purchase-specification minus tolerance to the selected nominal wall.
  6. Repeat the pressure calculation at the intrados, extrados, and sidewall of a bend.
  7. Calculate the Eq. (3a)-equivalent operating stress and its utilization.
  8. Calculate the minimum hydrotest pressure, test stress, and test utilization.
  9. Reverse the equation to calculate MAWP and confirm the arithmetic.

2. What this calculator covers and what it does not cover

The calculator covers the internal-pressure wall route for its listed metallic materials or a custom OD and wall. It checks the straight wall, three bend locations, operating stress, a hydrotest hoop-stress screen, MAWP, and a reverse pressure calculation. When calculated pressure thickness is at or above D/6, it calculates Y using the Code expression and clearly marks the case for the special consideration required by para. 304.1.2(b).

It is not a complete piping-system approval. B31.3 also addresses materials, components, branches, joints, fabrication, examination, flexibility, sustained and occasional loads, fatigue, testing, records, and service-specific rules. A green result means that the implemented checks pass; it does not mean that every requirement for the line has been completed.

3. Essential words a beginner should know

TermPlain-language meaning
OD or DThe outside diameter measured across the pipe or tube.
Nominal wall, TnomThe wall thickness ordered or entered before applying a permitted minus tolerance.
Selected minimum wall, TminThe guaranteed minimum wall calculated from nominal wall and minus tolerance.
Pressure thickness, tThe wall required to resist pressure only.
Finished required wall, tmThe pressure thickness plus corrosion, erosion, and mechanical allowances.
IntradosThe inside curve of a bend. It normally has the largest bend factor and often governs the required bend wall.
ExtradosThe outside curve of a bend. It commonly experiences manufacturing thinning, even though its theoretical pressure-design requirement can be lower.
SidewallThe two sides of the bend, approximately halfway between intrados and extrados.
Hoop stressThe circumferential stress that tries to split the pipe lengthwise.
UtilizationCalculated stress divided by a comparison stress, multiplied by 100%.
MAWPThe pressure obtained by reversing the implemented straight-wall equation using the available wall. It is not automatically the rating of the entire assembly.

4. Every calculator input explained

InputWhat to enterWhy it matters
Dimension sourceSelect B36.10/B36.19 for a listed NPS and schedule, or Custom for actual tube OD and nominal wall.Establishes D and Tnom.
MaterialSelect the exact specification and grade, not only a general alloy name.Supplies S, SMYS, tensile strength, temperature range, and the material group used for Y and W.
ConstructionSelect seamless or the actual welded construction shown by the material certificate.Selects quality factor E.
Internal design pressureEnter the coincident internal design gauge pressure in MPa for Metric or psi for Imperial.Defines Pi, the outward pressure load.
External design pressureEnter coincident outside pressure in the same selected pressure unit, or leave blank for zero.It is subtracted to form Pnet; collapse remains a separate check.
Design metal temperatureEnter the metal temperature corresponding to the design pressure case.Selects S, W, and Y.
Minus wall toleranceEnter the permitted negative wall tolerance from the purchase/product specification.Converts nominal wall to guaranteed minimum wall.
Corrosion allowanceEnter thickness reserved for anticipated corrosion.Included in allowance c.
Erosion allowanceEnter thickness reserved for erosive loss.Included in c.
Mechanical allowanceEnter specified removal or mechanical allowance, such as applicable thread or groove depth.Included in c.
Internal weld protrusionEnter radial inward protrusion of the seam, if applicable.Affects only minimum clear ID; it is not part of c.
Bend centreline radius R1Enter the actual radius from the bend centre to the pipe centreline.Determines intrados and extrados bend factors.
Hydrotest temperatureEnter expected metal temperature during the test.Selects ST and WT; the same nominal-wall Y is retained.
Applied hydrotest pressureLeave blank to use the calculated minimum, or enter the actual differential test pressure.Determines the displayed test stress.

5. Keep the units consistent

The calculator provides two complete unit systems. Metric uses millimetres and MPa for dimensions, pressure, and stress. Imperial uses inches and psi. Switching the selector converts every entered dimension and pressure while preserving the same physical case, and the results, verification sheet, and PDF report follow the selected system. The calculation engine retains one consistent internal basis, so the equations and utilization percentages do not change when units are switched. Gauge pressure represents pressure relative to the surrounding reference pressure; do not mix absolute and gauge values in one pressure difference.

6. Internal pressure, external pressure, and Pnet

The internal-pressure equations use the outward pressure difference:

Pnet = max(Pi - Pe, 0)

If external pressure is blank, Pe is zero. If it is present, it reduces the outward differential. This does not complete external-pressure design. Vacuum, subsea pressure, jacket pressure, or any inward load requires a separate collapse and buckling evaluation under para. 304.1.3. When Pe equals or exceeds Pi, internal-pressure thickness becomes zero and external-pressure design governs.

7. Temperature-dependent values S, E, W, and Y

FactorMeaningHow it is selected
SBasic allowable stress at design metal temperature.Exact Table A-1 material/product row with interpolation between stored temperatures.
ELongitudinal weld-joint quality factor.Selected construction and Table A-3 basis. Seamless normally uses 1.0.
WWeld joint strength reduction factor at elevated temperature.Material group, construction, temperature, para. 302.3.5(e), and Table 302.3.5-1.
YSingle coefficient used throughout the calculation.Table 304.1.1-1 for Tnom < D/6; calculated from the nominal-wall expression when Tnom ≥ D/6.

For Tnom ≥ D/6, the calculator does not continue using the tabulated temperature value. It calculates:

Y =d + 2cD + d + 2c

Here d = D - 2Tnom is the nominal inside diameter, D is outside diameter, and c is the sum of allowances. Y is rounded to two decimal places and then held constant across Eq. (3a), Eq. (3c), operating stress, hydrotest stress, and MAWP.

S is not yield strength. S is the allowable used by the operating pressure-design equation. Room-temperature SMYS is used for the room-temperature hydrotest hoop-stress utilization. The tool also calculates ST and WT at hydrotest temperature; ST is used in Eq. (24) to establish minimum hydrotest pressure, not as the hydrotest acceptance utilization denominator.

8. Nominal wall, minimum wall, allowances, and weld protrusion

A nominal wall is not necessarily guaranteed to be present everywhere. The purchase-specification minimum is:

Tmin = Tnom(1 -m100)

Allowances are handled separately:

c = corrosion allowance + erosion allowance + mechanical allowance
tavailable = Tmin - c

Minus tolerance describes possible manufacturing undersize. Allowance reserves metal for loss or removal. Adding the tolerance percentage directly to c mixes different concepts.

The ID displays are:

IDnom = D - 2Tnom
IDmin,display = D - 2(Tnom + p)

Here p is radial inward weld protrusion. It is used only for the bore display, exactly as requested; it is not a pressure-design allowance. A guaranteed minimum bore can also depend on maximum wall and OD tolerances in the purchase specification.

9. Straight-pipe required wall: Eq. (3a) and Eq. (2)

For the implemented thin-wall route, para. 304.1.2(a), Eq. (3a), gives:

t =PnetD2[SEW + PnetY]

This t is pressure thickness only. Para. 304.1.1(a), Eq. (2), adds allowances:

tm = t + c

The selected tube passes when Tmin ≥ tm. The nominal wall required on the entered tolerance basis is:

Tnom,required =tm1 - m/100

The distinction between t, tm, Tmin, and Tnom,required is a common source of disagreement between templates.

10. Bend factors and required wall after bending

Para. 304.2.1 uses Eq. (3c) with a location factor I:

tb =PnetD2[(SEW/I) + PnetY]

Let r = R1/D. Then:

Intrados:

Iin =4r - 14r - 2

Extrados:

Iout =4r + 14r + 2

Sidewall:

I = 1

The sidewall is either side of the bend, halfway between the inner curve (intrados) and outer curve (extrados). It is the neutral side location for the bend-thickness modifier, so para. 304.2.1 uses I = 1.0 there. Consequently, the sidewall pressure thickness equals the straight-pipe pressure thickness for the same inputs. Values such as 1.043 at the intrados and 0.963 at the extrados are dimensionless bend factors, not millimetres. The finished required wall is tm,bend = tb + c.

Intrados I is usually above 1, so its pressure requirement is commonly higher than straight pipe. Extrados I is usually below 1, so its theoretical pressure requirement can be lower. This does not predict manufacturing thinning. The actual finished bend must be measured and compared with the location-specific minimum.

Available reduction = Tmin - tm,bend
Available reduction (%) =100(Tmin - tm,bend)Tmin

11. Operating hoop stress and utilization

The calculator does not use the simplified Barlow expression. It rearranges B31.3 Eq. (3a) to solve for the stress required by the entered pressure and available wall:

Sreq,op =Pnet(D - 2Ytavailable)2tavailableEW

where tavailable = Tmin - c.

Operating utilization is compared with the temperature-dependent B31.3 allowable stress S:

Operating utilization (%) =Sreq,opS× 100

12. Hydrotest pressure, stress, and utilization

For the implemented para. 345.4.2 route, the minimum differential hydrotest pressure is:

PT = 1.5PnetSTS

This temperature-corrected form applies when design temperature is above test temperature. Otherwise the tool uses 1.5Pnet.

The calculator uses an entered applied differential test pressure when supplied; otherwise it uses the calculated minimum. It calculates test hoop stress by rearranging Eq. (3a) with Tmin, WT, and the same nominal-wall coefficient Y:

Sreq,test =PT(D - 2YTmin)2TminEWT
Hydrotest utilization (%) =Sreq,testSY,room× 100

For a room-temperature hydrotest, the calculator compares the test hoop stress with room-temperature yield strength under para. 345.2.1. ST remains visible only because Eq. (24) uses it to establish minimum test pressure. Para. 345.2.1 also requires longitudinal-stress and component pressure-rating checks. Static head, actual test-temperature yield when the test is not at room temperature, fittings, valves, flanges, instruments, and temporary test arrangements remain separate checks.

13. MAWP and the reverse arithmetic check

Rearranging Eq. (3a) gives the available differential pressure capacity:

MAWPnet =2SEWtavailableD - 2Ytavailable

When coincident external pressure was entered:

MAWPinternal = MAWPnet + Pe

This is the capacity of the implemented straight-wall equation. The complete line is limited by the lowest applicable pipe, fitting, valve, flange, joint, branch, nozzle, or load-case limit.

The reverse check inserts calculated straight pressure thickness back into the pressure form of Eq. (3a). It should reproduce Pnet apart from rounding. A difference can reveal an algebra, unit, or data-handling error.

14. Complete worked example: 9.525 mm OD TP316 tube

This example reproduces the reference calculation used to validate the live calculator.

InputValue
Outside diameter D9.525 mm, commonly displayed as 9.53 mm
Nominal wall Tnom1.48 mm
MaterialASTM A312 TP316, UNS S31600
SMYS205 MPa
Design metal temperature150°C
Internal pressure Pi35.000 MPa(g)
External pressure Pe3.298 MPa(g)
Minus tolerance10%
Corrosion, erosion, mechanical allowances0 mm
Radial weld protrusion p0.04 mm; minimum-ID calculation only
Bend centreline radius R160.3 mm
Hydrotest temperature20°C

Step 1 - pressure difference

Pnet = 35.000 - 3.298 = 31.702 MPa

Step 2 - temperature and construction factors

For TP316 at 150°C, the calculator uses S = 138 MPa. For seamless construction, E = 1.000 and W = 1.000. For this austenitic material and temperature, Y = 0.400.

Step 3 - selected minimum wall and inside diameter

Tmin = 1.48(1 -10100) = 1.332 mm
IDnom = 9.525 - 2(1.48) = 6.565 mm
IDmin,display = 9.525 - 2(1.48 + 0.04) = 6.485 mm

Step 4 - straight-pipe pressure thickness

t =31.702 × 9.5252[(138 × 1 × 1) + (31.702 × 0.4)]
t = 1.00199 mm1.002 mm

Because c = 0, tm is also 1.002 mm. The required nominal wall is:

Tnom,required =1.001990.90= 1.113 mm

The selected minimum wall of 1.332 mm is greater than 1.002 mm, so the straight wall passes.

Step 5 - bend factors

r =R1D= 60.39.525 = 6.3307
Iin =4(6.3307) - 14(6.3307) - 2= 1.0429 ≈ 1.043
Iout =4(6.3307) + 14(6.3307) + 2= 0.9634 ≈ 0.963

Step 6 - required bend walls

  • Intrados pressure and finished required wall = 1.041 mm.
  • Extrados pressure and finished required wall = 0.968 mm.
  • Sidewall pressure and finished required wall = 1.002 mm.

Available reductions from Tmin are 21.832% at the intrados, 27.305% at the extrados, and 24.775% at the sidewall. These are acceptance margins, not predicted manufacturing reductions.

Step 7 - operating hoop stress

With tavailable = 1.332 mm:

Sreq,op =31.702(9.525 - 2 × 0.4 × 1.332)2 × 1.332 × 1 × 1= 100.668 MPa
Operating utilization =100.668138× 100 = 72.948%

Step 8 - hydrotest

At 20°C, ST = 138 MPa and WT = 1. The same nominal-wall Y = 0.4 is retained.

PT = 1.5 × 31.702 ×138138= 47.553 MPa

The Eq. (3a)-equivalent hydrotest hoop stress is 151.002 MPa. Its room-temperature yield utilization is:

Hydrotest utilization =151.002205× 100 = 73.660%

The pipe hoop-yield screen passes, while longitudinal-stress and component-rating checks remain required.

Step 9 - MAWP and reverse check

Available-wall differential MAWP is 43.458 MPa. Adding coincident external pressure gives internal MAWP of 46.756 MPa for the implemented straight-wall equation. Reverse substitution returns 31.702 MPa, with a displayed difference of 0.00000%.

15. How to read every main result

Displayed resultHow to interpret it
Selected minimum wallWall guaranteed after entered minus tolerance; compared with required finished walls.
Available operating wallSelected minimum wall minus c; used for operating stress and MAWP.
Straight tPressure-only thickness from Eq. (3a).
Straight tmMinimum finished straight wall after adding c.
Required nominal wallNominal purchase wall needed to guarantee tm under entered tolerance.
Intrados/extrados IDimensionless bend factors, not thicknesses.
Bend t and tmPressure-only and allowance-inclusive minimum walls at each bend location.
Operating utilization / SAllowable-stress comparison for the implemented internal-pressure equation.
Hydrotest utilization / room-temperature yieldPipe hoop-yield screen for a room-temperature test; full para. 345.2.1 acceptance requires additional longitudinal-stress and component-rating checks.
MAWP net/internalDifferential capacity and corresponding internal pressure at entered external pressure.
Reverse-check differenceArithmetic validation; it should be essentially zero.

16. Applicability gates and warnings

The calculator selects one Y from the nominal wall criterion: Table 304.1.1-1 when Tnom < D/6, otherwise Y = (d + 2c)/(D + d + 2c) with d = D - 2Tnom. Formula-derived Y is rounded to two decimal places and used throughout. Separately, when a required pressure-design thickness is not below D/6, the calculator does not present that case as fully approved because para. 304.1.2(b) still requires special consideration. It also warns when Pnet/(SE) exceeds 0.385. These are Code-applicability gates, not extra utilization limits.

Other warnings identify external-pressure review, allowances consuming the wall, hydrotest below minimum pressure, hydrotest hoop stress above stored minimum yield, test temperature outside the simple room-temperature yield screen, and minimum-ID uncertainty associated with weld protrusion and dimensional tolerances.

17. Checks that remain outside this calculator

  • External-pressure collapse, buckling, vacuum, and subsea pressure design under para. 304.1.3.
  • Branch reinforcement and local stresses at small-bore connections.
  • Ratings of fittings, valves, flanges, unions, compression fittings, and equipment connections.
  • Longitudinal stress during hydrotest and pressure-temperature ratings of every component.
  • Static test head, trapped air, temporary supports, test blinds, and hydrotest safety.
  • Sustained weight and pressure loads, thermal expansion, occasional loads, flexibility, fatigue, and vibration.
  • Bend ovality, forming strain, wrinkling, flattening, and finished-bend measurement procedure.
  • Corrosion-rate prediction, local pitting, erosion profiles, damage assessment, and fitness-for-service.
  • Chapter IX High Pressure Fluid Service and other service-specific requirements.

18. A beginner's calculation and review procedure

  1. Confirm governing Code edition, fluid service, and whether Chapter IX applies.
  2. List credible coincident pressure and metal-temperature cases.
  3. Identify exact material specification, grade, UNS, product form, and construction.
  4. Select standard dimensions or enter exact custom OD and nominal wall.
  5. Enter internal and coincident external gauge pressures using the same reference basis.
  6. Enter purchase-specification minus tolerance and each allowance separately.
  7. Enter radial weld protrusion only when a minimum clear-bore display is required.
  8. Enter actual bend centreline radius and hydrotest temperature.
  9. Select Calculate results and first confirm Pnet, S, E, W, Y, and Tmin.
  10. Review straight t, straight tm, and required nominal wall.
  11. Review each bend factor and location-specific finished wall.
  12. Review operating utilization, hydrotest results, MAWP, and every warning.
  13. Download the PDF and independently reproduce at least the straight and governing bend equations.
  14. Complete excluded component, load, test, and project checks before approval.

19. Why two templates may give different answers

  • One uses exact 9.525 mm OD while the other rounds to 9.53 mm before calculating.
  • External pressure is not subtracted before thickness and stress calculations.
  • S, E, W, or Y differs because material, construction, or temperature differs.
  • Minus tolerance is added to allowance c instead of being applied to nominal wall.
  • Weld protrusion is used in pressure thickness instead of only minimum ID.
  • The 1.043 and 0.963 bend factors are mistaken for wall thicknesses.
  • I is placed incorrectly in the bend equation instead of in the SEW/I term.
  • Operating stress does not use Tmin-c, or hydrotest stress does not use Tmin.
  • Intermediate results are rounded too early.

20. Frequently asked beginner questions

Should external pressure be zero when it is unknown?
The field defaults to zero, but zero is still a design assumption. If vacuum, water depth, jacket pressure, or another outside pressure can occur, determine the case and perform the separate external-pressure check.

Why is yield strength 205 MPa but allowable stress only 138 MPa?
They serve different purposes. S is the Code allowable used for pressure design at temperature. SMYS is a material strength value used here for supplementary screens.

Why is hydrotest utilization based on yield rather than S?
Operating utilization is checked against allowable stress S. For a room-temperature hydrotest, para. 345.2.1 permits the pipe stress screen up to room-temperature yield strength, subject also to longitudinal-stress and component-rating limits. ST is retained only for Eq. (24) minimum test-pressure calculation.

Does a passing extrados wall prove the bend is acceptable?
No. It proves the available wall exceeds the theoretical pressure-design minimum at that location. Actual thinning, ovality, wrinkles, strain, and finished dimensions still require verification.

Can calculated MAWP be used as the line rating?
No. It is a straight-pipe-wall result for the implemented equation. The complete line is governed by its lowest applicable component or design limit.

21. Code cross-reference map

Calculation topicB31.3-2024 reference used by the calculator/report
Required finished wall and allowancesPara. 304.1.1 and Eq. (2)
Straight internal-pressure thicknessPara. 304.1.2 and Eq. (3a)
External-pressure collapse and bucklingPara. 304.1.3; separate evaluation not performed here
Bend pressure thicknessPara. 304.2.1 and Eqs. (3c), (3d), and (3e)
Finished thickness after bending/formingPara. 332.1
Allowable stress and material strengthTable A-1
Longitudinal weld quality factor ETable A-3 and applicable product notes
Weld strength reduction factor WPara. 302.3.5(e) and Table 302.3.5-1
Coefficient YTable 304.1.1-1
Hydrotest stress/rating limitationsPara. 345.2.1
Minimum hydrostatic test pressurePara. 345.4.2 and Eq. (24)

The most important beginner habit is to keep the chain visible: source data → pressure difference → temperature factors → pressure thickness → allowances → manufacturing tolerance → bend checks → stress checks → independent review. The calculator and PDF report expose that chain instead of hiding it behind one pass/fail label.