Comparing budgets by adjusting for inflation doesn't make any sense. A budget that served a country of 218 million in 1976 would, when adjusted for inflation, serve a country of 218 million in 2026. Percentage of GDP is what you want to look at.
Budget-to-GDP ratio in the US is close to 40%. (On that note, you should really consider federal + state combined rather than just federal.)
In early 1900s this same ratio was around 5-10%.
It has been increasing pretty much everywhere during the 20th century. It has made me wonder whether much of the prosperity we've seen and felt might not be a result of this ever-increasing percentage. Essentially we're spending more and more and that makes it feel like we're progressing faster than we are. Eventually it's going to have to stop though and I dread what happens when we do.
I don't see why we'd eventually have to stop this level of spending. The debt is unsustainable, but that's a policy choice to keep taxes too low for the level of spending we've chosen.
It's also the case that none of the CIA, NSA or DHS budgets show up under the military, even though they're performing some of the same functions that would be handled by militaries in other countries.
We also have "black appropriations." So the total of the spending on surveillance and kinetic operations is often unknowable. Add to this the fact the Pentagon has never successfully performed an audit and I think people are right to be suspicious of the topline "fraction of GDP" number.