Key facts

At rank 16 among 205 economies by merchandise imports in 2025, Spain imported US$513.3 billion and exported US$445.1 billion, according to World Bank/WTO data. In 2024, UN Comtrade data show that France was Spain's largest export market, taking 14.5% of its merchandise exports.

Spain trade at a glance

Scroll sideways to see all columns.

The two columns cover different years and sources, so their totals are not directly comparable. To compare sources, use the same year: see the methodology
MeasureWTO via World Bank (2025)UN Comtrade (2024)
ExportsUS$445.1 billionUS$403.7 billion
ImportsUS$513.3 billionUS$451.3 billion
Total tradeUS$958.4 billionUS$855 billion
Trade balance−US$68.2 billion−US$47.6 billion
Import valuation basis—CIF

Spain exports and imports, 2015–2025

  • Exports
  • Imports

nominal US$

Spain merchandise exports and imports, 2015–2025 (nominal US$)Spain exported US$445.1 billion and imported US$513.3 billion of goods in 2025, according to WTO data published by the World Bank.0US$200 billionUS$400 billionUS$600 billionUS$800 billion20152016201720182019202020212022202320242025ImportsExportsSpain merchandise exports and imports, 2015–2025 (nominal US$)Spain exported US$445.1 billion and imported US$513.3 billion of goods in 2025, according to WTO data published by the World Bank.0US$200 billionUS$400 billionUS$600 billionUS$800 billion201520172019202120232025

2025 was the peak year for Spain's merchandise exports in the World Bank/WTO series, at US$445.1 billion. From 2015, when exports stood at US$282.3 billion, they grew 57.7% in nominal terms. Imports also reached their series peak in 2025, at US$513.3 billion. They rose 7.1% from 2024, when they stood at US$479.3 billion.

Spain: merchandise exports and imports, 2015–2025 (nominal US$, WTO via World Bank)
YearExports (US$)Imports (US$)
2015US$282.3 billionUS$311.9 billion
2016US$290 billionUS$310.9 billion
2017US$319.5 billionUS$352 billion
2018US$346.8 billionUS$390.6 billion
2019US$334 billionUS$372.8 billion
2020US$308.3 billionUS$326.2 billion
2021US$380 billionUS$419.7 billion
2022US$415.5 billionUS$494.3 billion
2023US$422.5 billionUS$469.9 billion
2024US$428.5 billionUS$479.3 billion
2025US$445.1 billionUS$513.3 billion

Spain's top trading partners (2024)

Spain sourced nearly equal shares of its merchandise imports from Germany and China in 2024: 10.8% and 10.3%, respectively. France accounted for 8.2% of imports. On the export side, France took the largest share at 14.5%, ahead of Germany at 10% and Italy at 8.4%.

Export destinations

Spain top export destinations, 2024 (share of total)Largest: France with 14.5%.France14.5%Germany10%Italy8.4%Portugal8.2%United Kingdom6%United States4.6%Netherlands3.1%Belgium3.1%Morocco3.1%Poland2.5%
Spain: top export destinations, 2024 (US$, UN Comtrade) UN Comtrade query
RankPartnerExports 2024 (US$)Share of Spain's 2024 exports (%)
1FranceUS$58,672,758,88414.5%
2GermanyUS$40,500,650,59410%
3ItalyUS$33,737,882,5428.4%
4PortugalUS$33,229,744,9028.2%
5United KingdomUS$24,403,543,8176%
6United StatesUS$18,443,667,3924.6%
7NetherlandsUS$12,647,937,6693.1%
8BelgiumUS$12,575,269,7313.1%
9MoroccoUS$12,469,835,0053.1%
10PolandUS$9,986,528,6062.5%

Non-country partner rows within the overall top ten: Other Europe, nes (US$12.2 billion, 3%).

Import origins

Spain top import origins, 2024 (share of total)Largest: Germany with 10.8%.Germany10.8%China10.3%France8.2%Italy6.6%United States6.5%Netherlands4.5%Portugal3.7%United Kingdom2.4%Belgium2.3%Morocco2.2%
Spain: top import origins, 2024 (US$, UN Comtrade) UN Comtrade query
RankPartnerImports 2024 (US$)Share of Spain's 2024 imports (%)
1GermanyUS$48,697,769,81310.8%
2ChinaUS$46,595,992,78910.3%
3FranceUS$36,919,861,7088.2%
4ItalyUS$29,653,142,5146.6%
5United StatesUS$29,326,969,9276.5%
6NetherlandsUS$20,163,553,1934.5%
7PortugalUS$16,857,354,5823.7%
8United KingdomUS$10,647,899,7092.4%
9BelgiumUS$10,451,156,7122.3%
10MoroccoUS$10,151,607,5072.2%

Non-country partner rows within the overall top ten: Other Europe, nes (US$20.6 billion, 4.6%).

Spain trade with China and the United States (2024)

Spain: trade with China and the United States, 2024 (US$, UN Comtrade)
PartnerExports to (US$)Share of exportsRank as destinationImports from (US$)Share of importsRank as origin
ChinaUS$7,687,337,5031.9%12US$46,595,992,78910.3%2
United StatesUS$18,443,667,3924.6%6US$29,326,969,9276.5%5

Spain imported US$46.6 billion from China in 2024, accounting for 10.3% of its merchandise imports. Imports from the United States were US$29.3 billion, or 6.5%. The United States took a larger share of Spain's exports: 4.6% (US$18.4 billion), compared with China's 1.9% (US$7.7 billion).

What Spain exports and imports by HS chapter (2024)

Vehicles and parts accounted for 14.9% of Spain's merchandise exports in 2024, ahead of Machinery and mechanical appliances at 7%. On the import side, Mineral fuels and oils had the largest share at 13.3%. Vehicles and parts ranked second at 10.5%, ahead of Machinery and mechanical appliances at 8.9%. Together, these import chapters accounted for 32.7% of the value of Spain's merchandise imports.

Exports by HS chapter

Spain top export chapters (HS), 2024 (share of total)Largest: HS 87 Vehicles and parts with 14.9%.HS 87 Vehicles and parts14.9%HS 84 Machinery and mechanical appliances7%HS 27 Mineral fuels and oils5.6%HS 85 Electrical machinery and equipment5.4%HS 99 Commodities not specified5%HS 30 Pharmaceutical products4.5%HS 39 Plastics3.4%HS 08 Fruit and nuts2.8%HS 02 Meat and offal2.6%HS 07 Vegetables2.3%
Spain: top export chapters (HS), 2024 (US$, UN Comtrade) UN Comtrade query
RankHS chapterExports 2024 (US$)Share of 2024 exports (%)
1HS 87 — Vehicles; other than railway or tramway rolling stock, and parts and accessories thereofUS$59,962,548,56414.9%
2HS 84 — Machinery and mechanical appliances, boilers, nuclear reactors; parts thereofUS$28,174,473,7187%
3HS 27 — Mineral fuels, mineral oils and products of their distillation; bituminous substances; mineral waxesUS$22,792,695,9305.6%
4HS 85 — Electrical machinery and equipment and parts thereof; sound recorders and reproducers; television image and sound recorders and reproducers, parts and accessories of such articlesUS$21,629,861,1685.4%
5HS 99 — Commodities not specified according to kind (UN Comtrade residual code, not an HS chapter)US$20,234,725,5865%
6HS 30 — Pharmaceutical productsUS$18,183,233,0874.5%
7HS 39 — Plastics and articles thereofUS$13,915,248,2163.4%
8HS 08 — Fruit and nuts, edible; peel of citrus fruit or melonsUS$11,244,634,5872.8%
9HS 02 — Meat and edible meat offalUS$10,677,609,6322.6%
10HS 07 — Vegetables and certain roots and tubers; edibleUS$9,413,557,8442.3%

The residual code for commodities not specified according to kind is not an HS chapter: UN Comtrade uses it for trade that the reporter does not allocate to a chapter, for example confidential trade.

Imports by HS chapter

Spain top import chapters (HS), 2024 (share of total)Largest: HS 27 Mineral fuels and oils with 13.3%.HS 27 Mineral fuels and oils13.3%HS 87 Vehicles and parts10.5%HS 84 Machinery and mechanical appliances8.9%HS 85 Electrical machinery and equipment8.7%HS 30 Pharmaceutical products5%HS 99 Commodities not specified3.8%HS 39 Plastics3.4%HS 29 Organic chemicals2.6%HS 72 Iron and steel2.5%HS 90 Optical and medical instruments2.5%
Spain: top import chapters (HS), 2024 (US$, UN Comtrade) UN Comtrade query
RankHS chapterImports 2024 (US$)Share of 2024 imports (%)
1HS 27 — Mineral fuels, mineral oils and products of their distillation; bituminous substances; mineral waxesUS$60,181,647,96713.3%
2HS 87 — Vehicles; other than railway or tramway rolling stock, and parts and accessories thereofUS$47,517,264,03410.5%
3HS 84 — Machinery and mechanical appliances, boilers, nuclear reactors; parts thereofUS$40,006,182,8528.9%
4HS 85 — Electrical machinery and equipment and parts thereof; sound recorders and reproducers; television image and sound recorders and reproducers, parts and accessories of such articlesUS$39,187,650,1688.7%
5HS 30 — Pharmaceutical productsUS$22,719,644,7655%
6HS 99 — Commodities not specified according to kind (UN Comtrade residual code, not an HS chapter)US$17,124,772,4033.8%
7HS 39 — Plastics and articles thereofUS$15,423,417,5013.4%
8HS 29 — Organic chemicalsUS$11,802,261,3292.6%
9HS 72 — Iron and steelUS$11,262,623,4722.5%
10HS 90 — Optical, photographic, cinematographic, measuring, checking, medical or surgical instruments and apparatus; parts and accessoriesUS$11,139,749,5642.5%

The residual code for commodities not specified according to kind is not an HS chapter: UN Comtrade uses it for trade that the reporter does not allocate to a chapter, for example confidential trade.

What the data shows

The top partners account for a larger share of exports

In 2024, Spain's top three export destinations took 32.9% of its merchandise exports, while its top three import origins supplied 29.3% of imports. The gap between the top partners was also wider on the export side: the top two destinations took 14.5% and 10%, while the top two import origins supplied 10.8% and 10.3%.

The same product groups make up the top three in both flows

The order differs even though the product groups are the same. In 2024, Vehicles and parts had the largest export share but the second-largest import share, while Mineral fuels and oils ranked first for imports and third for exports. Machinery and mechanical appliances ranked second for exports and third for imports. Together, the three groups accounted for 27.5% of exports and 32.7% of imports.

Where to find shipment-level data for Spain

The figures on this page are aggregate trade statistics: national totals by partner and by HS chapter. They do not identify companies, individual shipments or tariff-line detail. Shipment-level records, such as customs declarations and bills of lading, are released by some customs authorities and compiled by commercial data providers; access and coverage vary by country. Our guide explains where to look.

How to find customs import data

Spain trade data: FAQ

What does Spain import the most?
Mineral fuels and oils was Spain's largest import group in 2024, accounting for 13.3% of merchandise imports by value. UN Comtrade recorded US$60.2 billion in imports for the group, compared with US$47.5 billion for Vehicles and parts.
What are Spain's main merchandise exports?
Vehicles and parts was Spain's largest export group in 2024, with 14.9% of merchandise exports by value. UN Comtrade recorded US$60 billion in exports for that group. The other groups in the top three were Machinery and mechanical appliances and Mineral fuels and oils.
Who are Spain's main trading partners?
France bought the most Spanish merchandise exports in 2024, while Germany supplied the most merchandise imports. In UN Comtrade data, their shares were 14.5% of Spain's exports and 10.8% of its imports, respectively.
Does Spain have a merchandise trade surplus or deficit?
Spain had a merchandise trade deficit of US$68.2 billion in 2025. In the World Bank/WTO series, the country imported US$513.3 billion in goods and exported US$445.1 billion that year.
How have Spain's merchandise imports changed since 2015?
Spain's merchandise imports grew 64.6% in nominal terms between 2015 and 2025. They stood at US$311.9 billion at the start of the World Bank/WTO series and reached US$513.3 billion in its latest year.

Sources and methodology

World Bank, World Development Indicators — Merchandise exports (current US$) (source: WTO)
Data period: 2015–2025 · Retrieved: November 19, 2026 · Dataset last updated: November 11, 2026 · View source query
World Bank, World Development Indicators — Merchandise imports (current US$) (source: WTO)
Data period: 2015–2025 · Retrieved: November 19, 2026 · Dataset last updated: November 11, 2026 · View source query
UN Comtrade — exports by partner, total goods (2024)
Data period: 2024 · Retrieved: November 19, 2026 · View source query
UN Comtrade — imports by partner, total goods (2024)
Data period: 2024 · Retrieved: November 19, 2026 · View source query
UN Comtrade — exports and imports by HS chapter (2024)
Data period: 2024 · Retrieved: November 19, 2026 · View source query

Figures are merchandise (goods) trade in nominal US dollars. Totals and the trend come from WTO data published by the World Bank; partner and HS chapter breakdowns come from the country's own reports to UN Comtrade. Services trade is not included.

Read the full methodology

Sources: UN Comtrade (United Nations policy on data use). World Bank, World Development Indicators (source: WTO), licensed CC BY 4.0. Compiled by yTrade.