Homeowners who replace their windows will regain about 81 percent of the total cost of the project back when they sell the home. Quality windows should last between 15 and 20 years before you start to think about replacing them. Vinyl windows often provide a 20-25 year warranty, which is basically a lifetime warranty.