Spain is the 16th largest export economy in the world and the 28th most complex economy according to the Economic Complexity Index (ECI). In 2017, Spain exported $296B and imported $332B, resulting in a negative trade balance of $35.7B. In 2017 the GDP of Spain was $1.31T and its GDP per capita was $38k.
The top exports of Spain are Cars ($36.4B), Refined Petroleum ($10.8B), Vehicle Parts ($10.2B), Packaged Medicaments ($8.37B) and Delivery Trucks ($6.29B), using the 1992 revision of the HS (Harmonized System) classification. Its top imports are Crude Petroleum ($23.2B), Cars ($20.1B), Vehicle Parts ($15.9B), Packaged Medicaments ($9.5B) and Petroleum Gas ($7.82B).
The top export destinations of Spain are France ($40.5B), Germany ($33.9B), Portugal ($24.2B), Italy ($22.7B) and the United Kingdom ($20.7B). The top import origins are Germany ($43.5B), France ($37.6B), China ($28.6B), Italy ($23.3B) and the United States ($14.9B).