An analysis is conducted on the seismic deformation of tunnels considering the spatial variation of soil parameters. First, a stochastic finite element analysis method for tunnel dynamic response is proposed, incorporating Monte Carlo simulation to account for the spatial variability of soil parameters. Subsequently, a dynamic finite element analysis model for soil-tunnel interaction is established, and the Karhunen-Loève (K-L) series expansion method is employed to generate random fields of soil parameters under various conditions. Extensive numerical simulations are performed using the proposed stochastic finite element method. Finally, the probability distribution characteristics of tunnel convergence deformation under different seismic intensities, soil parameter variability coefficients, and horizontal and vertical correlation distances are analyzed, systematically revealing the influence of soil spatial variability on tunnel convergence deformation. The research results indicate that: 1) The stochastic analysis, which accounts for the spatial variability of soil parameters, reveals a significant dispersion in the computed results, with a coefficient of variation reaching 0.166. The probability of exceeding the deterministic result is approximately 55.3%. 2) The variability coefficient of soil parameters significantly affects the standard deviation of the stochastic results of tunnel seismic deformation. 3) Both vertical and horizontal correlation distances influence the seismic deformation response of tunnels, but the effect of horizontal correlation distance is relatively smaller. 4) As seismic intensity increases, both the mean and standard deviation of tunnel deformation responses considering soil spatial variability show an upward trend. The above research reveals the effect of the spatial variability of soil parameters on the seismic deformation of the tunnel. These findings demonstrate that the prediction and evaluation of tunnel seismic deformation responses must reasonably account for the spatial variability characteristics of soil parameters. The results of this study provide a practical basis for optimizing seismic design and enhancing the resilience of tunnels in uncertain geological conditions.