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.