Improvement of the operating range of compressors will help the power and energy plant to work more flexibly to integrate with other energy generation systems. The stall, rotating stall, and resulting surge are the most dominant limiting phenomenon in axial compressor operating envelop. Several active and passive methods have been employed to eliminate occurring of these phenomena and to extend compressors’ stable range. Among these, casing treatment is one of the most useful methods. This study aims to investigate the effect of the number of stationary blades on the performance and stall margin of an axial compressor through numerical simulation. Casing treatments in two different configurations of 33.3 and 53.5% of rotor blade tip exposure and with six different numbers of vanes, 30, 40, 60, 80, 90, and 120, are simulated with computational fluid dynamics in ANSYS software. The numerical simulation is validated with available experimental data. The results reveal that in a high rotor exposure configuration, the highest number of vanes provides the best performance for the compressor. However, in a low exposure configuration, the optimum number of the vanes, 90 for the 33.3% exposure, can be found with the proposed numerical procedure based on stall margin improvement.