An electric drive device for a motor vehicle has a housing, a first planetary gearset arranged in the housing and which has a first sun gear as first elements, a first planetary support, and a first gear ring. A second planetary gearset is arranged in the housing and has a second sun gear that is coupled or can be coupled non-rotationally to the first gear ring as second elements and a second planetary support and a second gear ring. The device has an electric motor, which has a stator and a rotor, an input shaft that can be driven by the rotor and is permanently non-rotationally connected to the first sun gear, an output shaft, having a differential transmission, a lateral shaft and having a first switching element, which is provided to connect the first sun gear non-rotationally to the housing. The rotor, the first planetary gearset, the second planetary gearset, and the differential transmission are arranged coaxially to one another. The lateral shaft is arranged between the differential transmission and a wheel of the motor vehicle and penetrates the rotor.