Hammer is an important part of the top drive system. ANSYS software was applied to analyze the top drive system drilling rig hammer. The procedures and methods were introduced in this paper. A reliable reference for optimizing the design and improving the structure is provided. Through calculation, whether the design of top drive system is sufficient to actual requirement can be judged. The changes of strain and stress in hammer are qualified to the top drive system.