An electric bed includes a base frame, a movable frame slidably disposed on the base frame and moveable backward and forward, a back frame having a rear end pivotally connected with the movable frame, and a driving member extendable and retractable in length, having a rear end pivotally connected with the movable frame and located below the rear end of the back frame, and a front end pivotally connected with the back frame. A linkage has a front end pivotally connected with the base frame, and a rear end pivotally connected with the back frame and located between the rear end of the back frame and the front end of the driving member. When the driving member extends longer, the back frame is rotated upwardly to enable the rear end of the back frame and the movable frame to horizontally move forward together.