Interest Expenditure to GDP
Get the Government Interest Expenditure to GDP Ratio for a variety of countries over time from the International Monetary Fund (IMF). It is the interest the general government owes on its debt (GFS item 24, interest payable, D.41 in the national accounts) as a share of the Gross Domestic Product (GDP).
The interest burden as a share of GDP shows how much of the economy’s output goes to servicing government debt. It rises with the debt ratio and with the interest rate the debt is refinanced at, and is the item that turns a primary balance into the overall balance. Comparing it with the spending on a function, such as defence with get_government_expenditure_by_function_to_gdp_ratio, uses the same general government and the same GDP.
The interest is general government interest payable, on an accrual basis and before interest received is netted, so it is higher than the net interest of a national budget (see get_government_interest_expenditure). Both the interest and the GDP come from the IMF: its Quarterly Government Finance Statistics and its National Economic Accounts (quarterly GDP not seasonally adjusted, like the interest). Around 40 economies are covered; countries outside them are left out with a warning.
The ratio is expressed as a decimal fraction (0.0402 for 4.02% of GDP).
The formula is as follows:
\[\text{Government Interest Expenditure to GDP Ratio} = \text{Interest Payable} / \text{Nominal GDP},\;\; \text{both summed over the last four quarters for period="quarterly" (an annual ratio without seasonal swings) or over the year for period="yearly"}\]Also known as: interest burden, interest to GDP, debt service to GDP.
Interest Expenditure to GDP in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_government_interest_expenditure_to_gdp_ratio as shown below.
from financetoolkit import Economics
economics = Economics(start_date='2015-01-01', end_date="2025-12-31")
economics.get_government_interest_expenditure_to_gdp_ratio(
countries=['United States', 'Germany', 'Italy', 'United Kingdom'], period='yearly')
Or, after setting up the Finance Toolkit MCP, ask:
What was government interest spending as a share of GDP in the United States, Germany, Italy and the United Kingdom in each year from 2015 to 2025?
Which returns:
| United States | Germany | Italy | United Kingdom | |
|---|---|---|---|---|
| 2015 | 0.0234 | 0.0139 | 0.041 | 0.0244 |
| 2016 | 0.0249 | 0.0118 | 0.0389 | 0.0256 |
| 2017 | 0.0252 | 0.0103 | 0.0375 | 0.028 |
| 2018 | 0.0277 | 0.0092 | 0.0363 | 0.0258 |
| 2019 | 0.0282 | 0.0079 | 0.0334 | 0.0229 |
| 2020 | 0.0253 | 0.0064 | 0.0343 | 0.0208 |
| 2021 | 0.0266 | 0.0059 | 0.0343 | 0.0277 |
| 2022 | 0.0313 | 0.007 | 0.0408 | 0.0426 |
| 2023 | 0.0359 | 0.0087 | 0.0363 | 0.0322 |
| 2024 | 0.0402 | 0.0104 | 0.0387 | 0.0292 |
| 2025 | 0.0404 | 0.0109 | 0.0385 | 0.0332 |
Parameters
get_government_interest_expenditure_to_gdp_ratio accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
countries | list[str] | str | None | A list of countries or a single country to include in the results. Defaults to None. | ["United States", "Germany"] |
period | str | None | “quarterly” (the ratio over the four quarters up to each quarter) or “yearly”. Defaults to None, which is quarterly, the highest frequency published. | "weekly" |
rolling | int | The rolling window size to use for smoothing the data (simple moving average). Defaults to None. | 4 |
trailing | int | The trailing window size to use for summing the data over trailing periods (e.g. a trailing-4-quarter sum). Defaults to None. | 4 |
growth | bool | Whether to return the growth data or the actual data. Defaults to False. | True |
lag | int | The number of periods to lag the growth data. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
rounding | int | None | The number of decimals to round the results to. Defaults to None. | 2 |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |