Mandatory spending by the federal government totaled $4.6 trillion in 2020, of which $1.9 trillion was for Social Security and Medicare. DomesticEconomy Citations: Mandatory Spending in Fiscal Year 2020: An InfographicCongressional Budget Office04/30/2021https://www.cbo.gov/publication/57171