The invention discloses an electric swing for riding a wheelchair. The electric swing comprises a swing bracket, a cross beam, a driving motor, a one-way clutch, a planetary gear box, a chain wheel I,a transmission chain, a chain wheel II, a rotating shaft, a bearing seat I, a swing cage, a limiting column, a dragging rope, a movable plate, supporting columns, a start-stop button, grab rails, a bearing seat II and a wire-rewinding device. By arranging the dragging rope to drag movable plate, a user can drag the dragging rope to open and close the movable plate, the wheelchair user can conveniently enter to sit on the support columns, the device is simple in structure, safe and stable, and convenient to operate, and a person sitting on the wheelchair can control the driving motor to rock the swing through the start-stop button by himself, so that the purposes of entertainment and body building are achieved.