Barlow's Formula Calculator (Pipe Pressure)

Piping

Barlow formula result15.17 MPa
Hoop stress at this pressure179.50 MPa
In bar151.7 bar
How this was calculated
  1. Barlow's formula: P = 2 S t / (D x SF) with yield strength S = 359 MPa, wall t = 7.11 mm, outside diameter D = 168.30 mm and safety factor 2.
  2. Numerator: 2 x 359 x 7.11 = 5,105.
  3. Denominator: 168.30 x 2 = 337.
  4. Allowable pressure P = 15.17 MPa (151.7 bar).

How much pressure can a pipe hold? For thin-walled pipe the workhorse answer is Barlow's formula: P = 2 S t / (D x SF), where S is the material's yield strength, t the wall thickness, D the outside diameter and SF a safety (design) factor. One equation, three questions - this calculator solves it in all three directions: allowable pressure, hoop stress at a given pressure, and the wall thickness a pressure demands.

The worked example is a real pipe: 168.3 mm outside diameter (a 6-inch line pipe) with a 7.11 mm wall in X52 steel, yield strength 359 MPa. At a safety factor of 2 the allowable pressure is 15.17 MPa - about 151.7 bar. Run the same pipe at 10 MPa and the hoop stress is 118.35 MPa, about a third of yield. Ask the third question - what wall does 15.17 MPa need? - and the formula hands back 7.11 mm, as it must.

Barlow's formula is the thin-wall hoop-stress equation dressed for design use, and it underlies the pressure-design rules of the ASME B31 piping codes. Its limits are as important as its answers, and they are covered below: it is an approximation that assumes the wall is thin compared with the diameter.

Worked examples

Allowable pressure, 168.3 x 7.11 mm X52 pipe

(Allowable pressure · 168.3 · 7.11 · 359 · 2 · 10)

Barlow formula result15.17 MPa
Hoop stress at this pressure179.50 MPa
In bar151.7 bar

Hoop stress at 10 MPa

(Hoop stress · 168.3 · 7.11 · 359 · 2 · 10)

Barlow formula result118.35 MPa
Share of yield strength33.0%
Allowable pressure (SF 2)15.17 MPa

Wall needed for 15.17 MPa

(Required wall thickness · 168.3 · 7.11 · 359 · 2 · 15.17)

Barlow formula result7.11 mm
Selected wall in fields7.11 mm
VerdictToo thin

The equation and its three modes

Hoop stress in a thin cylinder under internal pressure is sigma = P D / (2 t) - the stress trying to split the pipe lengthwise, which is twice the axial stress and therefore the design driver. Barlow's formula is that relation with the allowable stress set to S / SF. Solve for P and you get the pressure rating; solve for sigma to check a working pressure; solve for t to specify a wall.

The calculator's three modes share one set of inputs, so you can flip between questions without re-entering the pipe. The secondary outputs cross-check the modes against each other - the pressure mode also reports the hoop stress at that pressure, and the thickness mode compares the required wall against the wall in the fields.

Outside diameter, and why

Barlow's formula in its code form uses the outside diameter. (The pure thin-wall derivation is indifferent - it uses the mean diameter in careful treatments, and the inside diameter in others; the differences are second-order for genuinely thin walls.) Using the OD is the conservative, standard convention in pipeline work, and it is what this calculator does.

If you are comparing against a source that uses the inside or mean diameter, expect small discrepancies that grow with wall thickness - at t/D of 0.04, like the worked example, they amount to a few percent. For thick-walled vessels the whole formula should be retired in favour of the Lame equations.

Safety factors in practice

The factor SF folds in everything the equation omits: material variability, corrosion and erosion over life, pressure surges, temperature derating, and the consequences of failure. Pipeline codes express it as a design factor by location class - lower (more conservative) factors where a failure hurts more people. Laboratory burst calculations often use SF = 1 against yield or ultimate to predict test results.

The calculator takes SF as a plain input rather than prescribing one, because the right value belongs to the governing code for your service, not to a formula page. What it can do is show the sensitivity: on the worked pipe, moving SF from 2 to 2.5 cuts the allowable pressure from 15.17 to about 12.13 MPa.

Worked examples

Pressure mode: 2 x 359 x 7.11 / (168.3 x 2) = 5,105 / 336.6 = 15.17 MPa. Stress mode at 10 MPa: sigma = 10 x 168.3 / (2 x 7.11) = 118.35 MPa, which is 33.0% of the 359 MPa yield - a comfortable pipe. Thickness mode at 15.17 MPa returns 7.11 mm, closing the triangle.

Try the sensitivity the other way: keep everything and halve the wall to 3.56 mm - the allowable pressure halves to about 7.58 MPa. Barlow is linear in t and S and inverse in D, so all such scalings are proportional, which makes it an excellent estimator for early design conversations.

Limits: when Barlow is not enough

The thin-wall assumption wants t/D below roughly 0.1; beyond that, stress varies significantly across the wall and the Lame (thick cylinder) equations govern. Barlow also says nothing about external pressure and buckling, bending loads, flange and joint ratings (often the real limit of an assembly), fatigue, or elevated-temperature creep - each has its own code rules.

Mill tolerance matters too: pipe is delivered with a wall tolerance (commonly -12.5% on seamless), and design calculations should use the minimum wall, not the nominal. The calculator computes with the wall you enter - enter the minimum if you want the code-style answer.

Materials and yield values

S is the specified minimum yield strength of the pipe grade: X52 in the example is named for 52,000 psi ≈ 359 MPa. Common line-pipe grades run from X42 (290 MPa) to X80 (555 MPa); carbon steel pressure pipe and stainless grades carry their own values in the material standards. Using a measured or typical yield instead of the specified minimum inflates the answer by exactly the margin the specification was protecting.

Temperature derates yield for most steels at elevated service temperatures; the codes publish the factors. The calculator's S input is where that derated value belongs if your service is hot.

Using the calculator well

Enter the outside diameter (not nominal pipe size - NPS 6 pipe has an OD of 168.3 mm, which is the example's origin), the minimum wall, the specified minimum yield, and your code's design factor. Then read the verdicts comparatively: a hoop stress under about half of yield at working pressure is a relaxed design; approaching yield means the safety factor, not the stress, is doing all the work.

Above all, treat the output as the pipe body's rating only. The system's rating is the minimum over pipe, joints, flanges, valves and supports - Barlow certifies one link of that chain, albeit usually the longest one.

A note on units and conversions

Barlow's formula is unit-agnostic as long as the units cohere: pressure and yield in the same unit, diameter and wall in the same unit. The calculator works in millimetres and megapascals, the SI pairing natural to line-pipe standards; 1 MPa = 1 N/mm2, which is why the arithmetic on the worked example (359 MPa yield, 168.3 mm diameter) runs without conversion factors.

Imperial practice quotes the same physics in psi and inches (X52 is literally named for 52,000 psi). If you cross-check this page's 15.17 MPa against an imperial reference, it is about 2,200 psi - and any larger disagreement signals a diameter-convention difference (inside versus outside), not an arithmetic error.

FAQs

What is Barlow's formula?

P = 2 S t / (D x SF) - allowable internal pressure from yield strength S, wall thickness t, outside diameter D and safety factor SF.

What pressure can a 168.3 x 7.11 mm X52 pipe hold?

15.17 MPa (about 151.7 bar) at a safety factor of 2, with yield strength 359 MPa.

What hoop stress does 10 MPa produce in that pipe?

118.35 MPa - about 33% of the yield strength.

Does Barlow's formula use inside or outside diameter?

Outside diameter, as in the ASME B31 code form of the equation.

How thick a wall does 15.17 MPa need?

7.11 mm for the 168.3 mm X52 pipe at a safety factor of 2 - before any corrosion allowance.

Is Barlow's formula exact?

It is the thin-wall approximation, reliable for t/D up to about 0.1; thick-walled vessels need the Lame equations.

Sources

Related calculators

Pipe Volume Calculator
How much water a pipe holds from its inside diameter and length — gallons, litres, cubic feet and the weight of the fill.
Concrete Calculator
Concrete volume for a slab in cubic yards and m³, plus exactly how many 60 lb and 80 lb pre-mix bags — with and without 10% waste.
Board Foot Calculator
Board feet from thickness, width and length — per board and for the whole stack — with the lumber cost at your yard's price per board foot.