An energy paradigm shift from fossil fuels to renewable energy played an important role in increasing the market penetration through distributed solar generation (DSG), often with a rooftop solar photovoltaic (PV) system. For a successful implementation of DSG, it is crucial to determine how much electricity from DSG is required to offset the building electricity consumption. By examining the rooftop solar PV footprint, the total area required to meet building electricity demand with DSG, it is possible to analyze the relationship between the building electricity supply and demand strategically from the urban level. Therefore, this study aims to propose a framework for calculating the rooftop solar PV footprint by considering building electricity supply and demand from the urban level. The framework proposed in this study could be applied to accurately calculate and estimate the rooftop solar PV footprint for evaluating the building energy performance considering electricity supply and demand from the urban level.