The width of the pillar is an important factor in the stability of the underground space and the efficiency of resource recovery. This study aims to model the performance of retained walls in panel barrier pillar stopes. By simplifying the three-dimensional problem based on the mining operation, a two-dimensional mechanical model of non-equal-width retained walls was established, and the stress and deflection were solved analytically. The calculated deformation characteristics of equal-width and non-equal-width retained walls were analyzed and compared with numerical simulations. The results indicated that the deformation of retained walls is mainly influenced by the roof loads, the uniaxial compressive strength, and the internal friction angle of backfill materials. For equal-width retained wall design, corresponding to the areas of pillar stopes where the uniaxial compressive strength and internal friction angle of backfill materials are low, great lateral pressure will be created on the retained walls. This results in significant flexural wall deformations in this area, increasing the risk of wall collapses. In comparison, for non-equal-width retained walls, the width is defined based on the surrounding backfill materials, which could greatly reduce the risk of potential damage. For the mining operation at the actual mine, the non-equal-width design with 2.5 m and 4.0 m intervals was adopted for the panel barrier pillar stopes, and the final displacement of the roof of the stope after the completion of the mining is 34 mm, and the two sides of the mine wall remain in good integrity with no significant peeling or cracking identified. This design improves the recovery rate of mineral resources and the stability of mining.