The solid solution amount of rare earth elements and the mass fraction of compounds were measured by low-temperature phase separation technology, the existing forms of rare earth elements in ZK-RE(Ce, Y, Gd) alloy were quantitatively studied, and the difference of solid solution ability of rare earth elements and the factors affecting the number of rare earth compounds were analyzed. The experimental results show that the solid solution amount of rare earth elements mainly depends on their addition amount, Zn and RE inhibit each other's solid solution amount, and the order of solid solution amount (wt.%) of rare earth elements with the same addition amount is GD > Y > Ce. Rare earth elements are mostly distributed in Mg-Zn-RE compounds, and the increase of rare earth content is helpful to form more Mg-Zn-RE compounds. With the same content of elements, the order of mass fraction of Mg-Zn-RE compounds is ZK-Ce system > ZK-Y system > ZK-Gd system. The order of solid solution ability of rare earth elements is Gd >Y > Ce, and the amount of solid solution directly affects the initial element content of compound precipitation in the remaining melt. The influence of Zn/Ce ratio in the residual melt of ZK-Ce alloy is shown in the number of rare earth compounds, while the Zn/Y(Gd) ratio in the residual melt of ZK-RE(Y, Gd) alloy determines the type and number of rare earth compounds.