Public spending on pensions, health, family support, unemployment and other social programmes averaged 21% of GDP across OECD countries in 2024, up from 14% in 1980. This dataset has that spending, in total and by area, for 42 countries from 1980 to 2024.

## What stands out

- **Social spending has grown by about 47%.** The OECD average went from 14.4% of GDP in 1980 to 21.2% in 2024. It spiked to 23.3% in 2020, the Covid year, and has come back to about 21%.
- **France is near the top.** It spends 30.6% of GDP, third behind Austria (31.6%) and Finland (31.4%), up from 20.3% in 1980. Belgium, Germany and Italy spend about 28%; Denmark and Sweden about 26%.
- **The United States is below the average, not far off it.** 19.8% in 2024, up from 12.9% in 1980. The middle country of the 42 spends 20.2%.
- **The low end is far lower.** Mexico spends 10.0% (2023) and Peru 7.5% (2023). South Korea has gone from 4.2% in 2000 to 15.3% in 2024.
- **Old age and health take the largest shares.** In the OECD average, old-age spending was 7.7% of GDP in 2021 (5.0% in 1980) and health 6.6% (4.1%). Family spending was 2.3% and unemployment 1.0%.
- **Private spending adds to the public figure in a few countries.** Canada's voluntary private social spending was 5.1% of GDP in 2022, on top of 19.3% public.

## Data

OECD Social Expenditure Database (SOCX), aggregates, as a percentage of GDP.

- `data/social-spending-by-country.csv`: one row per country and year, 1980 to 2024 (1,560 rows, 42 countries). Columns: `country_code`, `country`, `year`, `total_public`, the nine policy areas (`old_age`, `survivors`, `incapacity`, `health`, `family`, `active_labour_market`, `unemployment`, `housing`, `other`), then `total_public_and_mandatory_private`, `mandatory_private` and `voluntary_private`. All in percent of GDP, rounded to three decimals.
- `data/latest.csv`: each country's latest year with a public total (42 rows: 24 in 2024, 10 in 2023, 5 in 2022, 3 in 2021). Same columns, for that year; the areas and private columns are blank where OECD has not yet published them for that year.
- `data/oecd-average.csv`: the OECD aggregate OECD publishes, 1980 to 2024 (45 rows). Same columns.

Where all nine areas and the public total are present, country rows agree within 0.002 percentage points; the OECD average's areas do not necessarily sum to its public total (the gap reaches 0.57 points in 1983). Public spending means cash benefits and benefits in kind provided by general government and compulsory social security funds (OECD source code ES10). The private columns are all-area totals only: mandatory private (ES20), voluntary private (ES30) and public plus mandatory private (ES10_20).

## Caveats

- **Blank is not zero.** A blank means OECD gives no value for that country, year and column.
- **Totals run later than the areas.** Totals are published to 2024 (2021 to 2024 by country); the nine areas stop at 2021 to 2023, and the private columns lag further. The OECD average has no area breakdown after 2021.
- **Latest years differ.** `latest.csv` mixes 2021 to 2024. Compare countries within one year in the main file when it matters. The newest years may be revised.
- **Not every country starts in 1980.** 23 countries have a 1980 total; 17 of the other 19 start in 1990 or later. The OECD average is as OECD publishes it, not recomputed here.
- **Public social spending is not all social spending.** Tax breaks for social purposes and most private provision are outside the public figure. Net-of-tax spending and price-adjusted series exist in the full OECD database but are not included here.
- **Definitions differ in detail.** OECD sets common definitions, but national systems differ, for example in whether sickness pay is paid by the state or by employers (mandatory private).

## Source and licence

Source: OECD, Social Expenditure Database (SOCX), Social expenditure aggregates (dataflow `OECD.ELS.SPD:DSD_SOCX_AGG@DF_SOCX_AGG`, version 1.0), retrieved on 2026-12-05 from the OECD Data Explorer API (`https://sdmx.oecd.org/public/rest/`). The request is filtered to percent of GDP, the four expenditure sources above, the total and the nine areas; unfiltered the dataflow is about 1 GB. See `archive/PROVENANCE.md`.

Please cite: OECD (2026), Social Expenditure Database (SOCX), https://www.oecd.org/en/data/datasets/social-expenditure-database-socx.html, retrieved via the OECD Data Explorer API (accessed on 5 December 2026). This is DataHub's tidy extract; it is not an official OECD product.

Licence: OECD [Terms & Conditions](https://www.oecd.org/en/about/terms-conditions.html), section 3 (Data), read on 2026-12-05 and archived in `archive/oecd-terms-conditions.html`. It says: "Except where additional restrictions apply as stated above, you can extract from, download, copy, adapt, print, distribute, share and embed Data for any purpose, even for commercial use. You must give appropriate credit to the OECD by using the citation associated with the relevant Data, or, if no specific citation is available, you must cite the source information using the following format: OECD (year), (dataset name),(data source) DOI or URL (accessed on (date)). When sharing or licensing work created using the Data, you agree to include the same acknowledgment requirement in any sub-licenses that you grant, along with the requirement that any further sub-licensees do the same." The OECD does not label this dataflow CC BY 4.0, so it is not offered here under that licence: reuse needs the credit above, passed on to anyone you share it with. The OECD may also restrict a dataset on third-party grounds (the section says so); the dataflow's metadata names none.

## Upkeep

Living: a GitHub Actions workflow (`.github/workflows/update.yml`) re-fetches the source every quarter (12th of January, April, July and October) and rebuilds `data/`, updated quarterly. Source endpoint: dataflow `OECD.ELS.SPD:DSD_SOCX_AGG@DF_SOCX_AGG` on the OECD Data Explorer SDMX API (no key). The fetch uses curl, waits 15 seconds between requests and retries when OECD answers 429 or 500. If the data changed, the workflow pushes a `refresh/<date>` branch and opens an issue rather than committing to main, because this README and the view descriptions quote dated figures: update them, fact-check any changed headline number, then merge. The build stops if the structure or the numbers stop making sense. To refresh by hand, run `node scripts/fetch.mjs` and `node scripts/build.mjs`.
