The cost to replace a cast iron drain pipe varies depending on factors such as length and complexity. On average, it may range from $1,500 to $3,500, including materials and labor. Factors such as accessibility and additional repairs can also influence the overall cost.