# How is GDP counted between different countries?

Sorry if this question is dumb, but I did not manage to find the answer on the web. The questions is as follows:

As far as I understand, GDP is the total value of a country's production. It includes all the output, and thus it represents the cost of all the wages and primary ressources used to produce this output. But how is this cost passed from one country on other countries, considering a globalized economy?

For example, let's say that country A as a 3 000 \$ GDP. And country B as a 2 000 GDP. But country A's economy consists only in producing computers, which are built with processors built by country B: For one computer, cost = 3, two processors (each cost = 1) are needed. So in the end, when country A sells 1 000 computers which gives 3 000 GDP, 2 000 of this GDP is buying the GDP of country 's B (2 00 processors = 2 000 of GDP).

In the end, A's GDP is higher than B's GDP but A's income is lower than B's income. And somehow, A's GDP is (B's GDP + A's working value) with A's working value being only 1 000, while B's GDP is (B's working value) with B's working value being higher (2 000) than A's.

Is all this analysis true in the real world? And example in the real world: China has a big GDP but it consists mainly of B2B sellings to other countries: are those sellings, sold again in other countries (let's say USA), counted as GDP for USA?

I think the only answer to this is that you need to read a guide on GDP calculations. Link to the Bureau of Economic Analysis, which calculates US GDP.

There are plenty of online guides that describe GDP.

• Thanks for the link, I'll share it. For now, I know that GDP is reduced with the degradation of hardware used for production. May 9, 2020 at 13:58
• There is also a manual that talks about the methodology for GDP at an international perspective. It is from the OECD. The Organization for Economic Co-operation and Development is an intergovernmental economic organization with 37 member countries, founded in 1961 to stimulate economic progress and world trade oecd.org/sdd/UNA-2014.pdf May 9, 2020 at 15:42

So, from the link posted by @Brian Romanchuk, I got this paper and got the answer:

GDP = Consumption + Investment + Government spending + eXports – iMports

So in the example, country A GDP would end up to be: GDPA_A = 3 000 - 2 000 = 1 000 and being correctly a smaller quantity than country B's GDP.

Thanks to contributors

• Yes, imports are not counted in (or rather they are subtracted from) the Gross Domestic Product. See also economics.stackexchange.com/questions/9560/…
– Fizz
May 9, 2020 at 15:32
• Also note (and I thought that this is what you were asking about) that if you export all those 3000 computers, you are including imports (i.e. CPU value of 2000) in the export value with the standard measure of exports! (To account for the difference in the latter when talking about trade, you need something like TiVA.)
– Fizz
May 9, 2020 at 15:46