The elastocaloric effect of PbTiO3 thin films with 180° domain structure is studied using the phase field method. The influence of external stress σ33, misfit strain um and domain wall energy on the adiabatic temperature change (ΔTσ) at room temperature are carried out. The calculation results indicate that |Δ Tσ| increases as |σ33| or |um| increases. The largest ΔTσ value of −7.8 K is obtained at σ33 = 2 GPa and um = −0.02. Furthermore, the domain switching behaviors under different gradient coefficients are different, and finally affect the elastocaloric effect in PTO thin films. These results could provide a guide to choose the substrate and the preparation process in experiments.