To meet the 2050 decarbonization target of the global buildings and construction sector, more attention is needed to reduce carbon emissions from construction and demolition. However, current national carbon accounting studies for these activities remain limited in spatial granularity and localized applicability. This study developed a bottom-up spatiotemporal database of carbon emissions from building construction and demolition in Japan via integrating a geographic information system-based building stock model, statistical data, and survey information. Focusing on municipal-level emissions, the Logarithmic Mean Divisia Index approach was used to decompose spatiotemporal variations and identify the contributing factors. Results indicate that carbon emissions from Japan's construction and demolition activities fell by more than 50% between 2005 and 2020, largely due to declining new/demolished-to-stock ratio, suggesting a transition to a stock-based society. Central cities' reliance on carbon-intensive buildings positively contributed to spatial variations in their construction emissions, underscoring the importance of sustainable materials and timber designs. Differences between prefectures in demolition emission intensity highlighted the strategic placement of recycling facilities in key regions to curb transportation-related emissions. Overall, these findings provided data reference for local governments to devise tailored policies for managing construction and demolition emissions.