A country's GDP or gross domestic product is calculated by taking into account the monetary worth of a nation's goods and services after a certain period of time, usually one year. It's a measure of economic activity.
Then, this amount of wealth is divided among a given country's population to solve for its GDP per capita.