The cost of installing a new gas line varies based on several factors, including the length of the line, the type of materials used, the complexity of the installation, and local labor rates. On average, homeowners might spend anywhere from $500 to $2,000 for a basic gas line installation. If the installation is for a major appliance (such as a gas grill) or requires extensive work, such as digging or drilling through foundations, the cost can be higher.