Ibc building codes

From TerminalSkills/skills · View interactive version

Ibc building codes is an AI agent skill from the GitHub repository TerminalSkills/skills. Reference for the US International Building Code (IBC 2024): occupancy groups, construction types, height and story limits, means of egress, occupant load and dwelling unit minimums, with R-2 apartment buildings as the worked case. Use when generating US-compliant building models, checking a design

How to use this skill

Skill file

IBC Building Codes Reference

Overview

Structured reference for the International Building Code (IBC), edition 2024, which is the current ICC edition; the 2021 edition is still adopted in many places and the next edition (2027) is expected from ICC late in 2026. Use it to sanity-check building designs, drive code-aware model generation and explain occupancy and construction-type constraints. Values below were checked against the 2024 IBC text (Chapters 3, 5, 6, 9, 10 and 12); they cover common residential and mixed-use cases, not every exception. Single-family houses fall under the International Residential Code, not the IBC.

Instructions

Occupancy classifications (Chapter 3)

Construction types (Chapter 6, Table 601)

R-2 height and story limits (Tables 504.3 and 504.4)

New Group R buildings must be sprinklered throughout (Section 903.2.8), so the sprinklered "S" column (NFPA 13) is the one that applies; the unsprinklered column is only for evaluating existing buildings. In the current tables the sprinkler credit is already built into the values: do not add "+1 story / +20 ft" on top.

| Type | Stories (S) | Height ft (S) | Height ft (NS, existing only) |

|---|---|---|---|

| I-A | Unlimited | Unlimited | Unlimited |

| I-B | 12 | 180 | 160 |

| II-A | 5 | 85 | 65 |

| II-B | 5 | 75 | 55 |

| III-A | 5 | 85 | 65 |

| III-B | 5 | 75 | 55 |

| IV-A | 18 | 270 | 65 |

| IV-B | 12 | 180 | 65 |

| IV-C | 8 | 85 | 65 |

| IV-HT | 5 | 85 | 65 |

| V-A | 4 | 70 | 50 |

| V-B | 3 | 60 | 40 |

NFPA 13R systems (Section 903.3.1.2) are allowed in R-2 up to four stories above grade plane with the roof less than 45 ft above fire department vehicle access, and the 13R height limit in Table 504.3 is 60 ft. Special increases exist for R-1 and R-2 of Type IIIA (+10 ft and +1 story, Section 510.5) and Type IIA (up to 9 stories and 100 ft, Section 510.6), each with strict conditions; Section 510 also covers podium (parking garage) schemes. Both height and stories must pass, plus allowable area (Table 506.2).

Egress (Chapter 10)

Occupant load (Table 1004.5, floor area per occupant)

occupants = ceil(area_sf / factor_sf_per_person)
ceil(834 / 200)  = 5    # apartment, residential 200 gross
ceil(2400 / 150) = 16   # office floor, business 150 gross
ceil(900 / 15)   = 60   # restaurant dining, unconcentrated 15 net

Sprinklers (Chapter 9)

Dwelling unit minimums (Section 1208 in 2024)

Examples

Example 1: "Classify a building with a restaurant under apartments"

Floors 2-4: 12 apartment units, leases over 30 days  -> R-2
Floor 1: restaurant with bar seating for 120 patrons -> A-2
Result: mixed occupancy R-2 / A-2
  - Each occupancy must meet its own height and story limits (504.2)
  - Separate the occupancies per Section 508 and Table 508.4
  - Sprinklers: NFPA 13 throughout (Group R requires them)

Example 2: "Check a 3-story V-B apartment building"

Building: R-2, Type V-B, 3 stories, 35 ft, NFPA 13, 12 units per floor
Height/story (Tables 504.3/504.4, S column): 3 stories / 60 ft allowed
  Actual 3 stories / 35 ft -> PASS (at the story limit, no spare floor)
Travel distance (Table 1017.2): 250 ft sprinklered
  Longest path 66 ft -> PASS
Exits per story (Table 1006.3.3): occupant load 54 (1-500) -> 2 exits;
  single exit not allowed with 12 units (Table 1006.3.4(1) caps at 4)
Unit doorways (Table 1006.2.1): unit occupant load 5, common path 40 ft
  (limit 20 occupants, 125 ft) -> one exit access doorway is enough
Stair width: 54 occupants >= 50 -> 44 in required; provided 44 in -> PASS

Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.