Precision porosity and facies determinations are critical in reducing drilling uncertainty and increasing hydrocarbon recoveries from heterogeneous sources. The porosity and facies distribution of the Taiyuan-Shanxi Formations (T9c-T9d), and Shihezi-1 Formation (T9d-T9e) within the Hangjinqi area are uncertain and no studies have covered the spatial distribution on a regional scale. The heterogeneous nature of coal, mudstone, and sandstone makes it challenging to comprehend the distribution of porosity and lithofacies. Also, the seismic resolution is not able to resolve the reservoir heterogeneity. Therefore, we have employed regional 3D seismic and well logs by utilizing the advanced acoustic impedance inversion to accomplish our study. Results of petrophysical analysis conducted on the well J32 showed that Shihezi-1 and Shanxi-1 Formations have potential gas-saturated zones. Crossplot analysis distinguished the lowest impedance coal from the highest impedance tight sandstone facies. The outcomes of the constrained sparse spike inversion (CSSI) reliably distinguished the coal facies from the channel-tight sandstone facies. The tight sandstone facies showed the highest impedance values as compared to coal and mudstone facies on the absolute acoustic impedance section. Impedance and porosity maps of T9d and T9e suggested the presence of a maximum porosity (8%–12% for T9d, and 5%–10% for T9e), and maximum distribution of tight sandstone facies, while T9c shows the lowest porosity (0%–6%) and lowest impedance values due to the presence of coal facies. Thick braided fluvial channels are evident on the T9d impedance and porosity maps, making it the most favorable horizon to produce the maximum gas. Whereas, T9c shows the least distribution of sandstone facies making it the least favorable. We propose that the zones of maximum porosity on the T9c, T9d, and T9e horizons can be exploited for future gas explorations.