Check your local building codes before installing or upgrading a deck or porch. Decks that are 30 inches above ground or higher are required to have handrails on stairs. Rails should be no more than 4 inches apart to prevent children from slipping through the railings.