Where Europe's public money actually goes

Strip the politics out of the budget debate and read the accounts instead. Eurostat's 2024 figures: the EU-27's governments spent €8.85 trillion, and just three functions (social protection, health, general public services), took 67.4% of it. The single biggest line item hides one level deeper.

Every EU government files its spending under the same classification, COFOG, ten functions that split into sixty-nine sub-functions. That shared structure is a gift: it means you can compare what France, Germany and Poland actually do with public money, line by line, from one dataset. We nested the whole thing into a two-ring sunburst.

Three jobs, two-thirds of the money

Social protection is 40.0% of everything the EU-27's governments spend: €3.54 trillion on its own. Health takes 15.0%, general public services (the machinery of state, plus debt service) 12.4%. Together: 67.4%. Defence, for all its headlines, is 3.0%, though that is up from 2.7% a year earlier, one of the sharper single-year moves in the file.

Two-ring sunburst of EU government spending with a cyan-blue-violet hero sweep for the top three functions
General government expenditure by function, EU-27, 2024. Open the interactive version →Open the chart, interactive on desktop → Source: Eurostat, gov_10a_exp (CC BY 4.0).

The biggest line in every country is the same line

Drill into the outer ring and one sub-function dwarfs everything: old age (pensions and other old-age benefits), at 21.8% of all EU-27 spending. More than a fifth of every euro. And it is the biggest single line in every geography on the chart, from 13.8% in the Netherlands to a remarkable 27.6% in Italy. Hospital services (6.7%), sickness and disability (5.6%) and transport (5.1%) follow far behind.

Countries differ at the margins: interestingly

Switch countries on the chart and the title recomputes honestly: Germany's top three take 70%, Italy's 71%, Poland's 62%. The composition shifts too, in Poland, economic affairs displaces general public services in the top three; in the Netherlands and Sweden, education takes third place. Same classification, genuinely different priorities.

Why the chart is built the way it is

A sunburst earns its place only when the nesting is the story, and here it is: the inner ring carries the ten functions, the outer ring exposes the sixty-nine lines where the real choices hide. The top-three sweep starts at twelve o'clock in the theme's hero colours while the other seven functions recede into muted tones, so the 67.4% is the first thing the wheel says. The title only claims "two-thirds" when the computed share genuinely is; other countries state their exact figure. Labels are gated by arc size (a small arc gets no label rather than an unreadable one), and every label picks dark or light ink from the measured brightness of its own arc.

A word on the data

This is the rare public dataset that audits perfectly: across all eight geographies and both years we pulled, the ten functions sum to each country's published total, and every sub-function sums to its parent, to 0.0%, no gaps, no double counting. Figures are current prices; shares are of each geography's own total; "n.e.c." means not elsewhere classified.

Where a spending table usually goes wrong

A table like this has 69 rows nested in ten functions, in euros counted in millions, and three things tend to go wrong between the file and the chart. A total row gets added in with the functions it totals, and every share comes out half of what it is. Amounts in millions get written as plain euros, or in trillions in one line and millions in the next. And 69 rows end up in a pie chart that nobody can read.

How NOMO built it from the file

We gave NOMO the same Eurostat table as a CSV: three columns (Function, Detail, Spending (EUR million)) and 69 rows. It read the third column as euros in millions; there was no total row in it to leave out. It then offered the charts the file can honestly draw, and the sunburst is one of its Advanced forms. From clicking Build to the finished chart with its words took about eight seconds on our test machine (7.8 and 7.9 seconds in two runs), and NOMO's words came back in under four.

The sunburst NOMO built from the Eurostat file, headed Social protection takes 40% of EU27 spending, with its key figures and analysis
The chart NOMO built from the file, with the headline and the analysis it wrote. An Advanced chart. Source: Eurostat, gov_10a_exp (CC BY 4.0).

The headline it wrote: Social protection takes 40% of EU27 spending. And the analysis:

Social protection leads at €3.54T, 40% of spending, with Old age its largest detail. Housing and community amenities is smallest at 1.5%.

How we know the numbers are right

Before NOMO's words reach the chart, every number in them is checked against facts worked out from every row of the file. A line that does not check out is left blank for you to write, never filled with something that sounds right. Here, €3.54T is the sum of Social protection's nine lines (3,539,705.8 million, rounded), and 40% and 1.5% are the functions' shares of the €8.85T total. NOMO's notes ran two characters past what this chart holds, so the chart kept its own. And NOMO writes what the file shows, not why: nothing on the chart says why Europe spends what it does.

What it costs

A sunburst is an Advanced chart: €19, or €15.80 each in a pack of five (€79) and €12.45 each in a pack of twenty (€249). No subscription and no account. That includes every download (poster, share card, a 16:9 slide, SVG, presentation PDF, interactive HTML and an embed) and four changes asked for in plain English within 24 hours. If you would rather write the words yourself, choose My own words: the chart is the same and NOMO is not called. Six simpler chart types, among them the bar, line and donut, are free.

What your data needs to look like

A two-level hierarchy: one row per sub-item carrying its parent, its own name, and a value.

functionsub_functionspend_m_eur
Social protectionOld age1928367
Social protectionSickness & disability499664
HealthHospital services591515

Novice tip: don't pre-compute the parent totals; bring the leaf rows and NOMO adds the hierarchy up itself. If your file does carry a total row, NOMO leaves it out rather than count it twice, and says so before the chart is drawn.

The takeaway

Budget debates argue about slivers. The accounts say most of the money does three jobs, and the biggest single job (by a factor of three over the next line), is paying for old age. That's not a position; it's the file. The sunburst just makes it impossible to unsee.

Have a budget, a portfolio or a cost structure to show? Build this chart from your own file (Advanced, €19), start with the seven free charts, or ask us to design a set in your house style.

Questions

What is a sunburst chart?

A sunburst shows a hierarchy as rings. The inner ring is the top level (here, ten functions of government), each outer ring splits its parent into its parts, and every arc's angle is its share of the total. It earns its place when the parts inside the parts are the story.

Can I make a sunburst chart from a CSV or Excel file?

Yes. Each row needs the name of its parent, its own name and an amount. Drop the file into NOMO: when the file has two levels and an amount that adds up, the sunburst is one of the charts it offers.

What is COFOG?

The Classification of the Functions of Government: the ten functions, and the sub-functions inside them, that every EU government files its spending under. It is why one Eurostat table can compare what each country spends its money on.

Is my file kept?

No. On a free chart your file never leaves your browser. When NOMO writes a paid chart's words, the rows the chart draws are sent to the AI model for that one request and are not kept.

Get the next chart by email

One story in data at a time: the chart, its figures and where they come from. Free, on Substack.

Subscribe on Substack

Have a dataset in mind?

Draw a free chart from your own data.