TradeVedia
Global Trade Visual Encyclopedia

Spain (ESP)

Annual exports and imports in 2024 (USD).

Source: UN Comtrade. Warehouse 1: partner = World totals by HS4 and year.

Exports
$403.70B
Imports
$451.30B
Total trade
$855.01B
Trade balance
-$47.60B
Loading partners sankey...
Loading composition sunburst...

Spain - trade dependency by partner, 2024 (USD)

Share of exports, imports, and total trade attributed to each partner.
Year: 2024 | Unit: USD | Snapshot: 20251222 | Source: UN Comtrade
Showing top 10 partners by total dependency.
Total
11.2%
Exports
14.5%
$58.67B
Imports
8.2%
$36.92B
Total
11.2%
$95.59B
Total
10.4%
Exports
10.0%
$40.50B
Imports
10.8%
$48.70B
Total
10.4%
$89.20B
Total
7.4%
Exports
8.4%
$33.74B
Imports
6.6%
$29.65B
Total
7.4%
$63.39B
Total
6.3%
Exports
1.9%
$7.69B
Imports
10.3%
$46.60B
Total
6.3%
$54.28B
Total
5.9%
Exports
8.2%
$33.23B
Imports
3.7%
$16.86B
Total
5.9%
$50.09B
Rank #6
USA (USA)
Total
5.6%
Exports
4.6%
$18.44B
Imports
6.5%
$29.33B
Total
5.6%
$47.77B
Total
4.1%
Exports
6.0%
$24.40B
Imports
2.4%
$10.65B
Total
4.1%
$35.05B
Total
3.8%
Exports
3.1%
$12.65B
Imports
4.5%
$20.16B
Total
3.8%
$32.81B
Total
2.7%
Exports
3.1%
$12.58B
Imports
2.3%
$10.45B
Total
2.7%
$23.03B
Total
2.6%
Exports
3.1%
$12.47B
Imports
2.2%
$10.15B
Total
2.6%
$22.62B
Generated by TradeVedia.comSource: UN Comtrade
  • In 2024, Spain's total trade amounted to $855.0B, comprising $403.7B in exports and $451.3B in imports, resulting in a trade balance of -$47.6B.
  • Spain ranked 15th in total trade, 16th in exports, and 15th in imports globally in 2024.
  • The top export destination for Spain was France, with shipments valued at $58.7B (14.5% of total exports).
  • Germany was the leading source of imports, accounting for $48.7B (10.8% of total imports).
  • Spain's largest export category was Vehicles (HS2 87), with exports totaling $60.0B.
  • The top import category was Mineral fuels (HS2 27), with a total import value of $60.2B.

Spain's Trade Performance in 2024

In 2024, Spain's economy engaged in $855.0B of total trade, ranking 15th globally. The country's exports were valued at $403.7B, while imports stood at $451.3B, leading to a trade deficit of -$47.6B. The primary export partners were European neighbors, with France leading at $58.7B, followed by Germany at $40.5B. On the import side, Germany was the largest partner, providing $48.7B worth of goods, with China following at $46.6B.

Top Traded Products

Spain's export market is led by Vehicles; other than railway or tramway rolling stock, and parts and accessories thereof (HS2 87), which accounted for $60.0B or 14.9% of total exports. This was followed by Machinery and mechanical appliances, boilers, nuclear reactors; parts thereof (HS2 84) at $28.2B. The most significant import category was Mineral fuels, mineral oils and products of their distillation; bituminous substances; mineral waxes (HS2 27), with imports of $60.2B, representing 13.3% of the total. Vehicles were also a major import, valued at $47.5B.

Exports

Spain - exports over time (Exports), 2015-2024 (USD)

Annual reported export values across available years.
Flow: Exports | Years: 2015-2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade

Top export categories

Largest HS2 categories by export value in the selected year.

Spain - export composition by product categories (Exports), 2024 (USD)

Largest product categories by export value in the selected year.
Flow: Exports | Year: 2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade

Spain - export composition by 4-digit product groups (Exports), 2024 (USD)

Area reflects share within the displayed list; hover for product codes.
Flow: Exports | Year: 2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade

Imports

Spain - imports over time (Imports), 2015-2024 (USD)

Annual reported import values across available years.
Flow: Imports | Years: 2015-2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade

Top import categories

Largest HS2 categories by import value in the selected year.

Spain - import composition by product categories (Imports), 2024 (USD)

Largest product categories by import value in the selected year.
Flow: Imports | Year: 2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade

Spain - import composition by 4-digit product groups (Imports), 2024 (USD)

Area reflects share within the displayed list; hover for product codes.
Flow: Imports | Year: 2024 | Unit: USD | Source: UN Comtrade
Generated by TradeVedia.comSource: UN Comtrade