Shale gas development has greatly contributed to the world's energy supply. Pressure transient analysis (PTA) has extremely helped the development of shale gas. In this paper, a three-dimensional numerical model for transient pressure analysis of multi-stage fractured horizontal wells (MFHWs) in shale gas reservoirs was proposed, which was based on the embedded discrete fracture model (EDFM). The adsorption effect of shale gas, stress sensitivity of shale reservoir, and high-velocity non-Darcy flow in fractures were considered in this model, and the model was solved by Matlab Reservoir Simulation Tool (MRST). The discrete process of governing equations is described in detail, the typical MFHW pressure transient response curve of a shale gas reservoir was obtained, different flow regimes were divided, and three-dimensional pressure distribution profile of different flow stages were drawn to clearly understand the flow states of shale gas in the reservoir. The effects of different flow mechanisms and fracture properties on the log–log curves of the MFHW pressure transient response were analyzed in detail. The numerical PTA model proposed in this paper not only considers a variety of complex flow mechanisms of shale gas, but also accurately describes the characteristics of complex fracture network of shale reservoirs in three-dimensional conditions through EDFM. In addition, the problems of the incomplete description of shale gas flow stages by conventional analytical methods and semi-analytical methods were avoided through the numerical solution. The pressure response behavior of fluid in shale gas reservoir can be better explained by using this model, which helps to reduce the uncertainty of shale reservoir development.