Pipe Leg — Companion Article
1. What this tool does
Pipe Leg estimates the leg that absorbs thermal expansion, for a straight leg, an L-bend, and a Z-bend. The calculation runs in the browser. It does not call the Engineering API and it does not ship material tables.
2. When to use it
Use it for a first check of a leg length. The result is preliminary. It is not a flexibility analysis.
3. Inputs
- Choose straight leg, L-bend, or Z-bend.
- Enter outside diameter, modulus, and allowable stress. Enter the expansion, or let the page compute Δ = α × run length × temperature difference.
- For an L-bend, enter both runs.
- For a Z-bend, enter the two parallel runs and the offset.
E and Sa use the same stress unit. D and Δ use the same length unit. The page converts the units chosen so the pair stays consistent. If L is wanted in feet while D and Δ are in inches and E and Sa are in psi, the textbook form divides by 144 inside the square root. That factor is a unit conversion, and the page does not apply it twice.
The wall is not an input to the leg formula.
4. How it works
The running tool is the calculation. The straight-leg formula is the same as version 1.0.0:
L = sqrt(3 × E × D × Δ / Sa)
S = 3 × E × D × Δ / L²
The source named on the page is the guided cantilever method, M.W. Kellogg, Design of Piping Systems, and standard piping textbooks. E and Sa are entered by the user. A typical modulus on the page is a near-ambient textbook figure, labelled as not a code value, and it is not adjusted for temperature.
For an L-bend, leg A absorbs the expansion of run B. Leg B absorbs the expansion of run A. The corner elbow is assumed to add no flexibility.
For a Z-bend, the offset absorbs the sum of the absolute expansions of the two parallel runs. Anchors are at the far ends. The elbows add no flexibility. Friction is not included. The offset is the only absorbing leg.
5. Understanding the result
The page reports the minimum leg and, where a length is entered, the stress.
The result is preliminary. It needs engineering review before anyone uses it. It does not change a design.
6. Engineering considerations
E, Sa, α, diameter, lengths, and temperatures are what the user types. A typical modulus on the page is not a code value and is not adjusted for temperature.
The elbows are assumed to add no flexibility. Friction is not included.
The page does not name a code edition. This article does not add one.
7. Example
Basis, entered on the live page on 3 October 2026: NPS 6 Sch 40 carbon steel, outside diameter 168.3 mm, wall 7.11 mm, operating temperature 150°C, install temperature 20°C (temperature difference 130°C), α 12.0×10⁻⁶ /°C, E 203000 MPa, Sa 207 MPa, run 30 m. The wall is not an input to the leg formula. The figures were hand-checked.
Straight leg. Expansion 46.8 mm. Minimum leg L = sqrt(3 × E × D × Δ / Sa) = 4813.8 mm.
L-bend, runs 30 m and 10 m. Expansions 46.8 mm and 15.6 mm. Leg B minimum 4813.8 mm. Leg A minimum 2779.25 mm.
Z-bend, parallel runs 15 m and 15 m, offset 5000 mm. The offset absorbs 46.8 mm. Minimum offset 4813.8 mm. Stress at 5000 mm = 3 × E × D × Δ / L² = 191.87 MPa, which is below the entered Sa of 207 MPa.
8. Standards/references (licensed vs interim)
No catalogue facts are read. The method citation is M.W. Kellogg, Design of Piping Systems, and standard piping textbooks, as the page states. This article does not name a code edition. The page does not name one.
Interim pipe dimensions on this site follow ASME B36.10-2022 Table 2-1. This tool does not use that table.
9. Limitations/disclaimer
- The result is preliminary and needs engineering review. It is not a flexibility analysis.
- The elbows are assumed to add no flexibility. Friction is not included.
- A typical modulus on the page is not a code value and is not adjusted for temperature.
- The page does not ship a material table.
A member check is not an engineering fact.
10. Use the tool
Calculate now: Pipe Leg
Related tools
Pipe Loop, at /tools-training/pipe-loop/, sizes a symmetrical U-loop from the same guided-cantilever length. It is a different page.

