Type of roofing material matters. According to Costhelper, which provides average cost for consumer products, it costs from $1.20-$4 a square foot to remove and replace the roof or $1,700 to $8,400 for a typical 1,700-2,100 square foot ranch-style home, with a gentle slope.