Mirror energy differences (MED) between excited states in the A=31, T=1/2 mirror pair S31 and P31 have been measured up to high spin yrast states of positive and negative parity. The mirror nuclei were populated in the Mg24(C12, αn) and Mg24(C12, αp) reactions, respectively. For the first time the MED are described in the framework of the shell model in a valence space that includes three main shells. The theoretical MED values as a function of angular momentum indicate that the main contribution arises from the Coulomb interaction, however, the isospin symmetry breaking term is not at all negligible and needs to be considered to reproduce the experimental findings.Received 17 November 2020Revised 27 December 2020Accepted 1 June 2021DOI:https://doi.org/10.1103/PhysRevC.104.024309©2021 American Physical SocietyPhysics Subject Headings (PhySH)Research AreasNuclear spin & parityNucleon distributionShell modelProperties20 ≤ A ≤ 38Nuclear Physics