Magnetic Fe
3O
4nanoparticles show promising applications in nanomedicine. The saturation magnetization (
M
S) and magnetic anisotropy are critical for the applications of Fe
3O
4nanoparticles in drug delivery and magnetic hyperthermia. Here, by density functional computation, the doping effects of 3d and 4d transition metal elements (including Sc, Ti, V, Cr, Mn, Fe, Co, Ni, Cu, Zn, Y, Zr, Nb, Mo, Tc, Ru, Rh, Pd, Ag and Cd) on the magnetic properties of Fe
3O
4are investigated in-depth. A conventional cell of Fe
3O
4, containing 24 Fe atoms and 32 O atoms, has been used to investigate the doping of group III elements. One 3d or 4d atom is doped in one conventional cell of Fe
3O
4, resulting in the formation of X
0.125Fe
2.875O
4where X represents the dopant. The results show that the doping of most 3d and 4d transition metal elements will reduce the total magnetic moment, while the doping of Ag, Zn and Cd in Fe
3O
4will increase the total magnetic moment by 19%–22%. However, it is hard to dope Ag into Fe
3O
4according to the positive formation energy. Therefore, Zn and Cd are good candidates to improve the
M
Sof Fe
3O
4. The doping of Zn and Cd has also an influence on the magnetic anisotropy of Fe
3O
4. For Zn
0.125Fe
2.875O
4, the magnetic anisotropy energy is about 0.25 meV per cell, which is slightly larger than that of intrinsic Fe
3O
4(0.2 meV per cell). Interestingly, the doping of Cd (Cd
0.125Fe
2.875O
4) will greatly increase the magnetic anisotropy energy to 0.8 meV per cell, which is significant for the specific absorption rate in the magnetic hyperthermia application. In addition, the doping of Zn and Cd will not induce any defect states in the band gap according to the density of states. Zn
0.125Fe
2.875O
4and Cd
0.125Fe
2.875O
4are both semiconducting and both the top of valence band and the bottom of conduction band originate from octahedral Fe. This is because the impurity states are very deep in energy. Our research results show that doping Cd is a feasible way to improve the performance of Fe
3O
4as a material for drug delivery and magnetic hyperthermia.