This paper presents a mathematical approach to analyzing carbon abatement costs and the allocation of carbon emission allowances in China’s industrial sectors. We utilize input–output data from 30 Chinese provinces between 2009 and 2018 to estimate carbon abatement costs by applying the slack-based measure (SBM) efficiency model and its dual form. The SBM model captures inefficiencies and offers a rigorous framework for measuring abatement costs. Using these costs, we develop a centralized allocation data envelopment analysis (DEA) model, which maximizes sectoral benefits through optimal reallocation. This DEA model is formalized as a linear programming problem, with the aim of determining the efficient allocations of carbon allowances while maintaining the system’s economic productivity. Furthermore, we construct intertemporal, interregional, and spatiotemporal allocation DEA models to examine the dynamics of carbon emission allowance allocation over time, space, and combined spatiotemporal dimensions. These models offer insights into the efficiency of carbon markets under varying conditions. Our proposed new mathematical formulations reveal optimal allocation strategies that can balance emission reductions with industrial productivity. This study also provides novel mathematical frameworks for analyzing the carbon allowance distribution and contributions to both the theory and application of mathematical optimization in environmental policy design. Our findings reveal that China’s industrial carbon abatement costs exhibit significant interprovincial and regional differences. Developed provinces with higher levels of industrial development have higher carbon abatement costs, while provinces with less-developed industrial sectors have lower costs. Under the interregional allocation scenario of carbon emission allowances that consider abatement costs, developed provinces have smaller industrial carbon emission reductions, whereas less-developed provinces have larger reductions. In the intertemporal allocation scenario, provinces with larger industrial economies face greater emission reduction tasks. Under the combined interregional and intertemporal allocation scenario, industrial sectors in coastal developed provinces have lower carbon emission reductions, while those in inland less-developed provinces have higher reductions, mirroring the spatial allocation results of carbon emission allowances.