The invention relates to a method for actuating an electrically commutated fluid working machine (1), wherein the actuation of the electrically controllable valves (11) of the electrically commutated fluid working machine (1) is effected dependent on the fluid requirement and/or mechanical power requirements. In addition, on actuation of the electrically controlled valves (11) the electrical power required for actuating the electrically controllable valves is taken into account.