The cost of removing solar panels so you can get a new roof varies but generally lies somewhere between $1,500 and $6,000.
According to Forme Solar, the total cost to remove and reinstall a solar panel is between $255 and $275. That means a smaller 10-panel system would fall between $2,550 and $2,750, while a 19-panel system capable of powering the average house would cost between $4,845 and $5,225.