The magnetic properties of rare earth doped SnO 2 , TiO 2 , and CeO 2 nanoparticles are studied theoretically. The discrepancies in the literature for some doping cases are explained, for example, the lattice parameters and the magnetization in Pr and Sm doped CeO 2 nanoparticles. There is a strong connection between the lattice deformations and the magnetization M. M decreases (except for Y doped CeO 2 ) due to the larger radius of the rare earth ions compared to that of the host ions which leads to increase of the lattice parameters and decrease of the exchange interactions. The decrease of M is due also to the enhanced number of oxygen vacancies with increasing dopant concentration. For Y doping the lattice parameters decrease and M increases with increasing Y concentration. We have discussed the origin of the different behavior of M in rare earth doped nanoparticles.