Contact problem of two long cylinders is analysed using ANSYS software. In order to ensure the precision of finite element analysis result and reduce the system resource, the contact area is estimated and fine meshed; Three contact stiffness values are calculated and ANSYS finite element analysis result and Hertz's solution are compared, results show that solving contact problem by ANSYS software is accurate.