The presence of spectral lines of singly ionized magnesium (Mg ii) in stellar atmospheres has been reported in different stars. Recently, the low-resolution spectrum obtained from Supernova 2014 J in M82, in which Mg ii absorption lines centred on 4400 Å as well as 7600 Å stand out, has been analysed. This is the motive for the atomic data calculations in this work, which are of much interest in the astrophysical area. In this article, ab initio relativistic Hartree–Fock calculations in an intermediate coupling formalism using Cowan’s code allowed us to obtain the required transition probabilities to calculate the theoretical radiative lifetimes for excited nS−, nP−, nD− and nF− states of singly ionized magnesium. An asymptotic dependence of lifetime (τnl) on the effective principal quantum number (n*) has been determined. Also, the Griem semi-empirical approach was used to obtain the theoretical Stark parameters (width and shift) of spectral lines; these data are displayed for an electron density of 1017 cm−3 and temperatures T = 10–100 (×103 K). We have compared the results of lifetimes for 16 levels and Stark parameters for seven spectral lines with previously reported experiments available in the literature. Finally, we discuss the behaviour of the Stark parameters versus temperature for three relevant spectral lines (2802.70, 2797.99 and 7868.04 Å).