This [0] mentions that social security, medicare, public assistance and military and other federal wages were a wash, as of 2018-2022 data:
> Digging deeper into the component parts of federal contribution, red and blue states received similar dollar amounts in direct payments on a nominal ($6.9 trillion) and per capita ($42,900) basis, much of which come in the form of payments from Social Security, Medicare, and public assistance programs, such as the earned income and child tax credits. The red and blue states also receive similar amounts for military and non-military wages (excluding the U.S. Post Office, which is self-funded) on a nominal ($650 billion) and per capita ($4,900) basis.
Tax receipts were listed as the most significant difference, and after that other things like military bases, block grants, federal contracts and highways, some going one way, and some the other.
The numbers were interesting. They added it up to $1 trillion going from blue to red states.
[0] https://www.congress.gov/119/meeting/house/118494/documents/...