1 As a very general estimate, installing gas line costs $20 to $30 per foot. 2  In some areas and circumstances, however, the price could be $75 per foot or more. 3  This price should include the costs of trench digging and all necessary permits, drawings, and inspections.