We derive a generalization of the Wiener-Khinchin theorem for nonstationary processes by introducing a time-dependent spectral density that is related to the time-averaged power. We use the nonstationary theorem to investigate aging processes with asymptotically scale-invariant correlation functions.As an application, we analyze the power spectrum of three paradigmatic models of anomalous diffusion: scaled Brownian motion, fractional Brownian motion and diffusion in a logarithmic potential. We moreover elucidate how the nonstationarity of generic subdiffusive processes is related to the infrared catastrophe of 1/f -noise. The Wiener-Khinchin theorem is a fundamental result of the theory of stochastic processes. In its simplest form, it states that the autocorrelation function, C(τ ) = x(t + τ )x(t) , of a stationary random signal x(t) is equal to the Fourier transform of the power spectral density,. Herex(ω) denotes the Fourier transform of x(t), T the total measurement time and the ensemble average ... is taken over many realizations of the signal. The Wiener-Khinchin theorem provides a simple relationship between time and frequency representations of a fluctuating process. Its great practical importance comes from the fact that the autocorrelation function may be directly determined from the measured power spectral density, and vice versa. Over the years, it has become an indispensable tool in signal and communication theory The Wiener-Khinchin theorem is only applicable to weakly stationary processes that are characterized by a time-independent mean x(t) and a correlation function C(τ ) that solely depends on the difference τ of its time arguments [8]. It fails for nonstationary processes with an autocorrelation function, C(τ, t) = x(t+τ )x(t) , that depends explicitly on time t and hence exhibits aging. Further, the power spectral density, S(ω, t)-now an explicit function of both frequency and time-is not uniquely defined for nonstationary noisy signals [8]. A commonly used generalization, the Wigner-Ville function [9,10], given in Eq. (4) below, is related to the instantaneous power; it has the disadvantage of not being a true spectral density as it can take on negative values [8]. We here address these critical issues by first introducing a spectral density that is related to the timeaveraged power. Contrary to the Wigner-Ville function, it is strictly positive and therefore a proper spectral density. We employ this quantity to derive an extension of the Wiener-Khinchin theorem that is valid for finitetime, nonstationary signals. We apply this generalization to aging processes that are characterized by a correlation function of the form, C(τ, t) Ct α φ(τ /t), where φ is an arbitrary scaling function. Correlation functions of this type describe scale-invariant dynamics that do not possess a distinctive time scale, contrary to exponentially correlated processes. They occur in a wide range of physical [11], chemical [12] and biological [13] systems and have also found applications in finance [14] and the soc...