In this work, a method based on atomic force microscopy (AFM) approach-reside-retract experiments was established to simultaneously quantify the elastic and viscoelastic properties of single cells. First, the elastic and viscoelastic properties of normal breast cells and cancerous breast cells were measured, showing significant differences in Young's modulus and relaxation times between normal and cancerous breast cells. Remarkable differences in cellular topography between normal and cancerous breast cells were also revealed by AFM imaging. Next, the elastic and viscoelasitc properties of three other types of cell lines and primary normal B lymphocytes were measured; results demonstrated the potential of cellular viscoelastic properties in complementing cellular Young's modulus for discerning different states of cells. This research provides a novel way to quantify the mechanical properties of cells by AFM, which allows investigation of the biomechanical behaviors of single cells from multiple aspects.