General Government Debt and Deficits from OECD National Accounts

General government debt and net lending or net borrowing (the deficit or surplus) as a percentage of GDP, by country and year, from OECD National Accounts at a Glance (Chapter 6: General Government) via the OECD Data Explorer API. Debt on two OECD measures: gross debt (D4, the SNA measure, including government employee pension liabilities) and adjusted debt (D3, without insurance, pensions and standardised guarantees, which OECD says is comparable across countries). Debt covers 37 OECD member countries, 1995-2025 (start years vary); net lending covers 42 countries (37 OECD members, excluding Türkiye, plus Brazil, China, Indonesia, Russia and South Africa), from 1970 for some. General government (central, state, local and social security), SNA definitions: not central government, not Maastricht debt. Values are OECD's, unchanged. Frozen snapshot of 29 November 2026. Source: OECD. Package licence: CC BY 4.0; see the licensing assessment in the README (Source and licence) and archive/PROVENANCE.md.

Report an issue
Downloads
7
Last updated
Data file
1
Size
71.1 kB
Format
csv
License
CC-BY-4.0

Data Views

1 view

General government adjusted debt (D3), G7 countries, 1995-2025 (% of GDP)

Source · core/oecd-government-debt · general-government

General government gross debt, adjusted debt and net lending (% of GDP), by country and year

General government debt and the general government deficit or surplus (net lending or net borrowing) as a percentage of GDP, by country and year, from OECD National Accounts at a Glance. Debt covers 37 of the 38 OECD member countries, 1995-2025 (start years vary); net lending covers 42 countries (37 OECD members, excluding Türkiye, plus Brazil, China, Indonesia, Russia and South Africa), from 1970 for some. One tidy table, values as OECD publishes them. Source: OECD. Package licence: CC BY 4.0; see Source and licence.

This is a frozen snapshot of OECD's figures as retrieved on 29 November 2026. OECD's API has returned server errors to GitHub's automated runners before, so there is no scheduled refresh; scripts/fetch.mjs and scripts/build.mjs rebuild it by hand from the current OECD data.

What stands out

Five of the G7 countries had general government debt above 100% of GDP in 2024, against two in 2007, before the 2008 financial crisis. On OECD's adjusted measure (D3, which leaves out government employee pension liabilities), Japan was at 218.5%, Italy 147.2%, the United States 122.0%, France 115.0% and Canada 106.5% in 2024; in 2007 only Japan (172.7%) and Italy (109.8%) were above 100%. Germany (62.1%) and the United Kingdom (89.9%) were below 100% in 2024. The count is the same, five against two, on OECD's broader gross debt measure (D4).

Across the OECD, 8 of the 37 countries with data were above 100% in 2024 (adds Greece, Spain and Belgium), against 3 of the 33 with data in 2007 (Japan, Greece, Italy). These counts hold on both D3 and D4, but the country sets differ: Colombia, Korea, New Zealand and Türkiye have debt data in 2024 but not 2007. All four were below 100% in 2024; restricting the comparison to the same 33 countries gives eight above 100% in 2024 versus three in 2007. 2024 is the latest year with figures for all 37 countries; Japan, Mexico and Colombia have no 2025 figure yet.

Data

data/general-government.csv

One row per country and year (43 countries, 1,346 rows). Rows run from the first year with any of the three measures; a cell is empty where OECD has no figure.

  • country_code, country: ISO 3166-1 alpha-3 code and OECD's name.
  • year: calendar year; debt is the stock at the end of the year.
  • gross_debt_pct_gdp: gross debt of general government, % of GDP (OECD measure LES13_FD4). OECD's broadest measure, D4: Special Drawing Rights, currency and deposits, debt securities, loans, insurance, pensions and standardised guarantees, and other accounts payable. This is the debt measure preferred in the System of National Accounts (SNA), but OECD warns that "cross-country comparability is more difficult for D4 because countries have different approaches to recording unfunded pension liabilities for government employees."
  • adjusted_debt_pct_gdp: adjusted debt of general government, % of GDP (LES13_FD3). D3: the same as D4 without insurance, pensions and standardised guarantees. OECD: "The D1 to D3 measures are comparable between OECD countries." In this snapshot, the published D3 and D4 values are equal for Japan, Italy and France.
  • net_lending_pct_gdp: net lending (+) or net borrowing (-) of general government, % of GDP (B9S13): revenue minus expenditure, so a negative number is a deficit.
  • net_lending_status: OECD's observation status for net_lending_pct_gdp, empty for a normal value; E estimated value, B break in the series. All debt values carry OECD's "normal value" status.

Values are copied unchanged from OECD, which displays them to two decimals.

Coverage and caveats

  • General government, not central government. General government is central plus state, regional and local government and social security funds. Figures are not comparable with central government debt series (such as the World Bank's), and they are not the debt of the public sector as a whole (state-owned companies and the central bank are excluded).
  • SNA definitions, not Maastricht or national headline figures. These are national accounts (SNA) balance-sheet figures. They differ from the euro area's Maastricht debt (a narrower set of instruments, at face value) and from national headline measures such as the UK's public sector net debt: for example, SNA balance sheets value debt securities at market prices. Use one measure consistently when comparing.
  • Countries. Debt: 37 OECD members; there is no debt figure for Costa Rica in this table. Start years vary (1995 for most; Japan from 2005, Korea 2008, New Zealand 2009, Türkiye 2010, Colombia 2015), so the number of countries changes over time (26 in 1995, 33 in 2007, 37 in 2015-2024, 34 in 2025). OECD's euro area and EU aggregates are left out so that every row is a country.
  • Adjusted debt above gross debt, United Kingdom. In 1999, 2016, 2019 and 2021 OECD's published UK adjusted debt (D3) is above its gross debt (D4), by 0.5, 1.6, 0.04 and 2.1 points of GDP, which should not happen if D4 includes everything in D3. The values are kept as published; treat the UK D3/D4 gap with care in those years.
  • Revisions and status. OECD may revise these figures. In this snapshot, net lending has 40 estimated observations (E) and two breaks in series (B); all debt observations carry normal status (A), which does not guarantee that they are final. The snapshot holds OECD's figures as retrieved on 29 November 2026.
  • No arithmetic. The counts in "What stands out" are computed for this README from the CSV (the command is in the repository's fact-check file); nothing in the CSV is derived by us.

Source and licence

Source: OECD, National Accounts at a Glance, Chapter 6: General Government, retrieved from the OECD Data Explorer API, https://sdmx.oecd.org/public/rest/ (dataflow OECD.SDD.NAD:DSD_NAAG_VI@DF_NAAG_VI). The D1-D4 definitions quoted above are from OECD's dataflow "Government debt by instrument coverage" (OECD.SDD.NAD:DSD_PSD_D1D4@DF_PSD_D1D4). The same tables can be browsed at https://data-explorer.oecd.org/. archive/PROVENANCE.md lists the requests and checksums.

World Bank World Development Indicators were considered (GC.DOD.TOTL.GD.ZS and GC.NLD.TOTL.GD.ZS) and excluded under the publisher's policy against redistributing IMF-sourced series. Their archived metadata identifies IMF Government Finance Statistics as the source and labels both series CC BY-4.0. See archive/PROVENANCE.md.

Licence: Creative Commons Attribution 4.0 International (CC BY 4.0) is our licensing choice for this package, not a quotation of an explicit licence designation for this table. Our assessment is that OECD's data terms permit redistribution and adaptation with attribution: https://www.oecd.org/en/about/terms-conditions.html. Please cite: OECD (2026), National Accounts at a Glance: General Government, https://sdmx.oecd.org/public/rest/ (accessed 2026-11-29). This dataset is a reformatting of OECD's table and is not an official OECD product.

API access

Access dataset files directly from scripts, code, or AI agents.

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

  1. Fetch datapackage.json to inspect schema and resources
  2. Download data resources listed in datapackage.json
  3. Read README.md for full context
/core/oecd-government-debt/4 files
  • README.mddocumentationhttps://datahub.io/core/oecd-government-debt/_r/-/README.md
  • config.jsonhttps://datahub.io/core/oecd-government-debt/_r/-/config.json
  • data/general-government.csvhttps://datahub.io/core/oecd-government-debt/_r/-/data/general-government.csv
  • datapackage.jsonmetadata & schemahttps://datahub.io/core/oecd-government-debt/_r/-/datapackage.json