Matrix acidizing is one of the common methods to enhance production in sandstone reservoirs. Conventional acidizing designs generally neglected the effect of heterogeneities of mineral and flow field distributions both in areal and vertical directions and assumed that the acid front propagates with a piston-like style. However, sandstone formations inevitably have small-scale heterogeneities of minerals and flow properties that may give rise to acid propagation in a manner much different from what is predicted based on homogeneous assumptions. In this paper, we conduct a research to numerically investigate how the heterogeneities affect acidizing performance under in situ conditions. Firstly, a heterogeneity model is built for mineral and porosity distributions by using the semivariogram model of geological statistics, based on which we generate spatially correlated porosity and mineral distributions. Next, a model of radial acid flooding is developed based on mass balance and the chemical reactions between the acids and minerals occurring during the acidizing process. The model is numerically solved to investigate the permeability response, acid distributions, precipitate distributions, and the effect of the heterogeneities on acidizing. The results show that the heterogeneities both in areal and vertical directions have a significant effect on acidizing. The flow field heterogeneities have a more serious impact than the mineral heterogeneities. In a plane, strong porosity heterogeneity can give rise to acid fingering and even channeling, which make the acid penetration distance longer than the homogeneous cases. The secondary precipitate has a significant effect when fast-reacting mineral content is high. Vertically, several-fold permeability contrast creates the acid break through the high-perm zone leaving the low-perm zone understimulated. Both flow field and mineral heterogeneities make it possible to create high-permeability channels during the acidizing process and to obtain a longer acid penetration distance.