A new scanning tunneling microscope (STM) nanomoire method for measuring nanometerdeformation is proposed. In the measurement, the moire pattern is generated by the scanning line of scanning tunneling microscope and the atomic lattice of substance as a specimen grating. The principle of forming STM nanomoire and experimental techniques is described in detail. Nanodeformation virtual strain of high orientated pyrolytic graphite(HOPG) is measured by using of this method, virtual direct strain values gained according to the change from scanning size is compared with the theoretic solution.