FRED Graph
Write a custom formula to transform one or more series or combine two or more series.
You can begin by adding a series to combine with your existing series.
Now create a custom formula to combine or transform the series.
Need help?
For example, invert an exchange rate by using formula 1/a, where “a” refers to the first FRED data series added to this line. Or calculate the spread between 2 interest rates, a and b, by using the formula a - b.
Use the assigned data series variables (a, b, c, etc.) together with operators (+, -, *, /, ^, etc.), parentheses and constants (1, 1.5, 2, etc.) to create your own formula (e.g., 1/a, a-b, (a+b)/2, (a/(a+b+c))*100). As noted above, you may add other data series to this line before entering a formula.
Finally, you can change the units of your new series.
Add the minimum, maximum, and average calculations of selected lines to the graph
Write a custom formula to transform one or more series or combine two or more series.
You can begin by adding a series to combine with your existing series.
Now create a custom formula to combine or transform the series.
Need help?
For example, invert an exchange rate by using formula 1/a, where “a” refers to the first FRED data series added to this line. Or calculate the spread between 2 interest rates, a and b, by using the formula a - b.
Use the assigned data series variables (a, b, c, etc.) together with operators (+, -, *, /, ^, etc.), parentheses and constants (1, 1.5, 2, etc.) to create your own formula (e.g., 1/a, a-b, (a+b)/2, (a/(a+b+c))*100). As noted above, you may add other data series to this line before entering a formula.
Finally, you can change the units of your new series.
Add the minimum, maximum, and average calculations of selected lines to the graph
Data in this graph are copyrighted. Please review the copyright information in the series notes before sharing.
Notes
Source: U.S. Office of Management and Budget
Source: Federal Reserve Bank of St. Louis
Release: Debt to Gross Domestic Product Ratios
Units: Percent of GDP, Seasonally Adjusted
Frequency: Quarterly
Notes:
Federal Debt: Total Public Debt as Percent of Gross Domestic Product (GFDEGDQ188S) was first constructed by the Federal Reserve Bank of St. Louis in October 2012. It is calculated using Federal Government Debt: Total Public Debt (GFDEBTN) and Gross Domestic Product, 1 Decimal (GDP):
GFDEGDQ188S = ((GFDEBTN/1000)/GDP)*100
GFDEBTN/1000 transforms GFDEBTN from millions of dollars to billions of dollars.
Suggested Citation:
U.S. Office of Management and Budget and Federal Reserve Bank of St. Louis, Federal Debt: Total Public Debt as Percent of Gross Domestic Product [GFDEGDQ188S], retrieved from FRED, Federal Reserve Bank of St. Louis; https://fred.stlouisfed.org/series/GFDEGDQ188S, April 3, 2025.
Source: U.S. Office of Management and Budget
Source: Federal Reserve Bank of St. Louis
Release: Debt to Gross Domestic Product Ratios
Units: Percent of GDP, Not Seasonally Adjusted
Frequency: Annual
Notes:
Federal Outlays: Interest as Percent of Gross Domestic Product (FYOIGDA188S) was first constructed by the Federal Reserve Bank of St. Louis in January 2013. It is calculated using Federal Outlays: Interest (FYOINT) and Gross Domestic Product (GDPA):
FYOIGDA188S = ((FYOINT/1000)/GDPA)*100
FYOINT/1000 transforms FYOINT from millions of dollars to billions of dollars.
Suggested Citation:
U.S. Office of Management and Budget and Federal Reserve Bank of St. Louis, Federal Outlays: Interest as Percent of Gross Domestic Product [FYOIGDA188S], retrieved from FRED, Federal Reserve Bank of St. Louis; https://fred.stlouisfed.org/series/FYOIGDA188S, April 3, 2025.
Release Tables
Related Data and Content
Data Suggestions Based On Your Search
Content Suggestions
Related Categories
Releases
Tags
Permalink/Embed
modal open, choose link customization options
Select automatic updates to the data or a static time frame. All data are subject to revision.