Objective: To develop a method for the determination of 18 elements in Qianliexin capsules including B,Al,Mg,Fe,Be,V,Co,Ni,Ga,Se,Sn,Sb,Ti,Mn,Zn,Rb,Sr,and Ba. Methods: The samples were digested by microwave and determined by inductively coupled plasma mass spectrometry( ICP-MS). The RF power was 1.70 kW and the flow rate of carrier gas was 1.05 L·min∼(-1). The effect and interference of matrix was corrected by the online addition of internal standard elements Sc,Ge,and In.Results:The linearities of the 18 elements were good with the correlation coefficients( r) above 0.996 7. The RSDs of the injection precision test were within the range of 1.84%-4.76% and the RSDs of the repeatability test were within the range of 1.45%-5.37%. The recoveries of the 18 elements were within the range of 93.4%-103.2% with the RSDs below 5.27%. The stability of each element was good( RSD<4.36%) within 24 h after digestion. Conclusion: The method is simple,sensitive and accurate,and can be used for the content determination of 18 elements in Qianliexin capsules. The contents of B,Al,Fe,Ti,Mn,Zn,Rb,Sr and Ba in Qianliexin capsules are relatively high.