An increasingly decentralized energy supply structure alongside economic incentives for increasing the level of self-generation and -consumption are encouraging (higher levels of) energy autonomy. Previous work in this area has focused on the technical and economic aspects of energy autonomy at distinct scales, from individual buildings, through neighborhoods to districts. This paper employs a mixed integer linear program (MILP) to assess the effects of aggregation across these scales on the economics of energy autonomy in residential buildings. The model minimizes total energy system costs over the lifetime of the energy system, including micro-combined heat and power (mCHP), photovoltaic (PV), thermal and electrical storage, and boilers, at five distinct scales and for nine demand cases. It is subject to several constraints, among other things the degree of electrical self-sufficiency. The results indicate a shift in the economically optimal level of electrical self-sufficiency with scale, which in Single-Family Houses (SFHs) means from around 30% at the individual building level to almost 100% in districts of 1000 SFH households. Above around 560 households it could be economically advantageous to make a district of residential buildings electrically self-sufficient. In addition, a marginal increase in electrical self-sufficiency is significantly more expensive at lower aggregation scales (i.e. single buildings) compared to the scale of neighborhoods and districts. The level of interaction with the electrical distribution network increases with increasing electrical self-sufficiency before then decreasing at very high (above 70%) levels. Future work should focus on a richer socioeconomic differentiation, considering other sectors and technologies, incorporating demand side options and analyzing the effects on the overarching energy system.