How big is a country’s economy? And how can we tell if it is spending more than it earns from the rest of the world? These questions are at the heart of macroeconomics, and their answers begin with careful measurement. In this chapter we build the accounting framework that captures a nation’s output, its saving and investment decisions, and every transaction it makes with foreigners.