01
When a guard is needed
Under the IRC, a guard is needed along the open side of a walking surface, such as a deck, porch, balcony, landing, loft or the open side of a stair, where the surface is more than 30 in above the floor or ground below (IRC 2021 section R312.1.1). The drop is taken at any point within 36 in out from the edge, so a deck over a slope can need a guard even where the ground right under the edge is close.
Read more
Below that height a guard is not required by the model code, but many owners still want one on a raised patio or a few steps down to a lower level, especially with young children around. Glass works the same way there and is held by the same hardware. Commercial buildings under the IBC use the same 30 in trigger (IBC 2021 section 1015.2).