Electrical machine having: a two-part shaft with a first and a second shaft part (12, 13) between which a rotor is arranged and is connected to the two shaft parts (12, 13), wherein the rotor has a magnetic element receptacle in which at least one magnetic element is received, wherein a connecting rod - either is guided entirely through one shaft part and the rotor with its at least one magnetic element and is partially inserted into the other shaft part and fastened to it, in particular fastened in a positively locking and/or non-positively locking manner, - or is guided entirely through both shaft parts (12, 13) and the rotor with its at least one magnetic element and the two shaft parts (12, 13) and the rotor are clamped to one another in the axial direction, in particular by clamping elements, wherein both ends of the magnetic element are designed as outwardly protruding pointed or blunt ends which are received in corresponding receptacles of the electrical machine, characterized in that the receptacles for receiving the ends of the magnetic element by way of its outwardly protruding pointed or blunt ends are designed as recesses in each case in a carrier plate arranged between the respective shaft part (12, 13) and the at least one magnetic element, wherein the carrier plates are not magnetic, wherein the carrier plates are each formed in an outwardly conically tapering manner on the side situated opposite the respective shaft part (12, 13) and the shaft parts (12, 13) each have a corresponding recess for receiving the respective carrier plate. a two-part shaft with a first and a second shaft part (12, 13) between which a rotor is arranged and is connected to the two shaft parts (12, 13), wherein the rotor has a magnetic element receptacle in which at least one magnetic element is received, wherein a connecting rod - either is guided entirely through one shaft part and the rotor with its at least one magnetic element and is partially inserted into the other shaft part and fastened to it, in particular fastened in a positively locking and/or non-positively locking manner, - or is guided entirely through both shaft parts (12, 13) and the rotor with its at least one magnetic element and the two shaft parts (12, 13) and the rotor are clamped to one another in the axial direction, in particular by clamping elements, - either is guided entirely through one shaft part and the rotor with its at least one magnetic element and is partially inserted into the other shaft part and fastened to it, in particular fastened in a positively locking and/or non-positively locking manner, - or is guided entirely through both shaft parts (12, 13) and the rotor with its at least one magnetic element and the two shaft parts (12, 13) and the rotor are clamped to one another in the axial direction, in particular by clamping elements, wherein both ends of the magnetic element are designed as outwardly protruding pointed or blunt ends which are received in corresponding receptacles of the electrical machine, characterized in that the receptacles for receiving the ends of the magnetic element by way of its outwardly protruding pointed or blunt ends are designed as recesses in each case in a carrier plate arranged between the respective shaft part (12, 13) and the at least one magnetic element, wherein the carrier plates are not magnetic, wherein the carrier plates are each formed in an outwardly conically tapering manner on the side situated opposite the respective shaft part (12, 13) and the shaft parts (12, 13) each have a corresponding recess for receiving the respective carrier plate.