The cost of excavating sewer pipes can range from $150 to $450 per foot, which includes the cost of digging up the line, repairing and replacing it. For example, a typical repair requiring about ten feet of pipe would result in a total cost between $1,500 and $4,500.