A method for determining leakage inductances of a double fed induction generator, DFIG, the method comprising: during operation of the DFIG, performing at least one of a) and b): a) controlling a rotor voltage of the DFIG such that a stator current of the DFIG approaches zero; in response to the stator current of the DFIG being equal to or below a first predetermined threshold, determining values of a stator voltage of the DFIG, a rotor voltage of the DFIG and a rotor current of the DFIG, or quantities indicative thereof; and calculating a rotor leakage inductance of the DFIG on the basis of at least the determined values of the stator voltage of the DFIG, the rotor voltage of the DFIG and the rotor current of the DFIG, or the quantities indicative thereof, b) controlling a rotor voltage of the DFIG such that the rotor current of the DFIG approaches zero; in response to the rotor current of the DFIG being equal to or below a second predetermined threshold, determining values of the stator voltage of the DFIG, the rotor voltage of the DFIG and the stator current of the DFIG, or quantities indicative thereof; and calculating a stator leakage inductance of the DFIG on the basis of at least the determined values of the stator voltage of the DFIG, the rotor voltage of the DFIG and the stator current of the DFIG, or the quantities indicative thereof. during operation of the DFIG, performing at least one of a) and b): a) controlling a rotor voltage of the DFIG such that a stator current of the DFIG approaches zero; in response to the stator current of the DFIG being equal to or below a first predetermined threshold, determining values of a stator voltage of the DFIG, a rotor voltage of the DFIG and a rotor current of the DFIG, or quantities indicative thereof; and calculating a rotor leakage inductance of the DFIG on the basis of at least the determined values of the stator voltage of the DFIG, the rotor voltage of the DFIG and the rotor current of the DFIG, or the quantities indicative thereof, b) controlling a rotor voltage of the DFIG such that the rotor current of the DFIG approaches zero; a) controlling a rotor voltage of the DFIG such that a stator current of the DFIG approaches zero; in response to the stator current of the DFIG being equal to or below a first predetermined threshold, determining values of a stator voltage of the DFIG, a rotor voltage of the DFIG and a rotor current of the DFIG, or quantities indicative thereof; and calculating a rotor leakage inductance of the DFIG on the basis of at least the determined values of the stator voltage of the DFIG, the rotor voltage of the DFIG and the rotor current of the DFIG, or the quantities indicative thereof, b) controlling a rotor voltage of the DFIG such that the rotor current of the DFIG approaches zero; in response to the rotor current of the DFIG being equal to or below a second predetermined threshold, determining values of the stator voltage of the DFIG, the rotor voltage of the DFIG and the stator current of the DFIG, or quantities indicative thereof; and calculating a stator leakage inductance of the DFIG on the basis of at least the determined values of the stator voltage of the DFIG, the rotor voltage of the DFIG and the stator current of the DFIG, or the quantities indicative thereof.