During fiscal year 2012, the federal government spent  on a budget or cash basis. Major categories of fiscal year 2012 spending included: Medicare & Medicaid (23%), Social Security (22%), Defense Department (19%), non-defense discretionary (17%), other mandatory (13%) and interest (6%).