Get the Government Interest Expenditure to Revenue Ratio 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 owes on its debt (GFS item 24, interest payable) as a share of its revenue (GFS item 1: taxes, social contributions, grants and other revenue).

The share of revenue that goes to interest is the measure rating agencies use for debt affordability: it says how much of what the government collects is committed to its creditors before anything else is paid for. Both come from the same statistics of the same general government, on an accrual basis, with the interest before interest received is netted. Around 40 economies are covered; countries outside them are left out with a warning.

The ratio is expressed as a decimal fraction (0.1351 for 13.51% of revenue).

The formula is as follows:

\[\text{Government Interest Expenditure to Revenue Ratio} = \text{Interest Payable} / \text{Government Revenue},\;\; \text{both summed over the last four quarters for period="quarterly" (an annual ratio without the seasonal swings of tax receipts) or over the year for period="yearly"}\]

Also known as: interest to revenue, interest burden on revenue, debt affordability.

Interest Expenditure to Revenue in Python or via the MCP

Install the Finance Toolkit with:

pip install financetoolkit -U

Then call get_government_interest_expenditure_to_revenue_ratio as shown below.

from financetoolkit import Economics

economics = Economics(start_date='2024-01-01', end_date="2025-12-31")

economics.get_government_interest_expenditure_to_revenue_ratio(
    countries=['United States', 'France', 'Canada'])

Or, after setting up the Finance Toolkit MCP, ask:

What share of government revenue went to interest in the United States, France and Canada in each quarter of 2024 and 2025?

Which returns:

  United States France Canada
2024Q1 0.1258 0.038 0.0788
2024Q2 0.1301 0.0386 0.0805
2024Q3 0.1335 0.0402 0.0822
2024Q4 0.1351 0.04 0.082
2025Q1 0.1354 0.0416 0.0812
2025Q2 0.1347 0.0418 0.0808
2025Q3 0.1334 0.0423 0.0792
2025Q4 0.1325 0.0427 0.08

Parameters

get_government_interest_expenditure_to_revenue_ratio accepts the following parameters.

ParameterTypeDescriptionExample
countrieslist[str] | str | NoneA list of countries or a single country to include in the results. Defaults to None.["United States", "Germany"]
periodstr | 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"
rollingintThe rolling window size to use for smoothing the data (simple moving average). Defaults to None.4
trailingintThe trailing window size to use for summing the data over trailing periods (e.g. a trailing-4-quarter sum). Defaults to None.4
growthboolWhether to return the growth data or the actual data. Defaults to False.True
lagintThe number of periods to lag the growth data. Defaults to 1.4
standardizeboolWhether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.True
roundingint | NoneThe number of decimals to round the results to. Defaults to None.2
show_columnsstr | list[str] | NoneThe 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
Share