The cost to replace hardwood with carpeting runs from $3.50 to $11 per square foot if you plan to leave the old flooring in place. You'll pay an extra $1 to $3 per square foot to remove it.