Gas pipe sizing is a tabular lookup, not a designer's guess: the 2021 IFGC and IRC pipe-sizing chapter (IFGC 402.4 / IRC G2413.4) require every section to be sized from the longest run between the point of delivery and the most remote outlet, at the simultaneous full-input load of every appliance on the segment [S2].
For residential and light-commercial work the inputs are the appliance nameplate BTU/h, a heating-value divisor (about 1,000 BTU/ft³ for natural gas, 1,100 BTU/ft³ per the California handout [S1]), and one of the code tables that fix specific gravity, inlet pressure, and allowable pressure drop (e.g., Schedule 40 metallic, 0.60 SG, less than 2 psi inlet, 0.5 in. w.c. drop in IFGC Table 402.4(2) [S4]). The output is a nominal pipe size, not a Cv or velocity class; fuel-gas code sizing is capacity-driven, with pressure drop as the boundary condition.
The four inputs every code-table path needs
A code-table gas-pipe sizing always starts with the same four numbers, and skipping any one of them puts the calculation into guesswork [S2].
First, the load: sum the nameplate maximum input in BTU/h for every appliance that can run at the same time on the segment, including the water heater, dryer, range, furnace, boiler, and any future generator or pool-heater stub-out that the utility letter or AHJ has approved as part of the connected load [S2]. Second, the gas: convert BTU/h to CFH by dividing by the local heating value; the IFGC examples use about 1,000 BTU/ft³ for natural gas [S2], while the California CPC handout uses 1,100 BTU/ft³ to estimate volume when the local heating value is not posted [S1]. Third, the run: use total equivalent length, not straight-run tape measure; add fittings, valves, tees, meter, regulator, flexible connectors, and any elevation penalty the manufacturer calls out, because the code table assumes a hydraulic-equivalent length from meter to most remote outlet [S2][S3]. Fourth, the table: pick the row set that matches the pipe material, gas, inlet pressure, and pressure drop. Mixing those four breaks the lookup, and the worst error is undersizing a segment that later gets a generator or boiler added.
For one worked example from the Beckett tutorial using NFPA 54's longest-run method: a system with a 270,000 BTU/h total load and an 85 ft longest run rounds up to the 90 ft row of the natural-gas table; segment A/B at the full 270,000 BTU/h reads as 1.25 in. nominal, segment B/C at 240,000 BTU/h after subtracting the 30,000 BTU/h dryer also reads as 1.25 in. nominal (2017-08) [S5].
Schedule 40 steel vs CSST vs copper Type K: when the row set changes
Three material families are commonly accepted for indoor fuel-gas distribution, and each has its own lookup rows because the friction loss per foot differs. [S3]
Schedule 40 black iron is the default: the IFGC Table 402.4(2) / IRC Table G2413.4(1) values for natural gas at 0.60 SG, less than 2 psi inlet, and 0.5 in. w.c. drop give, at 100 ft, capacities of 50 CFH (1/2 in.), 104 CFH (3/4 in.), 195 CFH (1 in.), 400 CFH (1-1/4 in.), 600 CFH (1-1/2 in.), 1,160 CFH (2 in.), 1,840 CFH (2-1/2 in.), 3,260 CFH (3 in.), and 6,640 CFH (4 in.), based on actual internal diameters of 0.622, 0.824, 1.049, 1.380, 1.610, 2.067, 2.469, 3.068, and 4.026 in. respectively [S4]. The same 1 in. row drops to 134 CFH at 200 ft and 92 CFH at 400 ft, which is the friction loss the code is regulating, not the pipe's pressure rating [S4].
Corrugated stainless steel tubing (CSST) is accepted in most U.S. jurisdictions but the row set is rated by EHD (equivalent hydraulic diameter), not nominal IPS, and the lookup tables live in the manufacturer's installation instructions, not in the IFGC; using the Schedule 40 table for CSST is a common estimator mistake [S3]. Copper Type K is allowed by IFGC where the local amendment permits it, but it has its own pressure-drop rows and is the most material-sensitive of the three for utility-gas acceptance [S3]. For a deeper view of how building-services pipe selection is converging around material-specific tables, see this PPR selection breakdown for commercial buildings, which runs a parallel material-specific sizing logic for water service.
Who this is for, and who should not use the table alone

The longest-run table method is designed for residential and small commercial systems on a single meter with inlet pressure under 2 psi, a handful of appliances, and standard Schedule 40 steel or listed CSST. [S1]
It is not the right tool for any of the following: systems over 2 psi inlet pressure (which use a different table family in IFGC Chapter 4), undiluted LP-gas service (NFPA 54 capacity tables assume natural gas at 0.60 SG, while LP at 1.50 SG and 2,516 BTU/ft³ is a separate table set [S3]), piping that needs to be engineered for pressure-drop, pulsation, or two-phase flow, or any installation where the AHJ has adopted a different fuel-gas code (e.g., the California CPC path, which paraphrases but does not replace the same longest-run logic) [S1]. If any of those conditions apply, the right next step is the IFGC's "engineering methods" clause, which lets a qualified professional use the Spitzglass equation or equivalent to size a system the tables cannot cover, and the same applies for industrial gas selection at the process-plant level, where the deliverable is a spec, not a pipe schedule.
Common sizing failures and how to avoid them
Most failed inspections and post-occupancy gas-pressure complaints trace back to five recurring errors.
1) Using the wrong heating-value divisor: a 1,100 BTU/ft³ figure instead of the utility's actual 970 to 1,050 BTU/ft³ number can understate CFH by 5 to 12 percent and undersize the trunk [S1][S2]. 2) Forgetting equivalent length: a system with 60 ft of straight pipe and 8 to 12 fittings can have a hydraulic length of 90 to 110 ft, which moves the lookup row up and may add a nominal size [S3]. 3) Mixing CSST and Schedule 40 rows: CSST is rated by EHD, so a 1/2 in. CSST line is not the same capacity as 1/2 in. Schedule 40 steel even though both are "half-inch" [S3]. 4) Estimating the connected load from generic Table 1 numbers (warm-air furnace 100,000 BTU/h, storage water heater 30 to 40 gal. 35,000 BTU/h, 50 gal. 50,000 BTU/h [S1]) without verifying the actual nameplate, which can be 20 to 40 percent off on high-efficiency modulating equipment. 5) Forgetting future load: AHJs increasingly require the meter and interior trunk to be sized for the planned generator, EV-range gas, or pool heater even if the appliance is not yet installed, because re-sizing the trunk after the walls are closed is roughly three to five times the original cost.
Standards, sources, and a shortlist logic

The 2021 IFGC and 2021 IRC pipe-sizing tables are the primary U.S. references, NFPA 54 (National Fuel Gas Code) is the parent document they are derived from, and the local CPC or utility tariff overlays the input-pressure and CSST acceptance rules [S2].
For a first-pass residential or light-commercial size, the workflow is: nameplate BTU/h in, CFH out, longest equivalent length measured, then the matching Schedule 40 / CSST / copper table column read. If a result sits within 10 percent of the next size down, the conservative call is to step up one nominal size and re-verify on the same row. If a result is within 5 percent of the table limit at 0.5 in. w.c. drop, the next move is to re-check the table at 3.0 in. w.c. drop (which is the upper end of appliance tolerance) or run a 2 psi inlet design with a separate regulator, not to assume the segment will work. For the broader gas-detection and process-gas side, the same conservatism rule applies: stay on the published row, do not interpolate across table families, and re-verify once the connected appliances are pinned down [S2].
For procurement, a clean spec writes: gas type and SG (natural 0.60, LP 1.50), inlet pressure (less than 2 psi vs 2 to 5 psi vs higher), allowable pressure drop (0.5 in. w.c. default, 3.0 in. w.c. for some commercial segments), pipe material and standard (ASTM A53 Schedule 40 black iron, listed CSST per manufacturer's EHD table, ASTM B88 Type K copper where permitted), and the table used (IFGC Table 402.4(2) or equivalent). A shortlist for a typical 270,000 BTU/h residential trunk on a 90 ft longest run lands on 1.25 in. nominal Schedule 40 steel (or its EHD-rated CSST equivalent), a 1 in. trunk suffices for a 120,000 BTU/h load on the same 90 ft, and a 3/4 in. trunk handles about 60,000 to 80,000 BTU/h at 60 ft before the next nominal step is needed [S4][S5].
Trackable signals to watch on the 2026 cycle: AHJ adoption of the 2024 IFGC (which carries forward the same longest-run tables but updates CSST bonding language), utility tariffs shifting residential heating-value divisors outside the 1,000 BTU/ft³ band that the tables assume, and CSST manufacturers publishing updated EHD row sets for larger trunk sizes that the 2021 IFGC did not yet list [S2][S3].
Component reference pages worth checking: industrial gas, linear guide, and crossed roller guide.