GDP is calculated by adding together consumption (spending by consumers), government expenditure, investment (spending by businesses), and net exports (the disparity between exports and imports).