DEV Community

Cover image for Duct Size in Python: One Size Smaller Means About 2x the Friction
Evgenii Konkin
Evgenii Konkin

Posted on

Duct Size in Python: One Size Smaller Means About 2x the Friction

Duct sizing looks linear until you write it down. It isn't, and that is why "just use a 6 instead of a 7" is a bigger decision than it sounds.

The velocity method is two lines:

A (ft²) = CFM / FPM
D = √(4A / π)
Enter fullscreen mode Exit fullscreen mode

Pick a target velocity, divide, take a square root. The CalcEngineer duct size calculator does exactly this for round and rectangular ducts and then re-checks the velocity. Here it is in Python, plus a friction estimate for round galvanized duct (the 0.109136 · q^1.9 / d^5.02 fit published by Engineering ToolBox):

from math import pi, sqrt

def duct_diameter(cfm, fpm):
    """Round duct diameter (in) for a target velocity."""
    area_ft2 = cfm / fpm
    return sqrt(4 * area_ft2 / pi) * 12

def velocity(cfm, d_in):
    return cfm / (pi * (d_in / 12) ** 2 / 4)

def friction(cfm, d_in):
    """in.w.c. per 100 ft, round galvanized duct (Wright-type fit)."""
    return 0.109136 * cfm ** 1.9 / d_in ** 5.02

for cfm in (150, 300, 600):
    print(f"{cfm} CFM -> {duct_diameter(cfm, 600):.1f} in")
Enter fullscreen mode Exit fullscreen mode
150 CFM -> 6.8 in
300 CFM -> 9.6 in
600 CFM -> 13.5 in
Enter fullscreen mode Exit fullscreen mode

Tip 1: diameter grows with the square root of airflow

Double the air and the diameter grows by √2 ≈ 1.41, not 2. 300 CFM needs a 9.6-inch duct, not 13.6 in (2 × 6.8). Scaling diameters linearly oversizes trunks fast: a 13.6-inch duct has twice the area that 300 CFM needs.

Tip 2: the reverse is brutal

Now take a 150 CFM bedroom branch. The math says 6.8 in, so the next standard size up is 7 in. What happens if a 6 goes in instead?

for d in (7, 6):
    print(f"{d} in: {velocity(150, d):.0f} FPM, "
          f"{friction(150, d):.3f} in.w.c./100 ft")

print(f"friction x{friction(150, 6) / friction(150, 7):.2f}")

# how much air fits in a 6 in duct at the 7 in friction rate?
budget = friction(150, 7)
cfm_6 = (budget * 6 ** 5.02 / 0.109136) ** (1 / 1.9)
print(f"6 in at the same friction: {cfm_6:.0f} CFM")
Enter fullscreen mode Exit fullscreen mode
7 in: 561 FPM, 0.085 in.w.c./100 ft
6 in: 764 FPM, 0.185 in.w.c./100 ft
friction x2.17
6 in at the same friction: 100 CFM
Enter fullscreen mode Exit fullscreen mode

One inch smaller: +36% velocity and about 2.2x the friction per foot. Area goes with D², friction with roughly D⁵. If the blower can't make up that pressure, the duct doesn't carry 150 CFM at 764 FPM. It carries closer to 100 CFM, and that room runs cooler in winter than the rest of the house.

That's the whole tip: round up to the next standard size, then check velocity and friction, not area alone.

Example numbers. The friction fit is for round galvanized steel with turbulent flow; flex duct, especially compressed or sagging flex, runs higher. Fittings add equivalent length that this quick check ignores.

Your turn: what's the smallest branch you've seen feeding a "problem room", and did upsizing it fix the complaint?

Top comments (0)