Perfectly matched layer (PML) is known as one of the best methods to simulate infinite domains in many fields such as soil-structure interaction (SSI). The performance of PML is significantly affected by PML parameters selection. However, the way to select PML parameters still remains unclear. This study proposes a method for PML parameters determination for elastic wave propagation in two-dimensional (2D) media. The scaling and attenuation functions are developed in order to increase the accuracy and effectiveness of the PML. The proposed scheme is applied for a mixed PML in time domain. The finite element method (FEM) formulations of the PML are presented so that it can be easily applied to the existing codes. ABAQUS, a popular FEM code, is used for numerical applications in this study. The proposed PML is imported into ABAQUS by using a user-defined element (UEL) written in Fortran language. Six numerical analyses of SSI are implemented to prove the efficiency of the proposed PML. The numerical analyses cover many realistic problems, including free field, surface structure, and embedded structure problems. The results demonstrate the efficiency of the proposed PML in terms of the accuracy and computational cost.