The structural, electronic, magnetic, and optical properties of MFe 2 O 4 (M = Ni, Fe, Co) ferrites were investigated by employing Cambridge Serial Total Energy Package code using density functional theory. LDA+U was used to investigate the structural, electronic, magnetic, and optical properties of MFe 2 O 4 (M = Ni, Fe, Co) ferrites at different pressures 0, 5, 10, 15, and 20 GPa. The simulated X-ray diffraction (XRD) pattern of MFe 2 O 4 (M = Ni, Fe, Co) ferrites was investigated and the computed lat-