Method for operating a drivetrain, the drivetrain having an electric motor and a load that is driven by the electric motor or driven by a gearing driven by the electric motor, a sensor for detecting the angular position of a rotor of the electric motor being provided, in particular being arranged on the electric motor, a motor voltage being made available to the electric motor by means of the converter, in particular by means of a motor commutation means of the converter, in order to achieve a desired torque value M_Soll, an actual angular velocity value w_ist and an actual angular acceleration value α_ist being determined, in particular recurrently over time, from the values of the angular position of the rotor that are detected by means of the sensor, the desired torque value M_Soll being determined from a moment of inertia J_ges and a desired angular acceleration value α_Soll, the desired angular acceleration value α_Soll being determined as a manipulated variable by a speed controller member, to which the difference, in particular the control error, between the actual angular velocity value w_ist and the desired angular velocity value w_Soll is supplied, the moment of inertia J_ges being determined as the sum of the moment of inertia J_Mot of the drivetrain without a load and the moment of inertia J_Last of the load, the moment of inertia J_Last of the load being determined from an actual torque value M_ist and the actual angular acceleration value α_ist, in particular while taking into account the moment of inertia J_Mot, characterised in that the speed controller member is configured as a PI controller, said controller member having a proportional control unit and an integrator wired in parallel with the proportional control unit, the proportionality constant of the proportional control unit being a function of the product of the moment of inertia J_Mot and the moment of inertia J_Last of the load, and/or the time constant of the integrator being a function of the product of the moment of inertia J_Mot and the moment of inertia J_Last of the load. the drivetrain having an electric motor and a load that is driven by the electric motor or driven by a gearing driven by the electric motor, a sensor for detecting the angular position of a rotor of the electric motor being provided, in particular being arranged on the electric motor, a motor voltage being made available to the electric motor by means of the converter, in particular by means of a motor commutation means of the converter, in order to achieve a desired torque value M_Soll, an actual angular velocity value w_ist and an actual angular acceleration value α_ist being determined, in particular recurrently over time, from the values of the angular position of the rotor that are detected by means of the sensor, the desired torque value M_Soll being determined from a moment of inertia J_ges and a desired angular acceleration value α_Soll, the desired angular acceleration value α_Soll being determined as a manipulated variable by a speed controller member, to which the difference, in particular the control error, between the actual angular velocity value w_ist and the desired angular velocity value w_Soll is supplied, the moment of inertia J_ges being determined as the sum of the moment of inertia J_Mot of the drivetrain without a load and the moment of inertia J_Last of the load, the moment of inertia J_Last of the load being determined from an actual torque value M_ist and the actual angular acceleration value α_ist, in particular while taking into account the moment of inertia J_Mot, characterised in that the speed controller member is configured as a PI controller, said controller member having a proportional control unit and an integrator wired in parallel with the proportional control unit, the proportionality constant of the proportional control unit being a function of the product of the moment of inertia J_Mot and the moment of inertia J_Last of the load, and/or the time constant of the integrator being a function of the product of the moment of inertia J_Mot and the moment of inertia J_Last of the load.