Enhanced coalbed methane (ECBM) recovery by gas injection is regarded as a feasible method for ECBM recovery. To investigate the mechanism of CH4 displacement by N2 injection, a series of physical experiments were conducted in the laboratory under different N2 injection pressures. The experimental results showed a continuous increase in the N2 volume fraction and a decrease in the CH4 volume fraction with the N2 injection pressure. The CH4 displacement efficiency increases rapidly in the initial stage and then gradually stabilizes. Given the effect of matrix shrinkage and effective stress on coal permeability, a dynamic multi‐field coupling model of ECBM recovery by N2 injection (N2‐ECBM) was proposed in this work. Then, numerical simulations were implemented by the coupling model to analyze the key factors affecting coal permeability, N2 injection pressure and CH4 pressure during the N2–ECBM process. Furthermore, the Response Surface Methodology (RSM) was used to investigate the interactions of multiple factors, the results reveal that an increase in one factor would weaken the influence of another factor. In addition, a RSM regression model was obtained and verified by the experimental data, with a well‐fitting outcomes. Therefore, the RSM model can be used in practical engineering applications to optimize specific extraction parameters for ECBM recovery at minimum cost in a limited extraction period.