The electronic structures and absorption spectra of LiTaO
3(LT) crystal and Fe:Mg:LiTaO
3crystal with different Mg concentrations are investigated by first-principles through using the density functional theory. The supercell crystal structures are established with 60 atoms with four models: the near-stoichiometric pure LiTaO
3crystal (LT); the iron doped LiTaO
3crystal (Fe:LT), with the charge compensation model expressed as Fe
Li
2+-2V
Li
–; the iron and magnesium co-doped LiTaO
3crystal (Fe:Mg:LT), with the charge compensation model taken as Fe
Li
2+-Mg
Li
+-3V
Li
–; the other iron and magnesium co-doped LiTaO
3crystal (Fe:Mg(E):LT), with Mg ion concentration near threshold value (slightly less than 6 mol%) and taking the charge compensation model as 2Mg
Li
+-Fe
Ta
2–. The geometry optimization results show that the total energy values of all models can achieve certain stable values, which means that the models used in this paper are very close to the actual crystal structures. In the electronic structures, the extrinsic defect energy levels in the forbidden band of Fe:LT crystal are mainly contributed from the Fe 3d orbital, and the band gap of Fe:LT about 3.05 eV is narrower than that of LT, the band gap of Fe:Mg:LT and Fe:Mg(E):LT sample are 2.72 eV and 2.45 eV respectively. The results show that the orbit of Fe 3d, Ta 5d and O 2p are superposed with each other, forming covalent bonds, which results in conduction band and valence band shifting toward low energy in iron doped LiTaO
3crystal. The Fe 3d orbit is split into E
gorbit and T
2gorbit under the influence of the crystal field. There are two absorption peaks at 417 nm (2.97 eV) and 745 nm (1.66 eV) in the Fe:LiTaO
3crystal. The first one is attributed to the transfer of the T
2gorbital electron to conduction band. The last one can be taken as the result of E
gelectron transfer of Fe
2+in crystal. The intensities and positions of these peaks vary with the concentration of Mg ion. Specially, with the concentration of Mg ion attaining the threshold value, the peak at 745 nm disappears, and the other peak moves slightly to 457 nm (2.71 eV). With the Mg ion concentration at the threshold value, the Fe ions can occupy Ta positions. This occupying condition makes the E
gorbital energy change greatly compared with the scenario in the Fe
Licondition, and it affects hardly the T
2gorbital energy. So, if the absorption nearby 745 nm waveband can be taken as the useful process in holographic storage application, it is better to take smaller concentration of Mg ions (less than threshold value). On the other hand, nearby 457 nm waveband, concentration of Mg ions can be chosen as a large value.