The cost of a roof replacement can range from $12,000 to $20,000 depending on various factors such as the size, materials used, and complexity of the roof. If you already have solar installed, this would add roughly $7,000 for the removal and reinstallation of solar.