How the world spends: A century of government budgets decoded
By shrijeetverma13 · July 12, 2026
We analyzed government spending patterns across 100+ countries and nearly a century of data, uncovering surprising shifts in priorities. From China's…
Based on the most recent year (2026) in the dataset, a bar chart and data tables were generated showing the top 10 countries by total defense budget in billions of USD.
A grouped bar chart was created comparing infrastructure and agriculture budget allocations for the 10 countries with the largest total budgets in 2026. The visualization lets you directly compare how much each country invests in infrastructure versus agriculture side by side.
The analysis identifies the countries that spend the largest share of their budget on interest payments. A horizontal bar chart ranks the top 10 countries by their average interest payment burden, showing which nations are most strained by debt servicing costs relative to their overall budgets.
In 2026, 45 countries allocate a greater share of their budgets to social welfare and health combined than to defense. This shows a clear trend among these nations toward prioritizing social programs and healthcare over military spending. A chart comparing these three budget categories across the top countries has been generated, along with supporting data tables.
The average total budget for the top six spending countries has grown dramatically over the decades. The USA remains the largest spender, rising from $49.8B in 1936 to $13,132.6B by 2026. China shows the most explosive growth, jumping from $12.1B in 1950 to $6,723.9B in 2026 — a staggering 55,359% increase. Japan, Germany, France, and the UK also show massive long-term growth, all posting increases above 16,000%. A line chart visualizes these trends over time for all six countries.
The countries that invest most heavily in education differ depending on whether you look at raw dollar amounts or budget percentage. By total spending, the USA leads by far with $1,482.7 billion, followed by China, Germany, UK, and Japan. But by percentage of government budget, Kazakhstan tops the list at 21.96%, followed by Peru, South Africa, Iran, and Chile. Interestingly, no country appears in both top 10 lists — the biggest spenders in absolute dollars aren't necessarily the ones dedicating the largest share of their budgets to education.
The correlation matrix was successfully computed across all six budget categories, and the heatmap visualization shows how spending percentages relate to each other. The strongest positive correlation was between Health Percentage and Social Welfare Percentage (r=0.361), meaning countries that spend more on health also tend to spend more on social welfare. The strongest negative correlation was between Health Percentage and Infrastructure Percentage (r=-0.621), indicating that countries investing heavily in health tend to spend less on infrastructure, and vice versa.
For 2026, the USA ranks first with a total budget of $13,132.6 billion, followed by China ($6,723.9B) and Germany ($2,601.7B). The dataset's average Administration and Others Percentage is 12.92%. Comparing each country's admin spending to this average reveals big differences: the USA spends notably less on administration (8.74%, or 4.18 points below average) despite its massive budget, while China spends more (16.92%, nearly 4 points above average). Among the lowest-budget countries, Nigeria stands out with the highest administrative spending at 21.16% (8.24 points above average), while Singapore and Chile spend well below average. A ranked table and bar chart show the top 10 and bottom 10 countries by budget alongside their administrative spending compared to the dataset average.
Looking at global averages by decade, State Transfers spending stayed fairly stable, moving from 10.55% in the 1930s to 11.27% in the 2020s (a slight rise of 0.72 points). Social Welfare spending, however, dropped noticeably from 18.46% in the 1930s to 14.41% in the 2020s, a decline of 4.05 percentage points. Social Welfare peaked early (1930s) and has since settled into a lower, more stable range around 13.5-14.5% since the 1980s, while State Transfers peaked more recently in the 2010s at 11.34%. The trend line chart clearly shows Social Welfare spending declining sharply after the 1930s before leveling off, while State Transfers remained relatively flat throughout the entire period.
Using per-country z-scores, all top 15 budget outliers are unusually HIGH spikes occurring in 2025 and 2026, not low anomalies. Turkey shows the largest absolute spike at 831.35B USD in 2026 (z=3.43), followed by Poland at 482.25B USD (z=3.42), and Romania at 177.53B USD (z=3.54, the highest z-score overall). Other notable outliers include Israel, Singapore, Vietnam, Peru, and Kazakhstan, each showing budgets far above their historical averages in these two years.