ES · ESP · BACI 724 · latest data 2024

Exports

$394.7B USD, nominal · 2024

= $394,729 M23.7% over 5 yrs (up)

Imports

$440.4B USD, nominal · 2024

= $440,369 M21.0% over 5 yrs (up)

Trade balancedeficit

−$45.6B USD, nominal · 2024

= $45,641 M

Total trade

$835.1B USD, nominal · 2024

= $835,098 M22.2% over 5 yrs (up)

World position
#16 of 225 exporters · top 10% · #15 of 225 importers · top 10% · 2024
World export share since 1995
−0.1 pp

Trade timeline

Spain's exports grew from $91.9B in 1995 to $394.7B in 2024; the 2024 balance was −$45.6B.

Loading trade timeline…

View timeline table
Exports, imports, trade balance and total trade of Spain per year, USD millions.
YearExports ($M)Imports ($M)Balance ($M)Total ($M)
1995$91,872 M$115,794 M−$23,922 M$207,666 M
1996$101,088 M$125,720 M−$24,632 M$226,807 M
1997$104,202 M$127,240 M−$23,038 M$231,442 M
1998$111,115 M$139,721 M−$28,606 M$250,837 M
1999$112,205 M$152,297 M−$40,092 M$264,502 M
2000$114,604 M$159,976 M−$45,373 M$274,580 M
2001$115,124 M$160,230 M−$45,106 M$275,353 M
2002$126,496 M$170,504 M−$44,007 M$297,000 M
2003$153,525 M$216,741 M−$63,216 M$370,266 M
2004$180,134 M$260,920 M−$80,786 M$441,055 M
2005$195,285 M$296,052 M−$100,767 M$491,337 M
2006$218,374 M$336,955 M−$118,581 M$555,329 M
2007$252,942 M$387,998 M−$135,056 M$640,941 M
2008$277,956 M$415,204 M−$137,248 M$693,159 M
2009$220,907 M$291,033 M−$70,127 M$511,940 M
2010$244,112 M$315,575 M−$71,463 M$559,687 M
2011$286,745 M$359,982 M−$73,237 M$646,728 M
2012$279,612 M$335,232 M−$55,620 M$614,844 M
2013$298,288 M$336,064 M−$37,776 M$634,353 M
2014$304,263 M$354,244 M−$49,982 M$658,507 M
2015$272,647 M$310,539 M−$37,892 M$583,186 M
2016$277,802 M$312,175 M−$34,373 M$589,978 M
2017$306,012 M$347,060 M−$41,048 M$653,072 M
2018$328,969 M$379,702 M−$50,732 M$708,671 M
2019$319,179 M$364,066 M−$44,888 M$683,245 M
2020$301,317 M$316,532 M−$15,215 M$617,850 M
2021$365,171 M$401,712 M−$36,541 M$766,883 M
2022$393,260 M$477,270 M−$84,010 M$870,530 M
2023$402,406 M$449,573 M−$47,168 M$851,979 M
2024$394,729 M$440,369 M−$45,641 M$835,098 M
30 rows

USD millions, nominal · 1995–2024 · Source: CEPII BACI (HS92)

World share & rank

World export share moved from 1.8% in 1995 to 1.7% in 2024; export rank #13 → #16.

Loading world share and rank…

View share & rank table
World export and import share in percent, and world ranks, of Spain per year.
YearExport share (%)Import share (%)Export rankImport rank
19951.81%2.29%#13#14
19961.88%2.34%#13#14
19971.86%2.27%#13#14
19982.00%2.52%#13#11
19991.95%2.65%#13#11
20001.76%2.46%#14#13
20011.82%2.54%#13#13
20021.91%2.58%#13#12
20032.00%2.83%#13#12
20041.95%2.82%#14#12
20051.86%2.82%#14#12
20061.81%2.79%#14#12
20071.81%2.77%#14#11
20081.72%2.57%#15#12
20091.77%2.34%#14#13
20101.62%2.10%#17#13
20111.60%2.01%#18#13
20121.55%1.86%#18#16
20131.64%1.84%#17#16
20141.66%1.93%#16#15
20151.70%1.94%#16#15
20161.77%1.99%#15#14
20171.74%1.98%#15#14
20181.72%1.99%#15#14
20191.72%1.97%#16#14
20201.76%1.85%#16#15
20211.71%1.88%#18#15
20221.63%1.98%#20#14
20231.78%1.99%#15#14
20241.73%1.93%#16#15
30 rows

% of world trade and world rank · 1995–2024 · Source: CEPII BACI (HS92)

Trading partners

France was Spain's top trading partner in 2024, at 11.2% of total trade; the top five partners covered 42.7%.

Top partner share
11.2%
Top-5 share
42.7%
Partners
225
Partner HHI (0–1)
0.051

Loading world basemap…

View partner table
Top partners of Spain in 2024, USD millions.
RankPartnerExports to ($M)Imports from ($M)Total ($M)Balance ($M)
#1France$53,641 M$40,151 M$93,792 M$13,490 M
#2Germany$39,455 M$49,958 M$89,413 M−$10,503 M
#3Italy$34,335 M$30,152 M$64,487 M$4,183 M
#4Portugal$37,075 M$17,704 M$54,779 M$19,371 M
#5China$8,388 M$46,099 M$54,488 M−$37,711 M
#6United States$21,153 M$28,761 M$49,914 M−$7,608 M
#7United Kingdom$26,310 M$10,565 M$36,875 M$15,746 M
#8Netherlands$11,609 M$20,153 M$31,763 M−$8,544 M
#9Morocco$15,928 M$11,479 M$27,407 M$4,449 M
#10Belgium$10,085 M$10,427 M$20,512 M−$341 M
#11Türkiye$9,467 M$10,165 M$19,632 M−$698 M
#12Poland$8,816 M$8,885 M$17,701 M−$70 M
#13Brazil$4,171 M$9,648 M$13,818 M−$5,477 M
#14Switzerland$8,056 M$5,244 M$13,300 M$2,813 M
#15Mexico$6,119 M$6,385 M$12,504 M−$266 M
15 rows

USD millions, nominal · 2024 · Source: CEPII BACI (HS92)

Flows are origin/destination attributions, not shipping routes.

Products & sectors

Product composition of Spain's trade in 2024.

Loading product detail for 2024 (large file, fetched on demand)…

View product table

The product table loads with the product data for 2024.

USD millions · HS92 · 2024 · Source: CEPII BACI (HS92)

Concentration & risk

Spain's export partners diversified over 1995–2024 — HHI 0.088 → 0.059, a diversified export base across 221 partners in 2024.

Loading concentration trends…

View concentration table
Export and import partner HHI (0–1) and partner counts of Spain per year.
YearExport HHIImport HHIExport partnersImport partners
19950.0880.079195193
19960.0850.080195193
19970.0780.079199195
19980.0820.084196196
19990.0820.083200197
20000.0790.077206203
20010.0790.077209211
20020.0800.078210214
20030.0790.076212209
20040.0780.073214211
20050.0750.065212213
20060.0730.059215213
20070.0720.061214215
20080.0700.055217212
20090.0690.056213213
20100.0670.049217216
20110.0620.048216222
20120.0570.046216218
20130.0560.048220220
20140.0560.050220220
20150.0560.054217222
20160.0570.055222220
20170.0560.053220222
20180.0570.051218220
20190.0580.052220221
20200.0620.055218221
20210.0610.050222222
20220.0630.048218224
20230.0630.051220225
20240.0590.051221225
30 rows

HHI (0–1) and partner count · 1995–2024 · Source: CEPII BACI (HS92)

HHI is the Herfindahl–Hirschman index of partner shares on a 0–1 scale. Standard reading: below 0.10 diversified · 0.10–0.25 moderately concentrated · above 0.25 concentrated.

Downloads

The exact artifacts behind this page, as published:

Values are merchandise (goods) trade in nominal USD millions, from CEPII BACI under the HS92 classification, 1995–2024. Dataset generated 2026-06-08.

  • Goods trade only; values are nominal USD (not inflation-adjusted).
  • HS92 across 1995-2024All trade years 1995-2024 use HS92-compatible product codes for a consistent long-run series.
  • BACI country codesBACI numeric country codes can differ from standard ISO numeric codes (e.g. USA=842, France=251, India=699).
  • Origin/destination, not routesExporter/importer flows are origin/destination attributions and do not directly observe shipping routes.