The invention relates to a height adjustable bed base, comprising:- a support frame for supporting a mattress or box-spring- a base frame- a first leg with one end rotatably driven around a first rotation axis arranged to and near the head end of the support frame and arranged with the other end of the first leg slidable to the base frame- a second leg with one end rotatably driven around a second rotation axis arranged to and near the foot end of the support frame and arranged with the other end of the second leg slidable to the base frame, wherein the first and second rotation axes are parallel- a base actuator arranged between the base frame and the other end of the first leg for positioning the other end relative to the base frame and- a controller for controlling the rotatably driven first and second legs and for controlling the base actuator.