International Residential Code (IRC) SECTION M1502 CLOTHES DRYER EXHAUST guidelines:
M1502.5 Duct construction
Exhaust ducts shall be constructed of minimum 0.016-inch-thick (0.4 mm) rigid metal ducts, having smooth interior surfaces, with joints running in the direction of air flow. Exhaust ducts shall not be connected with sheet-metal screws or fastening means which extend into the duct.
M1502.6 Duct length
The maximum developed length of a clothes dryer exhaust duct shall not exceed 35 feet from the dryer location to the wall or roof termination. The maximum length of the duct shall be reduced 2.5 feet for each 45-degree (0.8 rad) bend, and 5 feet for each 90-degree (1.6 rad) bend. The maximum length of the exhaust duct does not include the transition duct.
M1502.2 Duct termination
Exhaust ducts shall terminate on the outside of the building or shall be in accordance with the dryer manufacturer’s installation instructions. Exhaust ducts shall terminate not less than 3 feet in any direction from openings into buildings. Exhaust duct terminations shall be equipped with a backdraft damper. Screens shall not be installed at the duct termination.
M1502.3 Duct size
The diameter of the exhaust duct shall be as required by the clothes dryer’s listing and the manufacturer’s installation instructions.
M1502.4 Transition ducts
Transition ducts shall not be concealed within construction. Flexible transition ducts used to connect the dryer to the exhaust duct system shall be limited to single lengths not to exceed 8 feet, and shall be listed and labeled in accordance with UL 2158A.
M1502.4.2 Duct installation
Exhaust ducts shall be supported at intervals not to exceed 12 feet and shall be secured in place. The insert end of the duct shall extend into the adjoining duct or fitting in the direction of airflow. Exhaust duct joints shall be sealed in accordance with Section M1601.4.1 and shall be mechanically fastened. Ducts shall not be joined with screws or similar fasteners that protrude more than 1/8-inch into the inside of the duct.