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 the ratio of the total amount of money spent by businesses on capital goods, such as machinery, equipment, and buildings that are expected to last for more than one year to 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).

Changed in v2.2.0: this used to be returned in percentage points. It is now a decimal fraction, matching every other ratio in the Finance Toolkit.

Also known as: investment to GDP ratio.

No programming experience? With the Finance Toolkit MCP server, AI assistants such as Claude and ChatGPT can calculate the Fixed Investment to GDP for you. Just ask in plain English.

Calculate the Fixed Investment to GDP in Python

The Fixed Investment to GDP is available in the Economics module of the open-source Finance Toolkit. Install it with:

pip install financetoolkit -U

Then call get_fixed_investment_to_gdp_ratio as shown below.

from financetoolkit import Economics

economics = Economics(start_date='2000-01-01')

fixed_investment_to_gdp_ratio = economics.get_fixed_investment_to_gdp_ratio()

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

Which returns:

  Austria Germany Switzerland
2000 0.2571 0.2288 0.2751
2001 0.2493 0.2154 0.2687
2002 0.2362 0.1989 0.2708
2003 0.2419 0.1926 0.2653
2004 0.2377 0.1883 0.2731
2005 0.2323 0.1876 0.2726
2006 0.2283 0.1946 0.2706
2007 0.2314 0.1972 0.2721
2008 0.2353 0.1996 0.2673
2009 0.2266 0.1883 0.2521
2010 0.2186 0.1918 0.2519
2011 0.2271 0.2 0.2552
2012 0.2295 0.1996 0.2627
2013 0.2331 0.1957 0.2623
2014 0.2297 0.1978 0.2642
2015 0.229 0.1976 0.2641
2016 0.2332 0.2004 0.265
2017 0.2385 0.2015 0.2715
2018 0.2431 0.2084 0.266
2019 0.2508 0.2117 0.2662
2020 0.2513 0.2135 0.2699
2021 0.2588 0.2119 0.2634
2022 0.2547 0.2171 0.2625
2023 0.249 0.215 0.2593
2024 0.2515 0.2067 0.2491
2025 0.2525 0.2072 0.248

Parameters

get_fixed_investment_to_gdp_ratio accepts the following parameters:

  • countries (list[str] | str | None, optional): A list of countries or a single country to include in the results. Defaults to None.
  • rolling (int, optional): The rolling window size to use for smoothing the data (simple moving average). Defaults to None.
  • trailing (int, optional): The trailing window size to use for summing the data over trailing periods (e.g. a trailing-4-quarter sum). Defaults to None.
  • growth (bool, optional): Whether to return the growth data or the actual data. Defaults to False.
  • lag (int, optional): The number of periods to lag the growth data. Defaults to 1.
  • standardize (bool, optional): Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.
  • rounding (int | None, optional): The number of decimals to round the results to. Defaults to None.

The Economics module page introduces the module, and the sidebar lists all of its functions.

Share