minimum height for deck railings
Open sides of landings, ramps, balconies, porches, stairs, or decks which are more than 30 above grade, or the floor below, must be protected by guardrails. Height: Residential guardrails need not be higher than 36 above the walking surface. Commercial minimum height is 42.