According to Repair Pal, the average cost is $1,285 and $1,568 to replace a head gasket.