Section R801 specifies that residential roofs must be designed for dead load (permanent weight of materials), live load (snow or maintenance access), wind load, and seismic loads. Roof live load is typically 20 pounds per square foot for sloped roofs or flat roofs. Snow load varies by climate and is critical in cold regions. Wind load is determined from maps and building exposure. Roof-to-wall connections must resist uplift and lateral forces. Rafter spacing (typically 16 or 24 inches on center) and size are selected from tables based on span and load.