A method was established for the simultaneous analysis of 25 trace elements and heavy metals in polysccharides from Liuwei Dihuang prescription, including Li, Be, B, Ti, Mg, Al, V, Cr, Mn, Co, Fe, Ni, Cu, Zn, Ga, As, Sr, Cd, Sn, Sb, Ba, Hg, Tl, Pb, Bi. The different rate of elemental extraction in Al, Fe, Mg, B, Ti, Mn, Zn, Sr, Ba was made in water and different concentration of alcohol. The samples, digested via microwave, calibrated by internal standard elements such as Ge and In, with bush branches and leaves as the controlled reference standard, were inlet into ICP-MS to analyze the contents of the 24 trace elements and heavy metals. The detection limits of the 24 elements were in the range of 0.007-2.225 µg · L(-1), while the RSD was below ≤ 4. 0%, with their recovery ranging from 84. 1% to 116%. Big different of the elemental extraction rates could be found by using different ethanol solutions. The method is simple, rapid and accurate, and can be used for the quality control of trace elements and heavy metals in Liuwei Dihuang polysccharides. With the aid of the obtained result, we may increase the extraction of necessary element while making an attempt at multi-element speciation in polysccharides from Liuwei Dihuang.