Regulations for decks vary from community to community and it is important to check your local building codes. In general, railings are required for deck surfaces 30 inches off the ground. The spaces between balusters should be no greater than 4 inches.