2021 International Building Code applies to all buildings except detached one- and two-family dwellings and townhouses up to three stories. PDF download.