Get the Fixed Investment to GDP Ratio for a variety of countries over time from the Global Macro Database (GMDB). The Fixed Investment to GDP Ratio is gross fixed capital formation (what businesses, households and the government spend on fixed assets such as machinery, equipment, buildings and dwellings, without the change in inventories) as a share of the Gross Domestic Product (GDP).

Data comes from the Global Macro Database (GMDB), further information about the variable can be found within https://www.globalmacrodata.com/documentation.html

The ratio is expressed as a decimal fraction (0.2179 for 21.79% of GDP).

The ratio is the Global Macro Database’s own figure, published in percent and divided by 100 here.

The formula is as follows:

\[\text{Fixed Investment to GDP Ratio} = \text{Gross Fixed Capital Formation} / \text{Nominal GDP}\]

Also known as: investment to GDP ratio.

Fixed Investment to GDP in Python or via the MCP

Install the Finance Toolkit with:

pip install financetoolkit -U

Then call get_fixed_investment_to_gdp_ratio as shown below.

from financetoolkit import Economics

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

fixed_investment_to_gdp_ratio = economics.get_fixed_investment_to_gdp_ratio()

fixed_investment_to_gdp_ratio.loc[:, ['Austria', 'Germany', 'Switzerland']]

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

How did fixed investment as a share of GDP compare in Austria, Germany and Switzerland from 2016 to 2025?

Which returns:

  Austria Germany Switzerland
2016 0.2332 0.2 0.2674
2017 0.2385 0.2016 0.2751
2018 0.2431 0.2086 0.2698
2019 0.2508 0.2121 0.2699
2020 0.2513 0.213 0.2763
2021 0.2586 0.2111 0.268
2022 0.2521 0.2154 0.2627
2023 0.2469 0.2119 0.2689
2024 0.2355 0.2049 0.2643
2025 0.2353 0.2035 0.2599

Parameters

get_fixed_investment_to_gdp_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"]
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
gmdb_forecastsboolWhether to include the years the Global Macro Database projects, from the IMF’s World Economic Outlook, up to five years ahead. Only applies to data from the Global Macro Database. Defaults to False, which ends a series with its last observation.True
Share