GDP = C + G + I + NX. C is equal to all private consumption, or consumer spending, in a nation's economy, G is the sum of government spending, I is the sum of all the country's investment, and NX is the nation's total net exports, calculated as total exports minus total imports