For the determination of surface tension of liquid threads by molecular dynamics simulations, the most time-consuming part is the calculation of pressure tensor in the transition layer, which makes it difficult to enhance the precision of the computation. A new method for the calculation of surface tension of liquid threads to decrease the calculation quantity of pressure tensor in transition layer to the least is proposed in this paper. Four thousand eight hundred particles are taken to show how to carry out our scheme.