The phenomena of extreme weather due to climate change and changes in population structure will become important issues as the elderly population, who are particularly vulnerable to climate change, continues to increase. Recognizing the damage caused by climate change, it is necessary to enhance the climate resilience of local governments to mitigate and prevent such damage. Furthermore, efficient allocation of budgets is essential for the establishment of policies and infrastructure by local governments to improve climate resilience. Accordingly, this research analyzed the relationship between the reduction of heatwave mortality rates in the elderly population and budgets for social welfare and environmental protection, as a preemptive response to potential damage related to climate change and demographic changes. Analyzing ten years of financial, demographic, heat index, and mortality rate data from 227 cities through panel analysis revealed a positive correlation between higher social welfare and environmental protection budget proportions and improved climate resilience. This increase in budget proportion had a negative relationship with heatwave mortality rate among the elderly population, indicating the necessity of increasing the share of these budgets to improve climate resilience. These results have major implications for policy formulation to address climate change and demographic shifts.