The International Residential Code requires railings to be at least 36 inches high from the deck surface. For stairs, the height must be 34 inches. Local building codes may have stricter requirements.