The embodiment of the utility model provides a cup holder with an anti-toppling function, and relates to the technical field of cup holders. Comprising a vertical plate, the top end of the vertical plate is movably sleeved with a movable rod, the bottom end of the movable rod is fixedly provided with a first gear, the symmetrical outer wall of the first gear is in meshed connection with a second gear, one side of the second gear is fixedly provided with a screw, the outer wall of the screw is in threaded connection with a threaded block, and one side of the threaded block is fixedly provided with a connecting block. And a limiting ring is fixedly mounted on one side of the connecting block. A movable rod is screwed, a second gear is driven to rotate through meshing of a first gear, then a screw rod is driven to rotate, a threaded block conducts threaded movement on the outer wall of the screw rod, a connecting block is driven to move up and down, then a limiting ring is driven to move up and down, and the position is adjusted through up-down movement of the limiting ring; adjustment can be carried out according to different cup body heights, the placing stability is improved, and toppling caused by the height after placing is avoided.