Generally, this is a question of cost analysis. For example, if the cost of your roof repair equals half or more of a new roof, it is probably better to replace it. In addition, if it is getting older than 10 years, a replacement is eventually inevitable.