Units
Inputs

Bolt count and stud size are read from B16.5 Table 8 (Class 150) and equivalents.

Washer = 1 standard washer thickness per side (~ 0.16 d_stud).

Result
Standard stud length to order
mm
Stud size × count
Per ASME B16.5 Table 8 / equivalents.
Calculated minimum length
mm
Min before rounding to standard.
Build-up
Formula & Method
L_stud = 2 · T_flange + T_gasket + 2 · T_nut + 2 · T_washer + 2 · thread_projection Round up to next standard length:  1/4″ increments from 2″ to 12″,   1/2″ increments from 12″ to 18″
What this is: stud bolt sizing for raised-face (RF) flange pairs per ASME B16.5. The two flange thicknesses, gasket, two nuts (and washers if used), and thread projection beyond each nut sum to give the minimum stud length, which is then rounded up to a stocked length. Source data:
  • Flange thickness, stud diameter and bolt count: ASME B16.5 (Class 150 to 2500)
  • Heavy hex nut thickness: ASME B18.2.2
  • Standard stud length increments: ASME B16.5 Table II-1 / typical mill stock
Thread projection rationale: ASME PCC-1 (Appendix N) requires at least 1.5 thread pitches above each nut, which equals roughly 3 mm for most stud sizes. 6 mm is preferred when tensioners or impact tools may be used, or when the assembly may be re-torqued later in the asset's life. Brownfield tip: when replacing studs on an aged flange pair, do not just match the old length. Measure the actual flange thickness — older flanges to legacy specs (B16.5-1968, MSS SP-44, or proprietary patterns) can be 5–15% thinner than current B16.5. Equally, gasket thickness has changed: spiral-wound gaskets switched from 1/8″ (3.2 mm) to 0.175″ (4.5 mm) in the 1980s. Order long, cut to fit, then verify the nut runs to flush before final torque-down. RTJ flanges: the ring takes the place of the gasket but the depth into both flange grooves must be added. Use the dedicated B16.20 dimension table for the specific ring number; a quick approximation is 6–25 mm depending on NPS (e.g., R-26 = 8.4 mm; R-37 = 11.1 mm; R-49 = 17.5 mm).
⚠ For preliminary sizing only Results are based on nominal ASME dimensions and typical material densities. They do not account for manufacturing tolerances, coatings, supports, flanges, fittings, corrosion allowance, or actual site conditions. All final designs must be verified by a qualified engineer and validated against the applicable code edition. Piping Passion accepts no liability for decisions made using this tool.