The multilayered deposition is the main feature of the tidal flat reservoir in the western Sichuan Basin. The boundary distance among layers of the tidal flat reservoir is different. To understand the influence of vertical inhomogeneous closed boundary (VICB) on pressure transient behavior, an extended n-layer VICB reservoir model is presented.Firstly, the VICB is discretized into n boundary segments representing the characteristics of the individual layer, and the reservoir is divided into n horizontal layers accordingly. The pressure transient model of the n-layer VICB reservoir is established by the seepage equations and boundary conditions of the individual layer. Secondly, solving Bessel equations consisting of 2n boundary conditions by the Cramer's rule to obtain the bottom-hole pressure solution in Laplace space. The wellbore storage and skin effect are taken into account by Duhamel's principle in the Laplace domain. Lastly, the bottom-hole pressure solution in the real-time domain is obtained by the Stehfest numerical inversion algorithm. The comparison result with the bottom-hole pressure of the two-layer reservoir proves the reliability of the n-layer VICB reservoir model.In the n-layer VICB reservoir model, a new VICB radial flow regime is identified which easily mistaken as the outer radial flow of the composite reservoir model. The result of sensitivity analysis shows that the pressure transient behavior of the n-layer VICB reservoir has the “equivalent compound zone effect” and “equivalent boundary radii effect”. There is a quantitative relation between the distribution of VICB and the characteristics value of pressure derivative during the VICB radial flow regime stage.The “equivalent compound zone effect”, “equivalent boundary radii effect” and the quantitative relation provide a simple and fast analytical method for identifying the vertical distribution and distance range of VICB. Finally, a field case from the western Sichuan Basin multilayered gas reservoir is discussed in detail to validate the capabilities of our model.