An infusion device (1) for administering a medical fluid towards a patient (3) comprises a pump mechanism (13) for delivering the medical fluid through an infusion line (2) towards the patient (3), a drive motor (14) for driving the pump mechanism (13), the drive motor (14) comprising an arrangement of phase windings (U, V, W) which are energizable to drive the pump mechanism (13), and a control device (15) for controlling the operation of the drive motor (14) by commutating the energization of the phase windings (U, V, W). Herein, the control device (15) is configured to commutate the energization of the phase windings (U, V, W) according to different modes of operation dependent on at least one of a characteristic of the medical fluid and an infusion setting for administering the medical fluid towards the patient (3). In this way an infusion device is provided which may be used in different environments, in particular a hospital environment as well as a homecare environment, taking requirements on an instantaneous infusion rate into account.