Abstract We explore the effectiveness of the Brink–Axel hypothesis (BAH) for the computation of stellar electron capture (EC) and β-decay (BD) rates, namely that the transition strength function depends only upon the transition energy and not upon the details of the initial state. For this purpose, we calculated Gamow–Teller (GT) strength distributions for a selection of sd-shell nuclides, using two different microscopic models, namely the proton–neutron quasiparticle random phase approximation and the full configuration-interaction shell model, taking into account the first 100 states of both the initial and final nuclides. The GT transition strengths among these levels evolve with initial state energy. These transition strength functions we folded into weak-interaction mediated rates in stellar matter, specifically EC and BD rates, for a range of densities 10 g cm−3 ⩽ ρ ⩽ 1011 g cm−3 and range of temperatures 1 GK ⩽ T ⩽ 30 GK. When transitions from excited states were approximated using the BAH, augmented by so-called ‘back-resonance’ transitions, the rates were affected by up to three orders of magnitude or more at high temperatures and densities. Thus the BAH is not a reliable approximation for the calculation of stellar rates, especially in high temperature–density environments.