Interest Expenditure
Get the Government Interest Expenditure for a variety of countries over time from the Government Finance Statistics of the International Monetary Fund (IMF). It is the interest the general government (the central, state and local governments and the social security funds together) owes on its debt: GFS item 24, interest payable, which is D.41 in the national accounts.
The interest is recorded when it accrues rather than when it is paid, and before the interest the government receives is netted against it. It is therefore higher than the net interest of a national budget: for the United States, the general government interest also covers the states and local governments, and the federal net interest the Congressional Budget Office reports subtracts the interest the federal government receives.
The figures are quarterly (period=”quarterly”, the default) or yearly and expressed in millions of national currency, so levels are not comparable across countries with different currencies, but growth rates are. Quarterly figures are not seasonally adjusted; trailing=4 gives the interest over the last four quarters. The IMF’s quarterly government finance statistics cover around 40 economies, among which the United States, the euro area and its members, the United Kingdom, Canada, Australia, Brazil, Turkey and Indonesia; countries outside them are left out with a warning. For those, get_government_expenditure_by_function with functions=”Public Debt Transactions” has the yearly public debt transactions (COFOG 01.7, mostly interest) of around 180 countries.
Data comes from the IMF’s Quarterly Government Finance Statistics, further information can be found within https://data.imf.org/en/datasets/IMF.STA:QGFS
Also known as: interest payments, debt service cost, interest outlays, cost of government debt.
Interest Expenditure in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_government_interest_expenditure as shown below.
from financetoolkit import Economics
economics = Economics(start_date='2015-01-01', end_date="2025-12-31")
economics.get_government_interest_expenditure(
countries=['United States', 'Germany', 'Italy'], period='yearly')
Or, after setting up the Finance Toolkit MCP, ask:
How much interest did the governments of the United States, Germany and Italy pay in each year from 2015 to 2025, in national currency?
Which returns:
| United States | Germany | Italy | |
|---|---|---|---|
| 2015 | 428286 | 42913 | 68116 |
| 2016 | 468186 | 37888 | 66258 |
| 2017 | 494638 | 34489 | 65333 |
| 2018 | 571996 | 31787 | 64366 |
| 2019 | 606869 | 28052 | 60214 |
| 2020 | 541832 | 22390 | 57125 |
| 2021 | 631404 | 21756 | 63003 |
| 2022 | 815793 | 28018 | 81614 |
| 2023 | 997791 | 36848 | 77780 |
| 2024 | 1.17905e+06 | 45828 | 85484 |
| 2025 | 1.24322e+06 | 49544 | 87145 |
Parameters
get_government_interest_expenditure 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” 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 |