Pipe diameter calculator
This pipe diameter calculator finds the inside diameter needed to carry a flow at a target velocity, D = √(4Q/(πv)), then picks the smallest standard steel pipe (NPS ⅛ to 24, schedule 40 or 80, ASME B36.10M) that meets it and reports the actual velocity in that size.
Pipe diameter calculator: required ID and standard size
Standard pipe lookup: inside diameter, velocity and capacity
How to use the pipe diameter calculator
Enter the flow, either as a volumetric flow or as a mass flow with the density, then the velocity you do not want to exceed and the schedule. The pipe diameter calculator computes the minimum inside diameter, walks up the ASME B36.10M size list until it finds the first pipe whose inside diameter is at least that large, and shows the velocity you will actually get in it, together with the neighboring sizes so you can see the trade-off. Many plant piping specifications avoid the odd sizes 1¼, 2½, 3½ and 5 inch because fittings and valves are harder to source; the “Sizes to consider” menu skips them. The second panel is a lookup: choose any NPS and schedule to see its dimensions, the velocity for a flow, or the largest flow at a velocity limit.
Pipe diameter calculator formula
From Q = A·v and A = π·D²/4 for a full round pipe, the inside diameter that carries a flow Q at velocity v is:
Q in m³/s and v in m/s give D in meters. Because D grows only with the square root of the flow, doubling the flow raises the required diameter by 41 %, not 100 %. Standard pipe comes in discrete sizes, so the actual velocity is always somewhat below the target. The pipe diameter calculator rounds up to the next standard size, which is the conservative choice when the target is a maximum velocity. For the target velocity itself, see the service ranges in the Fluid Velocity Calculator.
Worked example with the pipe diameter calculator
A pump delivers 20 m³/h of water (19,964 kg/h at ρ = 998.2 kg/m³) and the discharge line should not exceed 1.5 m/s. The required inside diameter is D = √(4 × 0.005556 / (π × 1.5)) = 0.06867 m = 68.7 mm (2.70 in). NPS 2½ schedule 40 has an inside diameter of only 62.7 mm, so the pipe diameter calculator selects NPS 3 schedule 40, ID 77.9 mm (3.068 in), where the actual velocity is 1.165 m/s. The 2½-inch line would have run at 1.80 m/s; the next size up, NPS 3½ (ID 90.1 mm), gives 0.871 m/s, and the 4-inch line, the next standard preferred size (3½-inch pipe is rarely stocked), runs at 0.68 m/s. In schedule 80 the answer is still NPS 3, but the thicker wall leaves 73.7 mm and 1.30 m/s. These are the default inputs of the pipe diameter calculator, so you can reproduce every number above; switch the schedule menu to 80 to see the second case.
Schedule 40 and 80 steel pipe dimensions (ASME B36.10M)
The table lists the data the pipe diameter calculator uses. Outside diameter and wall thickness are the nominal values of ASME B36.10M for welded and seamless wrought steel pipe; inside diameter is OD − 2t. Values are in inches / millimeters (millimeters converted from the exact inch dimensions, so they can differ from the rounded metric figures in the standard by 0.1 mm). Stainless steel pipe to ASME B36.19M shares the same outside diameters, and its schedule 40S walls match schedule 40 up to NPS 10 and 80S match schedule 80 up to NPS 8; above that the S schedules are thinner. The Engineering ToolBox steel pipe dimension table and the Nominal Pipe Size overview give the other schedules.
| NPS | OD (in / mm) | Sch 40 wall | Sch 40 ID | Sch 80 wall | Sch 80 ID |
|---|---|---|---|---|---|
| ⅛ | 0.405 / 10.3 | 0.068 / 1.73 | 0.269 / 6.8 | 0.095 / 2.41 | 0.215 / 5.5 |
| ¼ | 0.540 / 13.7 | 0.088 / 2.24 | 0.364 / 9.2 | 0.119 / 3.02 | 0.302 / 7.7 |
| ⅜ | 0.675 / 17.1 | 0.091 / 2.31 | 0.493 / 12.5 | 0.126 / 3.20 | 0.423 / 10.7 |
| ½ | 0.840 / 21.3 | 0.109 / 2.77 | 0.622 / 15.8 | 0.147 / 3.73 | 0.546 / 13.9 |
| ¾ | 1.050 / 26.7 | 0.113 / 2.87 | 0.824 / 20.9 | 0.154 / 3.91 | 0.742 / 18.8 |
| 1 | 1.315 / 33.4 | 0.133 / 3.38 | 1.049 / 26.6 | 0.179 / 4.55 | 0.957 / 24.3 |
| 1¼ | 1.660 / 42.2 | 0.140 / 3.56 | 1.380 / 35.1 | 0.191 / 4.85 | 1.278 / 32.5 |
| 1½ | 1.900 / 48.3 | 0.145 / 3.68 | 1.610 / 40.9 | 0.200 / 5.08 | 1.500 / 38.1 |
| 2 | 2.375 / 60.3 | 0.154 / 3.91 | 2.067 / 52.5 | 0.218 / 5.54 | 1.939 / 49.3 |
| 2½ | 2.875 / 73.0 | 0.203 / 5.16 | 2.469 / 62.7 | 0.276 / 7.01 | 2.323 / 59.0 |
| 3 | 3.500 / 88.9 | 0.216 / 5.49 | 3.068 / 77.9 | 0.300 / 7.62 | 2.900 / 73.7 |
| 3½ | 4.000 / 101.6 | 0.226 / 5.74 | 3.548 / 90.1 | 0.318 / 8.08 | 3.364 / 85.4 |
| 4 | 4.500 / 114.3 | 0.237 / 6.02 | 4.026 / 102.3 | 0.337 / 8.56 | 3.826 / 97.2 |
| 5 | 5.563 / 141.3 | 0.258 / 6.55 | 5.047 / 128.2 | 0.375 / 9.53 | 4.813 / 122.3 |
| 6 | 6.625 / 168.3 | 0.280 / 7.11 | 6.065 / 154.1 | 0.432 / 10.97 | 5.761 / 146.3 |
| 8 | 8.625 / 219.1 | 0.322 / 8.18 | 7.981 / 202.7 | 0.500 / 12.70 | 7.625 / 193.7 |
| 10 | 10.750 / 273.1 | 0.365 / 9.27 | 10.020 / 254.5 | 0.594 / 15.09 | 9.562 / 242.9 |
| 12 | 12.750 / 323.8 | 0.406 / 10.31 | 11.938 / 303.2 | 0.688 / 17.48 | 11.374 / 288.9 |
| 14 | 14.000 / 355.6 | 0.438 / 11.13 | 13.124 / 333.3 | 0.750 / 19.05 | 12.500 / 317.5 |
| 16 | 16.000 / 406.4 | 0.500 / 12.70 | 15.000 / 381.0 | 0.844 / 21.44 | 14.312 / 363.5 |
| 18 | 18.000 / 457.2 | 0.562 / 14.27 | 16.876 / 428.7 | 0.938 / 23.83 | 16.124 / 409.5 |
| 20 | 20.000 / 508.0 | 0.594 / 15.09 | 18.812 / 477.8 | 1.031 / 26.19 | 17.938 / 455.6 |
| 24 | 24.000 / 609.6 | 0.688 / 17.48 | 22.624 / 574.6 | 1.219 / 30.96 | 21.562 / 547.7 |
Two naming details matter when you compare the pipe diameter calculator output with a vendor catalog. Up to NPS 12 the nominal size is a rounded inside diameter of the old “standard weight” pipe, so a 3-inch pipe has an outside diameter of 3.5 inches; from NPS 14 upward the nominal size equals the outside diameter. And “STD” (standard weight) is identical to schedule 40 only up to NPS 10, while “XS” (extra strong) equals schedule 80 only up to NPS 8; at larger sizes STD stays at 0.375 in (9.53 mm) wall and XS at 0.500 in (12.70 mm), thinner than schedules 40 and 80.
Choosing the target velocity for the pipe diameter calculator
The pipe diameter calculator is only as good as the velocity you give it. Typical starting points are 1 to 3 m/s for pumped liquids (lower end for long lines and for pipes below 2 inch), 0.6 to 1.5 m/s on pump suction, 0.5 to 2 m/s for viscous oils, 15 to 30 m/s for low-pressure gas and 25 to 40 m/s for saturated steam. For gases and steam, enter the actual volumetric flow at line pressure and temperature, not the normal flow; the Flow Rate Calculator converts between the two. These are economic rules of thumb: higher velocity saves pipe cost but raises friction loss roughly with v², and the optimum depends on pipe material, run length, energy price and operating hours.
Velocity sizing versus pressure drop sizing
Velocity sizing with a pipe diameter calculator is fast and is the normal first pass in a line list. It is not enough on its own when the available pressure is limited, for example in gravity flow, pump suction lines where NPSH is tight, long transfer lines, or control-valve loops. In those cases take the size from the pipe diameter calculator, run it through the Pressure Drop Calculator with the real length and fittings, and step up a size if the loss is too high. The Pipeline Sizing Calculator sizes the line directly from an allowable velocity and pressure drop per 100 m. Check the flow regime with the Reynolds Number Calculator as well: viscous liquids in small pipes are often laminar, and then the pressure drop rather than the velocity governs the size.
Common mistakes with a pipe diameter calculator
Using the nominal size as the inside diameter. 2-inch schedule 40 pipe is 52.5 mm inside, 2-inch schedule 80 is 49.3 mm, and neither is 50.8 mm. Ignoring the schedule. Moving from schedule 40 to 80 at the same NPS raises the velocity by about 10 % in the largest sizes, 14 % at 2 inch, about 20–25 % at ¾–1 inch and 30 % or more at ½ inch and below. Rounding down. If the target is a maximum, always take the next size up, as the pipe diameter calculator does. Normal instead of actual gas flow. At 10 bar absolute a normal flow overstates the actual volume about tenfold. Sizing only for normal flow. Run the pipe diameter calculator again at the maximum design flow as well; check the velocity at minimum flow too for slurries that must not settle.
Related calculators
Pick the target velocity with the fluid velocity calculator, verify the selected size with the pressure drop calculator, and find the pump duty with the Pump Power Calculator.
- Fluid Velocity Calculator
- Flow Rate Calculator
- Pressure Drop Calculator
- Continuity Equation Calculator
- Reynolds Number Calculator
- Pump Power Calculator
- All chemical engineering calculators
Frequently asked questions
How does the pipe diameter calculator work out the size from flow rate?
Choose a design velocity, then D = √(4Q/(πv)) with Q in m³/s and v in m/s gives the minimum inside diameter in meters. Round up to the next standard pipe whose inside diameter is at least that value; the pipe diameter calculator does both steps.
What is the inside diameter of a 2-inch schedule 40 pipe?
2.067 inches, or 52.5 mm. The outside diameter is 2.375 in (60.3 mm) and the wall is 0.154 in (3.91 mm). In schedule 80 the inside diameter is 1.939 in (49.3 mm).
What velocity should I use to size a water pipe?
A common design range for pumped water is 1 to 3 m/s on the discharge side and 0.6 to 1.5 m/s on the suction side, with lower values for long lines and quiet building services. Then check the pressure drop of the selected size.
Does the pipe diameter calculator work for gases?
Yes, if you enter the actual volumetric flow at line pressure and temperature (or the mass flow with the actual gas density) and a gas velocity such as 15 to 30 m/s. For long gas lines with a large pressure drop, also check the drop with a compressible method.
Is this pipe diameter calculator free?
Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.