[PROBLEMS] To provide a pill discharging method for discharging a vial into anoutlet matching the size of the vialeven if the size of the vial is changed. [MEANS FOR SOLVING PROBLEMS] A pilldischarging method for taking a vial out of astocker storing a lot of vials according to prescription data, dispensingpills into the vial, and discharging the vial containing the pills.The method comprises a step of determining a vial having an appropriate sizeaccording to prescription data, a step of checking forstock of the determined vial, a step of determining a size larger than that ofthe determined vial if the determined vial is not stocked,and a step of discharging the vial containing the pills into the outlet wherethe vial having the determined size is held.