In order to study the effect of ternary element T substitution on the structural properties of R 2 Fe 17-x T x (R = Tb, Ho, Er; T = Ti, V, Cr, Mn), the phase stability and site preference are performed by using pair potentials based on lattice inversion technique. Our results indicate that the Ti, V, Cr and Mn atoms can stabilize R 2 Fe 17-x T x with the hexagonal Th 2 Ni 17 -type structure. Calculated site preference of these stabilizing elements T is found to be the 4f site, which is in agreement with the experiment. Moreover, the decrease of the Curie temperature T C with increasing Mn concentration is explained qualitatively by the exchange-interaction model. The method utilized in the present investigation offers a rather easy and direct way to study the structural properties of intermetallics.