We compute the optical conductivity, both the imaginary and real parts of the dielectric constant, and the optical coefficients of armchair phosphorene nanoribbons under application of biaxial and uniaxial strains. The Kane–Mele model Hamiltonian has been applied to obtain the electronic band structure of phosphorene nanoribbons in the presence of a magnetic field. The effects of uniaxial and biaxial in-plane strain on the frequency behavior of the optical dielectric constant, and the frequency behavior of the optical absorption and refractive index of phosphorene nanoribbons have been studied, in terms of magnetic field, spin–orbit coupling and strain effects. Linear response theory and the Green’s function approach have been exploited to obtain the frequency behavior of the optical properties of the structure. Moreover, the transmissivity and reflectivity of electromagnetic waves between two media separated by a phosphorene-nanoribbon layer are determined. Our numerical results indicate that the frequency dependence of the optical absorption includes a peak due to applying a magnetic field. Moreover, the effects of both in-plane uniaxial and biaxial strains on the refractive index of single-layer phosphorene have been addressed. Also, the frequency dependence of the transmissivity and reflectivity of electromagnetic waves between two media separated by armchair phosphorene nanoribbons for normal incidence has been investigated in terms of the effects of magnetic field and strain parameters. Both compressive and tensile strain have been considered for the armchair phosphorene nanoribbons in order to study the optical properties of the structure. In particular, the control of the optical properties of phosphorene nanoribbons could lead to extensive applications of phosphorene in the optoelectronics industry. Also, such a study of the optical properties of phosphorene nanoribbons has further applications in light sensors. Meanwhile, the effects of spin–orbit coupling on the optical absorption and transmissivity of electromagnetic waves in phosphorene nanoribbons could be a novel topic in condensed-matter physics.