In 2022 the US spent an equivalent amount on Medicare as it did on defense ($747 billion vs $751 billion), and another $592 billion on Medicaid. US defense spending represents only 3% of GDP, and about 14% of the total federal budget.
The largest budget item is Social Security at $1.2 trillion.
Social program spending in the US massively outstrips military spending.