SUMMARY The ratio of the magnetic power spectrum and the secular variation spectrum measured at the Earth’s surface provides a timescale $\tau _{\rm sv}(l)$ as a function of spherical harmonic degree l. $\tau _{\rm sv}$ is often assumed to be representative of timescales related to the dynamo inside the outer core and its scaling with l is debated. To assess the validity of this surmise and to study the time variation of the geomagnetic field $\dot{\boldsymbol {B}}$ inside the outer core, we introduce a magnetic timescale spectrum $\tau (l,r)$ that is valid for all radius r above the inner core and reduces to the usual $\tau _{\rm sv}$ at and above the core–mantle boundary (CMB). We study $\tau$ in a numerical geodynamo model. At the CMB, we find that $\tau \sim l^{-1}$ is valid at both the large and small scales, in agreement with previous numerical studies on $\tau _{\rm sv}$. Just below the CMB, the scaling undergoes a sharp transition at small l. Consequently, in the interior of the outer core, $\tau$ exhibits different scaling at the large and small scales, specifically, the scaling of $\tau$ becomes shallower than $l^{-1}$ at small l. We find that this transition at the large scales stems from the fact that the horizontal components of the magnetic field evolve faster than the radial component in the interior. In contrast, the magnetic field at the CMB must match onto a potential field, hence the dynamics of the radial and horizontal magnetic fields are tied together. The upshot is $\tau _{\rm sv}$ becomes unreliable in estimating timescales inside the outer core. Another question concerning $\tau$ is whether an argument based on the frozen-flux hypothesis can be used to explain its scaling. To investigate this, we analyse the induction equation in the spectral space. We find that away from both boundaries, the magnetic diffusion term is negligible in the power spectrum of $\dot{\boldsymbol {B}}$. However, $\dot{\boldsymbol {B}}$ is controlled by the radial derivative in the induction term, thus invalidating the frozen-flux argument. Near the CMB, magnetic diffusion starts to affect $\dot{\boldsymbol {B}}$ rendering the frozen-flux hypothesis inapplicable. We also examine the effects of different velocity boundary conditions and find that the above results apply for both no-slip and stress-free conditions at the CMB.