A vial puck configured for attachment to a vial containing a drug is provided. The vial puck includes various features for facilitating uniform control of vials of various sizes in an automatic compounder system. The vial puck features may include a vial recess for receiving a vial of a particular size and securing the vial within the vial recess. The features may also include a cylindrical central portion, perpendicular extensions that extend from a top of the cylindrical central portion, a gear extending from the cylindrical central portion, and a sealing member disposed in the cylindrical central portion. The vial puck may include a cylindrical protrusion configured to press against a septum of the vial to form a seal between the vial puck and the vial. The sealing member may be configured to receive a needle of the compounder system therethrough to allow access to the vial.