Spain import and export data (2025)
Merchandise trade statistics for Spain: totals, trend since 2015, top partners and HS chapters. Not shipment records.
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.
- Merchandise exports 2025: US$445.1 billion — rank 19 of 205 economies with 2025 export data (WTO via World Bank, nominal US$)
- Merchandise imports 2025: US$513.3 billion — rank 16 of 205 economies with 2025 import data (WTO via World Bank, nominal US$)
- Trade balance 2025: deficit of US$68.2 billion (WTO via World Bank)
- Change 2015–2025 (nominal): exports +57.7%, imports +64.6% (WTO via World Bank)
- Top export destination 2024: France (14.5% of exports, UN Comtrade)
- Top import origin 2024: Germany (10.8% of imports, UN Comtrade)
- Largest export chapter 2024: HS 87 — Vehicles and parts (UN Comtrade)
- Trade with China 2024: imports from China US$46.6 billion (rank 2), exports to China US$7.7 billion (rank 12) (UN Comtrade)
- Trade with the United States 2024: imports from the United States US$29.3 billion (rank 5), exports to the United States US$18.4 billion (rank 6) (UN Comtrade)
Spain trade at a glance
Scroll sideways to see all columns.
| Measure | WTO via World Bank (2025) | UN Comtrade (2024) |
|---|---|---|
| Exports | US$445.1 billion | US$403.7 billion |
| Imports | US$513.3 billion | US$451.3 billion |
| Total trade | US$958.4 billion | US$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$
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.
| Year | Exports (US$) | Imports (US$) |
|---|---|---|
| 2015 | US$282.3 billion | US$311.9 billion |
| 2016 | US$290 billion | US$310.9 billion |
| 2017 | US$319.5 billion | US$352 billion |
| 2018 | US$346.8 billion | US$390.6 billion |
| 2019 | US$334 billion | US$372.8 billion |
| 2020 | US$308.3 billion | US$326.2 billion |
| 2021 | US$380 billion | US$419.7 billion |
| 2022 | US$415.5 billion | US$494.3 billion |
| 2023 | US$422.5 billion | US$469.9 billion |
| 2024 | US$428.5 billion | US$479.3 billion |
| 2025 | US$445.1 billion | US$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
| Rank | Partner | Exports 2024 (US$) | Share of Spain's 2024 exports (%) |
|---|---|---|---|
| 1 | France | US$58,672,758,884 | 14.5% |
| 2 | Germany | US$40,500,650,594 | 10% |
| 3 | Italy | US$33,737,882,542 | 8.4% |
| 4 | Portugal | US$33,229,744,902 | 8.2% |
| 5 | United Kingdom | US$24,403,543,817 | 6% |
| 6 | United States | US$18,443,667,392 | 4.6% |
| 7 | Netherlands | US$12,647,937,669 | 3.1% |
| 8 | Belgium | US$12,575,269,731 | 3.1% |
| 9 | Morocco | US$12,469,835,005 | 3.1% |
| 10 | Poland | US$9,986,528,606 | 2.5% |
Non-country partner rows within the overall top ten: Other Europe, nes (US$12.2 billion, 3%).
Import origins
| Rank | Partner | Imports 2024 (US$) | Share of Spain's 2024 imports (%) |
|---|---|---|---|
| 1 | Germany | US$48,697,769,813 | 10.8% |
| 2 | China | US$46,595,992,789 | 10.3% |
| 3 | France | US$36,919,861,708 | 8.2% |
| 4 | Italy | US$29,653,142,514 | 6.6% |
| 5 | United States | US$29,326,969,927 | 6.5% |
| 6 | Netherlands | US$20,163,553,193 | 4.5% |
| 7 | Portugal | US$16,857,354,582 | 3.7% |
| 8 | United Kingdom | US$10,647,899,709 | 2.4% |
| 9 | Belgium | US$10,451,156,712 | 2.3% |
| 10 | Morocco | US$10,151,607,507 | 2.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)
| Partner | Exports to (US$) | Share of exports | Rank as destination | Imports from (US$) | Share of imports | Rank as origin |
|---|---|---|---|---|---|---|
| China | US$7,687,337,503 | 1.9% | 12 | US$46,595,992,789 | 10.3% | 2 |
| United States | US$18,443,667,392 | 4.6% | 6 | US$29,326,969,927 | 6.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
| Rank | HS chapter | Exports 2024 (US$) | Share of 2024 exports (%) |
|---|---|---|---|
| 1 | HS 87 — Vehicles; other than railway or tramway rolling stock, and parts and accessories thereof | US$59,962,548,564 | 14.9% |
| 2 | HS 84 — Machinery and mechanical appliances, boilers, nuclear reactors; parts thereof | US$28,174,473,718 | 7% |
| 3 | HS 27 — Mineral fuels, mineral oils and products of their distillation; bituminous substances; mineral waxes | US$22,792,695,930 | 5.6% |
| 4 | HS 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 | US$21,629,861,168 | 5.4% |
| 5 | HS 99 — Commodities not specified according to kind (UN Comtrade residual code, not an HS chapter) | US$20,234,725,586 | 5% |
| 6 | HS 30 — Pharmaceutical products | US$18,183,233,087 | 4.5% |
| 7 | HS 39 — Plastics and articles thereof | US$13,915,248,216 | 3.4% |
| 8 | HS 08 — Fruit and nuts, edible; peel of citrus fruit or melons | US$11,244,634,587 | 2.8% |
| 9 | HS 02 — Meat and edible meat offal | US$10,677,609,632 | 2.6% |
| 10 | HS 07 — Vegetables and certain roots and tubers; edible | US$9,413,557,844 | 2.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
| Rank | HS chapter | Imports 2024 (US$) | Share of 2024 imports (%) |
|---|---|---|---|
| 1 | HS 27 — Mineral fuels, mineral oils and products of their distillation; bituminous substances; mineral waxes | US$60,181,647,967 | 13.3% |
| 2 | HS 87 — Vehicles; other than railway or tramway rolling stock, and parts and accessories thereof | US$47,517,264,034 | 10.5% |
| 3 | HS 84 — Machinery and mechanical appliances, boilers, nuclear reactors; parts thereof | US$40,006,182,852 | 8.9% |
| 4 | HS 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 | US$39,187,650,168 | 8.7% |
| 5 | HS 30 — Pharmaceutical products | US$22,719,644,765 | 5% |
| 6 | HS 99 — Commodities not specified according to kind (UN Comtrade residual code, not an HS chapter) | US$17,124,772,403 | 3.8% |
| 7 | HS 39 — Plastics and articles thereof | US$15,423,417,501 | 3.4% |
| 8 | HS 29 — Organic chemicals | US$11,802,261,329 | 2.6% |
| 9 | HS 72 — Iron and steel | US$11,262,623,472 | 2.5% |
| 10 | HS 90 — Optical, photographic, cinematographic, measuring, checking, medical or surgical instruments and apparatus; parts and accessories | US$11,139,749,564 | 2.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.
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.
Sources: UN Comtrade (United Nations policy on data use). World Bank, World Development Indicators (source: WTO), licensed CC BY 4.0. Compiled by yTrade.