The cathode material Li1.17Mn0.48Ni0.23Co0.12MgxO2(x=0, 0.01, 0.02, 0.03, 0.05) for lithium ion batteries was synthesized by hydroxide co-precipitation using NaO H and ammonia as precipitating agent and chelating agent. The crystal structure, morphology and electrochemical properties were characterized by X-ray diffraction(XRD), scanning electron microscopy(SEM) and electrochemical tests. The research indicates that the cation mixing degree decreases after Mg doping, and the cycle performance of the materials are improved. Li1.17Mn0.48Ni0.23Co0.12Mg0.03O2 shows the best electrochemical properties. It delivers the discharge special capacity of 234.7 mA h/g at 0.1 C(1 C=358 mA h/g), and has the capacity retention of 99.3% after 10 cycles at 0.1 C.