Transmission for a motor vehicle, having a drive shaft, an output shaft, a first planetary gear set which is configured as a multi-step planetary gear set and the planetary gears of which have two different active diameters, and a second planetary gear set, - the first and the second planetary gear sets (P1, P2) being configured as negative gear sets, - a first sun gear of the first planetary gear set being assigned to the larger active diameter of the planetary gears, - a second sun gear of the first planetary gear set being assigned to the smaller active diameter of the planetary gears, - the second sun gear of the first planetary gear set being connected permanently to a sun gear of the second planetary gear set, - a spider of the first planetary gear set being connected permanently to an internal gear of the second planetary gear set, - it being possible for the drive shaft to be connected to a spider of the second planetary gear set via a first shifting element, to be connected to the second sun gear of the first planetary gear set via a second shifting element, and to be connected to the first sun gear of the first planetary gear set via a third shifting element, - it being possible for an internal gear of the first planetary gear set to be fixed in a torque-proof manner via a fourth shifting element, - it being possible for the first sun gear of the first planetary gear set to be fixed in a torque-proof manner via a fifth shifting element, - the output shaft being attached to the internal gear of the second planetary gear set, - the transmission having an electric machine, the rotor of which is connected permanently to the drive shaft, and - the first sun gear of the first planetary gear set not being connected permanently in a torque-proof manner to any further electric machine, and it not being possible for the said first sun gear to be operatively connected to any further electric machine by way of a shifting element. - the first and the second planetary gear sets (P1, P2) being configured as negative gear sets, - a first sun gear of the first planetary gear set being assigned to the larger active diameter of the planetary gears, - a second sun gear of the first planetary gear set being assigned to the smaller active diameter of the planetary gears, - the second sun gear of the first planetary gear set being connected permanently to a sun gear of the second planetary gear set, - a spider of the first planetary gear set being connected permanently to an internal gear of the second planetary gear set, - it being possible for the drive shaft to be connected to a spider of the second planetary gear set via a first shifting element, to be connected to the second sun gear of the first planetary gear set via a second shifting element, and to be connected to the first sun gear of the first planetary gear set via a third shifting element, - it being possible for an internal gear of the first planetary gear set to be fixed in a torque-proof manner via a fourth shifting element, - it being possible for the first sun gear of the first planetary gear set to be fixed in a torque-proof manner via a fifth shifting element, - the output shaft being attached to the internal gear of the second planetary gear set, - the transmission having an electric machine, the rotor of which is connected permanently to the drive shaft, and - the first sun gear of the first planetary gear set not being connected permanently in a torque-proof manner to any further electric machine, and it not being possible for the said first sun gear to be operatively connected to any further electric machine by way of a shifting element.