Making use of the analytic solution of viscoelastic displacement of surrounding rock based on Maxwell model,a relational expression between elastic modulus of surrounding rock and time is established.The expression is applied into infinite element,and a recursion formula of infinite element for viscoelastic displacement of surrounding rock is obtained.It can be used to predict the viscoelatic displacement development fast and accurately.Finally this method is employed into an actual engineering,and the calculated values of displacement agree well with the measured ones,so the effectiveness of this method is prove.