Country intelligence · ESP · 2024

Spain trade profile

In 2024, Spain recorded $390.0B in merchandise exports and $440.1B in imports, producing a $50.1B trade deficit. Exports changed -3.9% from the previous year, while imports changed -1.8%.[1]

Exports

$390.0B

-3.9%

Imports

$440.1B

-1.8%

Trade balance

-$50.1B

deficit

Active partners

270

108 FTA-linked

Historical evidence

Ten-year trade movement

The bars compare exports and imports on the same scale. The accompanying table preserves the exact values so the trend is usable without interpreting a graphic.

2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
ExportsImports

Exact annual values

YearExportsImportsBalanceExport growth
2024$390.0B$440.1B-$50.1B-3.9%
2023$405.8B$448.3B-$42.5B+1.4%
2022$400.2B$466.5B-$66.3B+7.5%
2021$372.3B$403.1B-$30.9B+24.1%
2020$300.1B$312.6B-$12.5B-6.1%
2019$319.7B$357.8B-$38.1B-3.4%
2018$331.1B$372.6B-$41.5B+11.0%
2017$298.4B$327.0B-$28.5B+9.6%
2016$272.3B$294.9B-$22.6B+2.1%
2015$266.7B$296.0B-$29.3B-12.0%

Leading export sectors

HS2 chapters rank broad product groups by observed export value in 2024.

1

HS 87 · Vehicles

87 active HS6 lines · 188 export partners

$62.8B
2

HS 84 · Machinery

515 active HS6 lines · 195 export partners

$27.6B
3

HS 27 · Mineral fuels and oils

43 active HS6 lines · 167 export partners

$22.0B
4

HS 85 · Electrical machinery

262 active HS6 lines · 195 export partners

$21.7B
5

HS 30 · Pharmaceutical products

43 active HS6 lines · 183 export partners

$20.5B
6

HS 39 · HS chapter

129 active HS6 lines · 189 export partners

$14.4B
7

HS 08 · HS chapter

68 active HS6 lines · 151 export partners

$11.5B
8

HS 02 · HS chapter

66 active HS6 lines · 149 export partners

$10.5B

Leading export markets

Destinations rank bilateral export flows from Spain; growth describes each corridor rather than the whole economy.

1

France

Annual change -12.9% · 3-year CAGR -1.4%

$55.1B
2

Germany

Annual change -3.2% · 3-year CAGR 1.1%

$39.4B
3

Portugal

Annual change -2.6% · 3-year CAGR 3.9%

$37.1B
4

Italy

Annual change +1.8% · 3-year CAGR 5.4%

$35.1B
5

United Kingdom

Annual change -0.9% · 3-year CAGR 5.8%

$24.9B
6

United States

Annual change -8.7% · 3-year CAGR 3.7%

$20.5B
7

Morocco

Annual change +5.7% · 3-year CAGR 8.1%

$13.0B
8

Netherlands

Annual change -4.1% · 3-year CAGR -2.6%

$11.7B

Sources, definitions and limitations

[1] Primary trade source

OECD Bilateral International Merchandise Trade Statistics, harmonised by Yugalinks at country-year, HS2 and bilateral-corridor levels. Coverage shown here is 1995–2024 where observations are available.

Calculation notes

USD values are aggregated from reported merchandise records. YoY compares consecutive annual totals; three-year CAGR is the mart-provided compound annual growth rate. Missing values are not inferred.