Provided is a medicine filling device, which has reduced size, and which is capable of automatically filling variously sized containers with a medicine. A medicine filling device (1) is provided with: a supply device (10) that supplies a container (26), which can be filled with a medicine (M), with the medicine (M) with which the container is to be filled a transfer device (30) that transfers the container (26) and a detecting unit that obtains measurement data that corresponds to the outer diameter (d) of the container (26) in the direction in which the container (26) is transferred by means of the transfer device (30). On the basis of the measurement data, the transfer device (30) stops the container (26) at a supply position (L) where the medicine (M) can be supplied to the container (26) from the supply apparatus (10).