Government spending by function as share of gdp across countries in Spain

Spain: Government spending by function as share of gdp across countries was 18.5 in 2023. ▲ Rising

Latest (2023)
18.5
Change on year
up 1.0%
World rank
12th
of 37 countries
All-time high
21.91
in 2020
All-time low
12.82
in 2007
Years of data
17
2007–2023

Government spending by function as share of gdp across countries in Spain, 2007–2023

051015202007201520232007: 12.82008: 13.82009: 16.12010: 16.72011: 16.92012: 17.72013: 18.12014: 17.82015: 172016: 16.92017: 16.62018: 16.82019: 17.32020: 21.92021: 20.12022: 18.32023: 18.5

Source: Our World in Data.

Analysis

In 2023, government spending by function as share of gdp across countries in Spain stood at 18.5.

That represents a change of up 1.0% on the previous year and up 2.4% over ten years.

Over the whole period, government spending by function as share of gdp across countries in Spain peaked at 21.91 in 2020 and was at its lowest, 12.82, in 2007.

Spain ranks 12th of 37 countries on this measure, in the middle of the range.

The long-run direction has been consistently rising across the 17 years of available data.

Government spending by function as share of gdp across countries in Spain, year by year

Annual values for Government spending by function as share of gdp across countries in Spain, 2007 to 2023.
Year Value Change
2007 12.82
2008 13.77 +7.4%
2009 16.1 +16.9%
2010 16.69 +3.6%
2011 16.92 +1.4%
2012 17.74 +4.9%
2013 18.07 +1.9%
2014 17.84 -1.3%
2015 17.04 -4.5%
2016 16.86 -1.0%
2017 16.57 -1.7%
2018 16.78 +1.3%
2019 17.29 +3.0%
2020 21.91 +26.8%
2021 20.13 -8.1%
2022 18.32 -9.0%
2023 18.5 +1.0%

Averages by decade

DecadeAverage LowestHighest Years
2000s 14.23 12.82 16.1 3
2010s 17.18 16.57 18.07 10
2020s 19.72 18.32 21.91 4

Countries ranked near Spain

  1. 9 Sweden 18.89 compare
  2. 10 Greece 18.54 compare
  3. 11 Norway 18.53 compare
  4. 13 Slovakia 17.54 compare
  5. 14 Slovenia 16.93 compare
  6. 15 Poland 16.84 compare

See the full ranking of 37 places →

More economy & growth data for Spain

All data for Spain →

Frequently asked questions

What is government spending by function as share of gdp across countries in Spain?
Government spending by function as share of gdp across countries in Spain was 18.5 in 2023, according to Our World in Data.
What is the highest government spending by function as share of gdp across countries recorded in Spain?
The highest recorded value was 21.91 in 2020.
What is the lowest government spending by function as share of gdp across countries recorded in Spain?
The lowest recorded value was 12.82 in 2007.
How does Spain rank for government spending by function as share of gdp across countries?
Spain ranks 12th out of 37 countries with data for 2023.
Is government spending by function as share of gdp across countries rising or falling in Spain?
Over the last ten years it is up 2.4%. The long-run trend across the full record is rising.
Where does this Spain data come from?
The figures come from Our World in Data, published as part of Government spending by function as share of gdp across countries. Statizoid updates them automatically from the source API.

Download this data

CSV · JSON — 17 observations, free to reuse under CC BY 4.0 (Our World in Data).

Share, cite or embed this page

Cite this page

Government spending by function as share of gdp across countries in Spain. Statizoid, drawing on Our World in Data. Retrieved 25 August 2026, from https://economy.statizoid.com/stat/government-spending-by-function-as-share-of-gdp-across-countries/spain/

Embed or link this data

Paste this into a page to link back to these figures. The data itself is free to reuse under CC BY 4.0 (Our World in Data); please keep the attribution.

<a href="https://economy.statizoid.com/stat/government-spending-by-function-as-share-of-gdp-across-countries/spain/">Government spending by function as share of gdp across countries in Spain</a> — Statizoid

About this data

Indicator
Government spending by function as share of gdp across countries
Source
Our World in Data
Licence
CC BY 4.0 (Our World in Data)
Coverage
37 places, 618 data points, 2007–2024
Last refreshed