Pipe Pressure Rating (Barlow) and Hoop Stress Calculator
Calculate the pressure rating of a pipe with Barlow’s formula, the wall thickness needed for a pressure, or the hoop stress, for Schedule 40 and 80 pipe or your own size.
Want this one click away? Pin the Pipe size and pressure lookup widget to a workspace of your own. Try My Dashboard free in your browser.
Try it on My DashboardHow it works
Internal pressure pulls a pipe wall apart around its circumference. The tensile stress in the wall is the hoop stress (circumferential stress). For a thin-walled cylinder it is found by cutting the pipe in half along its length and balancing the pressure force against the wall force on the two cut faces.
σhoop = P D ÷ (2 t) σaxial = P D ÷ (4 t)
P is the internal gauge pressure, D the pipe diameter and t the wall thickness. The axial (longitudinal) stress in a closed-end pipe is half the hoop stress, so the hoop stress sets the wall.
P = 2 S E t ÷ D t = P D ÷ (2 S E)
Barlow’s formula rearranged for the pressure rating P and the required wall t. S is the allowable stress, E the weld or joint factor (1 for seamless pipe) and D the outside diameter. With D the outside diameter the formula is slightly conservative.
The allowable stress is a fraction of the yield strength: a design factor F of 0.72 is used for most gas and oil pipelines (ASME B31.4 and B31.8), 0.5 is a prudent value for water and general process use, and piping codes such as ASME B31.3 publish an allowable stress for each material and temperature. Enter it directly or as F × yield. Two further allowances reduce the wall you can count on: the mill undertolerance (ASTM A53, A106 and API 5L pipe can be up to 12.5 percent thinner than nominal) and any corrosion allowance.
The page also shows the Lamé thick-wall limit (the exact elastic stress at the inside surface, P (rₒ² + rᵢ²) ÷ (rₒ² − rᵢ²)) and a burst estimate, Barlow’s formula with the minimum tensile strength and the nominal wall. For D ÷ t below about 20 the wall is no longer thin: Barlow is conservative, and the Lamé value is the better one. Pipe dimensions are on the Schedule 40 and 80 chart and the flow loss on the Pipe Flow and Pressure Drop Calculator.
Worked example
2-inch Schedule 40 carbon steel pipe (outside diameter 60.33 mm, wall 3.91 mm) with an allowable stress of 138 MPa (20,000 psi) and a seamless joint: P = 2 S t ÷ D = 2 × 138 × 3.91 ÷ 60.33 = 17.89 MPa (2,594 psi, 178.9 bar). The Lamé limit is 19.04 MPa and the burst estimate with a 414 MPa tensile strength is 53.6 MPa (7,777 psi), three times the working pressure. D ÷ t = 15.4.
With the 12.5 percent mill undertolerance the same pipe has an effective wall of 3.91 × 0.875 = 3.42 mm and the rating falls to 15.65 MPa (2,270 psi).
Wall for 15 MPa (150 bar): a 114.3 mm (NPS 4) seamless pipe with S = 138 MPa needs t = 15 × 114.3 ÷ (2 × 138) = 6.21 mm, so after the 12.5 percent tolerance a nominal wall of 7.10 mm. Schedule 40 (6.02 mm) is too thin; Schedule 80 (8.56 mm) is enough.
Things to know
The result is the pressure rating of the straight pipe wall. The rating of a piping system is set by its weakest part: threads (which remove wall), flanges, valves, fittings and welds; use the pressure class of the lowest-rated component.
Threaded pipe loses the thread depth from the wall (about 0.06 to 0.07 in, or 1.5 to 1.8 mm, for NPT up to 2 in), so a threaded Schedule 40 pipe is rated lower; add the thread depth to the corrosion allowance.
The rating falls with temperature: carbon steel keeps its allowable stress to about 400 °F (200 °C), but stainless steel and aluminum lose strength sooner and plastics much sooner. Use the allowable stress for the working temperature.
Fatigue from pressure cycles, water hammer, external loads, thermal expansion and corrosion are not included. For a code pressure vessel or piping design use ASME B31.3, B31.4, B31.8 or BPVC Section VIII and a qualified engineer.
Plastic pipe (PVC, PE) is rated differently, from a long-term hydrostatic strength and a pressure rating (PR) or SDR; this calculator is for metals.
Common questions
What is Barlow’s formula?
P = 2 S t ÷ D (or 2 S E t ÷ D). It gives the internal pressure at which the hoop stress in a thin-walled pipe of outside diameter D and wall thickness t reaches the allowable stress S.
What is the hoop stress formula?
σ = P D ÷ (2 t) for a thin-walled cylinder, equal to P r ÷ t with r the radius. The axial stress in a closed-end cylinder is half that, P D ÷ (4 t). For a thin-walled sphere both stresses are P D ÷ (4 t).
What is the pressure rating of Schedule 40 pipe?
It depends on the size, material and temperature. Using the pipe wall and an allowable stress of 138 MPa, 2-inch Schedule 40 steel is rated about 17.9 MPa (2,590 psi) and 6-inch about 11.7 MPa (1,690 psi); larger sizes are rated lower because the D ÷ t ratio is bigger. Use the calculator for your size.
Why is the hoop stress twice the longitudinal stress?
The pressure acts on the area of a longitudinal cut (diameter × length) and on the cross-section of the pipe end (π D² ÷ 4). The wall area resisting the first is 2 t L and the second is π D t, which gives hoop stress P D ÷ (2 t) and axial stress P D ÷ (4 t).
What design factor should I use?
Use the one your code requires. ASME B31.4 and B31.8 use 0.72 of the yield strength for most pipelines (less near people and roads); AWWA M11 uses 0.5 for water; piping codes such as B31.3 give the allowable stress directly.
When is a pipe a thick-walled cylinder?
When the diameter-to-wall ratio D ÷ t is below about 20. Then the stress varies across the wall, the highest stress is at the inside surface and the Lamé equations are used.
Sources
- ASME B31.3 Process Piping, ASME B31.4 Pipeline Transportation Systems for Liquids and Slurries, ASME B31.8 Gas Transmission and Distribution Piping (pressure design of straight pipe).
- ASME B36.10M, Welded and Seamless Wrought Steel Pipe (dimensions); API 5L and ASTM A53, A106 (material strength).
- Gere, J. M., Goodno, B. J., Mechanics of Materials: thin-walled pressure vessels and thick-walled cylinders (Lamé).
Last reviewed: November 2, 2026
