The invention relates to a medicine selling method based on an automatic selling terminal. The method comprises the following steps of obtaining the medicine inquiry information, and in addition, finding the medicine information corresponding to the inquiry information; obtaining the medicine address information according to the corresponding relationship between the medicine information and the address information; obtaining the medicine outlet route information according to the medicine address information; and outputting the medicine according to the medicine outlet route information, and carrying out terminal settlement according to the medicine information. The medicine selling method based on the automatic selling terminal has the advantages that the medicine inquiry information can be obtained, the medicine can be found according to the inquiry information, in addition, the medicine outlet route information is obtained according to the found medicine information, the medicine is output according to the medicine outlet route, and in addition, the terminal settlement is carried out. Therefore, the unmanned management can be realized, and the 24-hour automatic medicine supply is realized. In addition, the invention also provides a medicine selling system based on the automatic selling terminal.