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, Not Seasonally Adjusted
Frequency: Annual
Notes:
Federal Surplus or Deficit [-] as Percent of Gross Domestic Product (FYFSGDA188S) was first constructed by the Federal Reserve Bank of St. Louis in October 2012. It is calculated using Federal Surplus or Deficit [-] (FYFSD) and Gross Domestic Product (GDPA):
FYFSGDA188S = ((FYFSD/1000)/GDPA)*100
FYFSD/1000 transforms FYFSD 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 Surplus or Deficit [-] as Percent of Gross Domestic Product [FYFSGDA188S], retrieved from FRED, Federal Reserve Bank of St. Louis; https://fred.stlouisfed.org/series/FYFSGDA188S, April 15, 2025.
Source: U.S. Bureau of Economic Analysis
Release: Gross Domestic Product
Units: Percent, Not Seasonally Adjusted
Frequency: Quarterly
Notes:
BEA Account Code: A019RE
For more information about this series, please see http://www.bea.gov/national/.
Suggested Citation:
U.S. Bureau of Economic Analysis, Shares of gross domestic product: Net exports of goods and services [A019RE1Q156NBEA], retrieved from FRED, Federal Reserve Bank of St. Louis; https://fred.stlouisfed.org/series/A019RE1Q156NBEA, April 15, 2025.
Release Tables
Related Data and Content
Data Suggestions Based On Your Search
Content Suggestions
Other Formats
Federal Surplus or Deficit [-] as Percent of Gross Domestic Product
Annual, Not Seasonally AdjustedShares of gross domestic product: Net exports of goods and services
Annual, Not Seasonally AdjustedRelated 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.