A ratchet wrench includes a telescopic handle that includes a shank, a tube and a positioning unit. The shank includes bores. The tube is movably supported on the shank and includes an aperture. The positioning unit includes a shell, a button, a spring and a ball. The shell is supported on the tube and includes a pocket. The button is movably inserted in the pocket and includes a shallow recess and a deep recess. A first portion of the ball enters one of the bores via the aperture when a second portion of the ball is placed in the shallow recess as the button is kept in an upper position by the spring. The button can be pushed to allow the second portion of the ball to enter the deep recess so that the first portion of the ball can escape from any of the bores.