If something that you buy or invest in pays for itself after a period of time, the money you gain from it, or save because you have it, is greater than the amount you originally spent or invested.
...investments in energy efficiency that would pay for themselves within five years.