Government spending (G) is a component of aggregate demand. The aggregate demand (AD) equation is Y = C + I + G + NX. It measures the total demand for goods and services in the economy. Using a diagram we can draw AD and show how a shift in G will affect the macroeconomy. (show on diagram). Thus an increase in G increases inflation and national income by increasing aggregate demand.