Commodity Origins

What does Spain sell and buy?

Spain's largest tracked commodity export in 2024 was olive oil, $7.0 billion, 20% of its exports of the 98 commodities on this site; it ranked 1st among exporters of it. Its largest import was crude oil, $36 billion, 46% of its tracked imports. Together the tracked commodities came to $34 billion of exports and $79 billion of imports, a deficit of $44 billion.

What Spain produces and ranks in · What feeds Spain · All trade profiles · JSON

Exports

Spain's largest tracked commodity exports, 2024
CommodityValue, 2024Share of tracked exportsWorld rankShare of world exports1995 valueChange
Olive oil$7.0 billion20%143%$586 million12×
Pork$6.1 billion18%217%$241 million25×
Gold$4.1 billion12%290.8%$178 million23×
Zinc$1.4 billion4.2%19.9%$342 million4.2×
Natural gas$1.3 billion3.9%340.3%$58 million23×
Tomatoes$1.3 billion3.7%411%$829 million1.5×
Oranges$1.2 billion3.5%122%$814 million1.5×
Copper$1.2 billion3.5%151.1%$15 million78×
Cheese$898 million2.6%142.0%$75 million12×
Aluminum$743 million2.2%241.0%$214 million3.5×
Steel$612 million1.8%210.9%$211 million2.9×
Almonds$594 million1.7%212%$132 million4.5×

96 of the 98 tracked commodities have exports; the top three are 50% of the total. Concentration (Herfindahl-Hirschman index of tracked exports, 0 to 10,000, where 10,000 would be one commodity): 986.

Imports

Spain's largest tracked commodity imports, 2024
CommodityValue, 2024Share of tracked importsWorld rankShare of world imports1995 valueChange
Crude oil$36 billion46%82.8%$6.0 billion6.0×
Natural gas$11 billion14%122.2%$1.0 billion11×
Soybeans$2.5 billion3.2%33.1%$703 million3.6×
Copper$2.5 billion3.1%62.4%$348 million7.0×
Steel$2.4 billion3.0%93.5%$790 million3.0×
Cheese$2.0 billion2.5%64.5%$385 million5.2×
Corn$2.0 billion2.5%54.4%$462 million4.3×
Aluminum$1.9 billion2.4%112.4%$267 million7.0×
Wheat$1.7 billion2.2%83.0%$562 million3.1×
Olive oil$1.5 billion1.9%39.4%$332 million4.6×
Coffee$1.1 billion1.4%63.5%$559 million2.0×
Sunflower oil$898 million1.1%54.9%$45 million20×

98 of the 98 tracked commodities have imports; the top three are 63% of the total.

The whole of Spain's goods trade

The commodities above are only part of what Spain trades. In 2024 its goods exports were $401 billion and its imports $459 billion in 96 product chapters. The 98 commodities on this site made up 8.5% of the exports and 17% of the imports. The largest export chapter was vehicles (16% of exports, 7th among exporters of that chapter) and the largest import chapter mineral fuels, mineral oils and products of their distillation (13% of imports).

Spain's largest goods exports by HS chapter, 2024
Export chapter (HS)Value, 2024Share of exportsWorld rankShare of world trade in the chapter
87: Vehicles; other than railway or tramway rolling stock, and parts and accessories thereof$65 billion16%73.5%
84: Machinery and mechanical appliances, boilers, nuclear reactors; parts thereof$29 billion7.2%221.1%
85: Electrical machinery and equipment and parts thereof; sound recorders and reproducers; television image and sound recorders and reproducers, parts and accessories of such articles$23 billion5.7%220.7%
30: Pharmaceutical products$22 billion5.4%122.5%
27: Mineral fuels, mineral oils and products of their distillation; bituminous substances; mineral waxes$19 billion4.7%330.6%
39: Plastics and articles thereof$15 billion3.7%142.0%
08: Fruit and nuts, edible; peel of citrus fruit or melons$12 billion2.9%27.1%
02: Meat and edible meat offal$11 billion2.6%56.3%
07: Vegetables and certain roots and tubers; edible$10 billion2.5%310%
15: Animal, vegetable or microbial fats and oils and their cleavage products; prepared edible fats; animal or vegetable waxes$9.6 billion2.4%36.1%
Spain's largest goods imports by HS chapter, 2024
Import chapter (HS)Value, 2024Share of importsWorld rankShare of world trade in the chapter
27: Mineral fuels, mineral oils and products of their distillation; bituminous substances; mineral waxes$61 billion13%132.0%
87: Vehicles; other than railway or tramway rolling stock, and parts and accessories thereof$49 billion11%102.6%
84: Machinery and mechanical appliances, boilers, nuclear reactors; parts thereof$44 billion9.7%171.6%
85: Electrical machinery and equipment and parts thereof; sound recorders and reproducers; television image and sound recorders and reproducers, parts and accessories of such articles$43 billion9.4%221.3%
30: Pharmaceutical products$22 billion4.8%112.5%
39: Plastics and articles thereof$16 billion3.5%152.2%
29: Organic chemicals$12 billion2.6%132.5%
72: Iron and steel$12 billion2.5%142.5%
90: Optical, photographic, cinematographic, measuring, checking, medical or surgical instruments and apparatus; parts and accessories$12 billion2.5%171.7%
62: Apparel and clothing accessories; not knitted or crocheted$11 billion2.4%44.7%

Goods only, no services. CEPII BACI, all products (HS 2022), current US dollars; chapter names from the UN Comtrade HS classification. World rank is by import value for the import table. The tracked share is the profile's own total over the all-products total for the same year; it is left out where the two disagree.

Net position by commodity

Exports minus imports of the same commodity in 2024. Spain is a net seller of pork ($5.8 billion), olive oil ($5.5 billion), gold ($3.5 billion), zinc ($1.3 billion), oranges ($1.1 billion). It is a net buyer of crude oil ($35 billion), natural gas ($9.5 billion), soybeans ($2.5 billion), corn ($1.9 billion), steel ($1.7 billion).

Who Spain trades with

The three largest destinations of each leading export and the three largest origins of each leading import, by value, 2024. Shares are of Spain's own exports or imports of that commodity.

Largest trade partners by leading commodity, 2024
FlowCommodityLargest partners
Sells toOlive oilItaly (26%); United States (17%); France (8.3%)
Sells toPorkJapan (11%); Italy (11%); France (11%)
Sells toGoldUnited Kingdom (36%); Italy (28%); France (21%)
Sells toZincTurkey (Türkiye) (18%); Singapore (17%); Germany (10%)
Sells toNatural gasMorocco (32%); Portugal (15%); France (13%)
Sells toTomatoesGermany (30%); United Kingdom (14%); France (9.0%)
Buys fromCrude oilUnited States (17%); Brazil (13%); Nigeria (13%)
Buys fromNatural gasAlgeria (36%); Russia (19%); United States (18%)
Buys fromSoybeansBrazil (71%); United States (27%); France (0.4%)
Buys fromCopperPeru (26%); Indonesia (21%); Chile (20%)
Buys fromSteelFrance (14%); Germany (11%); Egypt (11%)
Buys fromCheeseGermany (21%); Netherlands (21%); France (19%)

Tracked exports and imports since 1995

$0.0bn$20bn$40bn$60bn$80bn$100bn$120bn199520002005201020152020
ExportsImports

Current US dollars, so the lines include inflation and price changes as well as volume. Years with fewer than five tracked commodities are left out.

CEPII BACI, primary customs line of each commodity, current US dollars. Only the 98 commodities on this site whose customs line is comparable across HS revisions are counted, so these are tracked-commodity totals, not Spain's whole trade. Flows are BACI's reconciled records of what one country shipped to another. Values come from the long series on the HS 1992 coding, so a figure can differ by a few percent from the same flow on a commodity page, which uses the current coding; a change since the first year is shown only where the first-year value was at least $5 million. Cite as: Commodity Origins, "Spain: what it sells and buys", https://commodityorigins.com/trade-profiles/ESP/ (CC BY 4.0).