The budget deficit as a percentage of GDP tends to rise during recessions (indicated by shaded areas) and fall during expansions.
Sources:
Bureau of Economic Analysis; National Bureau of Economic Research.