The type of terrain that you’ll be working with will determine how deep a gas line should be buried. In general, the depth of your pipeline ditch should be about 18-24 inches. It’s essential to check with your local building department for specific code regulations that have to do with the ditch being dug in your area.