The definition of a recession is two consecutive quarters of negative real economic growth, also known as gross domestic product. GDP is the sum of the nation's consumption, investments, government spending and net exports (that is, exports less imports).
GDP rises when people are consuming, investing and producing. As we all, unfortunately, know, in a recession we are not consuming, investing or producing as much.