Due to the increasing energy crisis and climate warming, carbon emission reduction has attracted the attention of all countries. Carbon trading is an effective way to reduce carbon emissions. As one of the three major carbon emitters, the construction sector urgently needs to establish and improve the construction carbon trading market. Since the allocation of carbon emission rights is the first step to carbon trading, it is necessary to reasonably allocate carbon emissions to each province. This paper establishes a set of carbon emission allocation methods based on the principles of equity, efficiency, historical responsibility, emission reduction capacity and environmental level according to the relative emission reduction action target of 2030 proposed by the Chinese government. Correspondingly, urban population, carbon emission efficiency calculated by DEA model, historical cumulative CO2 emissions, ratio of R&D expenditure to GDP and forest coverage are selected as indicators and the entropy weight method is applied to allocate the amount of CO2. Taking the achievement of China's carbon peak target as an example, carbon emission quotas for public buildings in 2030 were calculated for each province. After verification of Gini coefficient and contribution coefficient, the allocation scheme is derived to be compatible with the economy, population and environment. The results show that the CO2 allocation shows a trend of gradual decrease from southeast to northwest, with Guangdong and Jiangsu having the highest carbon quotas and Qinghai and Xinjiang having the lowest. 33.3% of the provinces are under pressure to reduce emissions, with Xinjiang having the highest pressure to reduce emissions, and economically developed regions like Beijing, Zhejiang and Guangdong still face some pressure to reduce emissions. Finally, the allocation method proposed in this paper can be used as a reference for the building sector, and the allocation scheme can help policy makers in each province to formulate an effective and differentiated emission reduction strategy that ensure the successful achievement of emission reduction targets.