The content of ATP, ADP, AMP, sodium phosphate and sodium pyrophosphate were determined by 31P NMR, the linear range of ATP, ADP and AMP were found to be 0.004-0.080 mol x L(-1), sodium phosphate and sodium pyrophosphate were 0.005-0.100 mol x L(-1). The RSD were 0.40%-1.30%, the recovery were 96.9% - 105.2%. The method has been applied to the determination of ATP injection. The impurities of ATP injection were ADP and sodium phosphate. The content of ATP is in line with the requirement of the pharmacopoeia. The results indicated that the method is of good reproducibility, high accuracy, rapid and simple operation, without pretreatment and interference of other elements, 31P NMR is a new and reliable method of analyzing ATP, ADP, AMP and phosphate.